
*, *::before, *::after {
    box-sizing: border-box;

}

 a {
    color:  rgb(176, 176, 240);
    text-decoration: none;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box; /* Lägger till detta */
    letter-spacing: 2px;
    font-size: 18px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%),
    url("images/internet-2224603_640.jpg");
    color: rgb(255, 255, 255);
    padding-top: 25px;
    overflow-x: hidden;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    font-size: 12px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);  
    color: #fff;
    border-radius: 5px;
    text-align: center;
    z-index: 1000; 
    display: block; 
}

/*------------Top nav------*/
#top-nav {
    background-color: rgba(53, 54, 95, 0.3); 
    position: relative;
    padding: 20px 20px; 
    height: 5%; 
    width: 100%;
    position: relative;
    z-index: 10; 
   
}


#navigation {
    display: flex;
    list-style: none; 
    width:auto;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    color: white;
  
}

#navigation li {
    margin: 0 20px; 
}


#navigation li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 15px;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

#navigation li a:hover {
    color: rgb(108, 108, 235);
}



#navigation li a.kallor-button:hover {
    background-color: rgb(19, 148, 180); 
}

#navigation li a.kallor-button {
    display: inline-block; 
    background-color: rgb(5, 35, 43); 
    color: white; 
    padding: 10px 15px;
    border-radius: 5px; 
    text-decoration: none; 
    transition: background-color 0.3s ease; 
}  



/*------Toggle------*/


#menu-toggle {
    display:none;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    margin: 0 1rem;
    overflow: hidden;
}

.menu-button-container {
    display: flex;
    margin-left: 0; 
    justify-content: flex-start;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    padding: 10px;

   

}
/*-----------------------Innehållet.............................*/
main {
    max-width: 100%;
    margin: 0 auto; 
    padding: 20px; 
}

cite {
    display: block;
    text-align: right;
    font-style: normal;
    color: #92c1f7;
    margin-top: 10px;
}

.top-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    margin-top: 0;
    margin-bottom: 50px;
    padding: 0;
}

.top-img img {
    width: 300px;
    border-radius: 40%;
    box-shadow: 0 4px 25px 5px rgba(255, 255, 255, 0.8);
    margin-top: 50px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

h1 {
    font-size: 1.5rem;
    margin-top: 100px; 
    margin-bottom: -20px;
    text-align: center; 
    color: rgb(255, 255, 255); 
}

h2 {
    text-align: center;
}




p {
    text-align: center;
    font-size: 16px;
}

.one {
    font-size: 16px;
    margin-top:  -50px;
}



.historia {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    padding: 50px 20px;
}

.historia article {
    display: block;
    
    margin: 0 auto; 
}

.historia li {
   
    display: flex;
    flex-direction: column;
    background-color: rgba(53, 54, 95, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 20px;
    margin: auto;
    gap: 25px;
    align-items: stretch;
    flex-wrap: nowrap;
}


.historia li b {
    font-weight: bold;
    position: relative;
    display: inline-block;
    text-decoration: underline;
}



.historia li:nth-child(even) {
    flex-direction: row-reverse;
}

.historia img {
    width: 100%; 
    max-width: 400px; 
    height: auto; 
    border-radius: 10px; 
    object-fit: cover; 
    margin: 0 auto; 
}

.historia img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    border-radius: 10px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.historia img:hover::after {
    opacity: 1; 
}



.historia img:hover {
    transform: scale(1.05); 
    transition: transform 0.3s ease; 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5); 
}

.historia details {
    flex: 1;
    margin-top: 10px;
    padding: 20px;
    background-color: rgb(96, 127, 136);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.5),
                inset -5px -5px 10px rgba(255, 255, 255, 0.2);
    max-height: 1000px; 
    overflow: hidden; 
    transition: max-height 0.3s ease; 
}



.historia summary {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
}

.historia details[open] {
    max-height: none; 
    overflow: visible; 
}

section, .historia {
    padding-bottom: 40px; 
}


iframe {
    border: none;
}

.video-container {
    display: flex;
    justify-content: center; 
    margin-top: 40px;
}

.www a {
    color: #ee753e;
}

.www a:hover {
    color: rgb(119, 125, 209);
}

.highlight-link {
    color:  #3fd4e7; 
    text-decoration: underline; 
}

.highlight-link:hover {
    color: #f5693e;  
    text-decoration: none; 
}



