


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 16px;
    background-color: white;
}

.header .logo {
    /* color: rgb(51, 95, 160); */
    color: rgb(15, 92, 159);
    font-size: 18px;
    font-family: "Yrsa", serif;
    font-weight: 500;
    padding-right: 6px;
    text-decoration: none;
}

.header .logo-container {
    display: flex;
}

.logo-container .material-symbols-outlined{
    rotate: 90deg;
}


.header .language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown img {
    height: 30px;
    width: auto;

}

.language-dropdown .dropbtn {
    border: none;
    cursor: pointer;
}

.language-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

}

.language-dropdown .dropdown-content a {
    color: black;
    text-decoration: none;
    display: block;

    padding: 0;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
    align-items: center;
    margin: 0;
}

.language-toggle {
    background: none;
    border: none;
    margin: 0;
    padding: 0 6px;

}

.language-dropdown .dropdown-content a:hover {
    background-color: rgb(164, 180, 207);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}

.nav-right {
    display: flex;
    /* float: right; */
    margin-left: auto;
    /* Tämä siirtää .nav-right-elementin oikeaan reunaan */
    height: 100%;
    align-items: center;
}

/* DESKTOP-NAV ALKAA */

.desktop-nav {
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 35px;
}

.desktop-nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 0px 16px;
    text-decoration: none;
    font-size: 17px;
    font-family: "Yrsa", serif;
    font-weight: 500;
    height: 100%;
    align-items: center;
    display: flex
}

.desktop-nav a:hover {
   
  text-underline-offset: 6px;
  text-decoration: underline;

  
}

.desktop-nav a.active {
    text-underline-offset: 6px;
    text-decoration: underline;
}

/* DESKTOP-NAV LOPPUU */

/* footer starts */

footer {
    text-align: center;
    background-color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0px -5px 5px -5px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

footer a {
    color: rgb(15, 92, 159);
    text-decoration: none;
    margin: 10px;
    font-size: 1em;
    font-family: "Yrsa", serif;
    font-weight: 500;
}

footer a:visited {
    color: rgb(15, 92, 159);
}

.pelastuskortti {
    text-align: center;
    flex-basis: auto;
}

/* MOBIILI ALKAA */

.mobile-flexbox {
    display: flex;
    width: 100%;
}

.mobile-nav .logo-flex {
    width: 100%;
    position: absolute;

}

.mobile-nav .logo {
    color: rgb(15, 92, 159);
    font-size: 1.5em;
    font-family: "Yrsa", serif;
    font-weight: 500;
    padding: 15px 15px;
}

.mobile-nav {
    position: fixed;
    display: none;
    width: 100%;
    background-color: white;
    flex-direction: row;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(14, 47, 88, 0.25);

}

.mobile-nav-right {
    float: right;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 100;
}

.mobile-nav .icon {
    position: absolute;
    right: 0;
    top: 0;
}

.mobile-nav a {
    display: block;
   
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    font-family: "Yrsa", serif;
    font-weight: 500;
}

.mobile-nav .mobile-dropdown {
    position: relative;
    float: left;
    z-index: 100;

}

.mobile-nav .mobile-dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(15, 92, 159);
    width: 100vw;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 100;

}

hr.divider {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgb(165, 176, 212) 15%,
            rgb(165, 176, 212) 85%,
            rgba(0, 0, 0, 0) 100%);
    width: 90%;
    height: 1px;
    border: none;
}


.mobile-nav .mobile-dropdown .mobile-dropbtn {
    cursor: pointer;
    display: block;
    text-align: center;
    border: none;
    padding: 12px 16px;
    font-size: 1.5em;
    background-color: white;

}

.mobile-nav .mobile-dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Responsive Design */
@media screen and (min-width: 800px) {
    .mobile-nav {
        display: none;
        /* Hide mobile-nav on larger screens */
    }

    .pelastuskortti-link::after {
        content: "Hanki ilmailun pelastuskortti";
    }
  
}



@media screen and (max-width:799px) {
    .desktop-nav {
        display: none;
    }

    .header {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }




    .mobile-flexbox {
        /* TODO: pitää poistaa kun navi on valmis*/
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .dropdown-content {
        right: 0;
    }

    footer a {
        font-size: 1em;
    }

    .pelastuskortti-link::after {
        content: "Ilmailun pelastuskortti";
    }

    .language-dropdown img {
        height: 45px;
        width: auto;
    }


}