.details-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: center; 
}

details {
    flex: 1 1 calc(50% - 20px); 
    min-width: 200px; 
    max-width: 400px; 
    margin-bottom: 20px; 
    text-align: center;
    background-color: rgb(96, 127, 136);
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    border: none;

    padding: 10px;
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.5),
                inset -5px -5px 10px rgba(255, 255, 255, 0.2); 
                transition: max-height 0.3s ease;
              
}

details a {
    color:  rgb(176, 176, 240);
    text-decoration: none;
}

    details p, details blockquote {
        font-size: 14px !important; 
        font-family: Arial, Helvetica, sans-serif  !important; 
        margin: 0  !important;
        line-height: 1.5  !important;
        text-align: left !important;
        color: #ffffff !important;
    }

    blockquote {
        font-style: italic;
        
    }



details[open] {
    max-height: 1000px; 
    transition: max-height 0.5s ease-in-out;
    overflow: visible;
}

summary {
    font-size: 16px !important;
    font-weight: lighter !important;
    cursor: pointer;
    padding: 10px;
    color: white;
    border-radius: 5px;
    list-style: none;
    outline: none;
    position: relative;
    letter-spacing: 3px;
}



summary::after {
    content: "▼"; 
    font-size: 10px; 
    position: absolute; 
    left: 100%;
    margin-left: -20px; 
    top: 50%; 
    transform: translateY(-50%); 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}


summary:hover::after {
    opacity: 1; 
}



details p, details ul {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}

/*-----------------Footer---------*/
footer {
    display: flex;
    background-color: rgba(9, 20, 46, 0.7);
    color: white;
    padding: 40px 0;
    text-align: center;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    font-size: 10px;
    margin-left: 10px;
}

.footer-container {
    max-width: 1200px; 
    margin: auto; 
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

footer ul {
    list-style-type: none;
    display: flex;
    gap: 10px;
}

footer ul li {
    display: flex;
    align-items: center;
}

footer ul li a {
    text-decoration: none;
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 70px;
    text-decoration: none;
    font-size: 10px;
    color: white;
    border: 2px solid white;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 100;
}

footer .sociala-medier {
    display: flex;
    gap: 10px; 
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
}

footer .sociala-medier a {
    display: inline-block;
}

footer img {
    height: 20px;
    width: 20px;
}

footer p {
    cursor: pointer;
   margin: 0;
}

footer a {
    text-decoration: none;
    color: rgb(149, 182, 209);
}

footer p:hover {
    color: rgb(207, 175, 238);
}

footer button {
    margin-right: 20px;
    cursor: pointer;
    background-color: rgb(19, 148, 180);
    color: white;
}

label {
    cursor: pointer;
}

label:hover {
    color: rgb(207, 175, 238);
}



/* Mobila enheter */
@media (max-width: 768px) {

    
    body {
        font-size: 12px; 
        width: 90%;
        align-items: center;
        margin-left: 20px;
       
      
    }

    h1 {
        font-size: 16px;
        text-align: center;
    }

    p {
        font-size: 10px; 
        line-height: 1.4; 
        margin-left: 0;
        text-align: center;
        flex-wrap: wrap;
    }
    .first-image {
        width: 60%; 
        max-width: 250px; 
        margin: 0;
        display: block; 
        margin-right: 10px;
    }

    #navigation {
        display: none; 
        position: relative;
        top: 100px;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        margin: 0 auto;
        padding: 0 10px;
          
        
    }

    #top-nav {
        margin: 0 auto;
        width: 100%;
    }

  
    .menu-button-container {
        display: flex;
        margin: 0;
        justify-content: flex-start;
    }
    .menu-button {
        position: relative;
        width: 30px;
        height: 3px; 
        background-color: white;
        display: inline-block;
        transition: all 0.3s ease;
    }

  
    #navigation li {
        text-align: center;
        margin: 0;
        padding: 15px 0;
    }

    #navigation li a {
        color: white;
        text-decoration: none;
    }

    .menu-button::before,
    .menu-button::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px; 
        background-color: white;
        transition: all 0.3s ease;
    }

    
    .menu-button::before {
        top: -7px; 
    }

    .menu-button::after {
        top: 7px; 
    }


    #menu-toggle:checked + .menu-button-container + #navigation {
        display: flex;
        flex-direction: column;
        top: 50px; 
    }

  
   

    .historia li {
        flex-direction: column;
        align-items: center; 
        text-align: center; 
    }
    .historia img {
        max-width: 100%;
        height: auto;
    }
    details {
        width: 100%; 
        max-width: 500px;
        margin: 0 auto; 
    }

    summary {
        font-size: 14px !important;
    }

    .domman {
        margin-left: -40px !important;
    }

    article {
        margin-bottom: 40px !important;
    }
 .back-to-top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 80px !important; /* Öka bredden till önskat värde */
    text-decoration: none;
    font-size: 10px;
    color: white;
    border: 2px solid white;
    padding: 10px;
    border-radius: 5px;
    text-align: center; /* Centrerar texten */
    transition: background-color 0.3s ease;
    z-index: 100;
    margin-right: -20px !important;
    margin-bottom: -10px;
 }
 /*--Footer--*/

 
 footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 30px;
    gap: 20px; 
}
footer p {
    max-width: 90%; 
    margin: auto; 
    text-align: center; 
}

.footer-container {
    flex-direction: column; 
    align-items: center; 
    padding: 8px; 
    margin-right: 30px;
}



footer ul {
    flex-direction: column; 
    gap: 5px; 
}

.back-to-top {
    bottom: 20px;
    right: 20px;
    width: 80px;
    font-size: 8px;
}

footer .sociala-medier {
    justify-content: center;
    gap: 15px;
}
footer form {
    max-width: 90%; 
    margin: 0 auto; 
}

footer input,
footer button {
    width: 100%; 
    max-width: 300px; 
    margin: 5px auto; 
    padding: 10px; 
}

}
footer button {
    margin-top: 10px;
}



@media (min-width: 769px) {

    body {

        h1 {
            font-size: 20px;
            margin-right: 20px;
        }
        p {
            font-size: 10px;
            margin-right: 20px;

        }

    }
        #navigation {
            justify-content: space-around; 
            padding: 0 20px;
        }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #navigation {
        display: flex;
        justify-content: center; 
        padding-left: 0;
    }
    

    .menu-button-container {
        display: none; 
    }

    #navigation li {
        margin: 0 20px; 
    }

    #navigation li a {
        min-width: 150px; 
    }

    /*Footer*/
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer ul {
        justify-content: center;
    }

    footer p, footer button {
        margin: 10px 0;
    }
}

@media (max-width: 375px) {
   
   
    body {
        font-size: 18px; 
      
    }
    h1 {
        font-size: 20px; 
        text-align: center; 
    }

    p {
        font-size: 12px; 
        line-height: 1.3; 
    }
    .first-image {
        max-width: 200px; 
    }
    #navigation {
        display: none; 
        position: relative;
        top: 100px;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        margin: 0 auto;
        padding: 0 10px;
       
        
        
    }

    #top-nav {
        margin: 0 auto;
        width: 100%;
    }

    
    .menu-button-container {
        display: flex;
        margin: 0;
        justify-content: flex-start;
    }
    .menu-button {
        position: relative;
        width: 30px;
        height: 3px; 
        background-color: white;
        display: inline-block;
        transition: all 0.3s ease;
    }

    
    #navigation li {
        text-align: center;
        margin: 0;
        padding: 15px 0;
    }

    #navigation li a {
        color: white;
        text-decoration: none;
    }

    .menu-button::before,
    .menu-button::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px; 
        background-color: white;
        transition: all 0.3s ease;
    }

   
    .menu-button::before {
        top: -7px; 
    }

    .menu-button::after {
        top: 7px;
    }


    
    #menu-toggle:checked + .menu-button-container + #navigation {
        display: flex;
        flex-direction: column;
        top: 50px; 
    }

  
   

    .historia li {
        flex-direction: column;
        align-items: center; 
        text-align: center; 
    }
    .historia img {
        max-width: 100%;
        height: auto;
    }
    details {
        width: 100%; 
        max-width: 500px;
        margin: 0 auto; 
    }

    /*---Footer---*/

    footer {
        padding: 20px 10px; 
    }

    footer p, footer button, footer ul li {
        font-size: 14px; 
    }

    .back-to-top {
        width: 60px; 
        font-size: 10px; 
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .footer-container {
        flex-direction: row;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    footer ul {
        justify-content: center;
    }

    footer p, footer button {
        margin: 10px 0;
    }

    footer .sociala-medier {
        justify-content: center;
    }
}


