@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    color: white;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    background-color: rgb(43, 43, 43);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/public/assets/bg.webp');
}

@media screen and (orientation:landscape) {

    header {
        text-align: left;
        margin-top: 100px;
        padding-left: 3%;
        padding-right: 3%;
        width: 100%;
    }

    main {
        margin-top: 1%;
        margin-left: 3%;
        margin-right: 3%;
        margin-bottom: 3%;
        text-align: left;
    }

    nav {
        position: fixed;
        top: 0;
        transition: top 0.3s;
    }

    #nav {
        border: 2px solid rgba(255, 255, 255, .2);
        background: transparent;
        backdrop-filter: blur(10px);
        background-color: #3333335e;
        overflow: hidden;
        margin-top: 1%;
        border-radius: 20px;
        z-index: 1;
        padding: 5px;
    }

    #nav a {
        color: #f2f2f2;
        text-align: center;
        padding: 14px 16px;
        margin: 0.5%;
        text-decoration: none;
        font-size: 100%;
        cursor: pointer;
        margin-right: 0.5%;
        margin-left: 0.5%;
        display: flex;
    }

    #nav a:hover {
        background-color: #3b3b3bb0;
        border-radius: 20px;
    }

    #nav a.active {
        background-color: #3b3b3bb0;
        border-radius: 20px;
    }

    #nav svg {
        fill: white;
    }

    #nav ul {
        display: flex;
        justify-content: center;
        white-space: nowrap;
        list-style-type: none;
        margin-left: 5px;
        margin-right: 5px;
    }

    #nav-inner {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sidenav-social {
        display: flex;
        flex-direction: row;
    }

    #sidenav-button {
        display: none;
    }

    #sidenav-close {
        display: none;
    }
}

@media screen and (orientation:portrait) {

    header {
        text-align: center;
        margin-top: 30px;
        padding-left: 3%;
        padding-right: 3%;
        width: 100%;
    }

    main {
        margin-top: 1%;
        margin-left: 3%;
        margin-right: 3%;
        margin-bottom: 3%;
        text-align: center;
    }

    #sidenav-button {
        padding: 10px;
        border: 2px solid rgba(255, 255, 255, .2);
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 2%;
        margin-top: 2%;
        border-radius: 15px;
        transition: top 0.3s;
        aspect-ratio: 1/1;
        z-index: 1;
        font-size: xx-large;
        cursor: pointer;
        line-height: 0.5;
    }

    #sidenav-button svg {
        fill: white;
    }

    /* The side navigation menu */
    #nav {
        height: 100%;
        /* 100% Full-height */
        width: 0px; 
        /* 0 width - change this with JavaScript */
        position: fixed;
        /* Stay in place */
        z-index: 2;
        /* Stay on top */
        top: 0;
        /* Stay at the top */
        left: 0;
        overflow-x: hidden;
        /* Disable horizontal scroll */
        padding-top: 60px;
        /* Place content 60px from the top */
        background: transparent;
        backdrop-filter: blur(10px);
        background-color: #3333335e;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        text-wrap: nowrap;
    }

    /* The navigation menu links */
    #nav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #c4c4c4;
        fill: #c4c4c4;
        display: block;
    }

    /* When you mouse over the navigation links, change their color */
    #nav a.link:hover {
        background-color: #3b3b3b60;
        backdrop-filter: blur(10px);
        border-radius: 20px;
        color: white;
    }

    #nav svg:hover {
        background: transparent;
        scale: 1.2;
        transition: 0.2S;
        fill: white;
    }

    #nav a.s-active {
        background: transparent;
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 2px solid rgba(255, 255, 255, .2);
        color: white;
    }

    #nav a.active {
        background: transparent;
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 2px solid rgba(255, 255, 255, .2);
        color: white;
    }

    #nav-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* Position and style the close button (top right corner) */
    #sidenav-close {
        background-color: transparent;
        border: transparent;
        box-shadow: none;
        padding: 0;
        position: absolute;
        cursor: pointer;
        color: rgb(143, 142, 142);
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

    #sidenav-close:hover {
        scale: 1.2;
        color: white;
    }

    .sidenav-hidden {
        display: none;
    }

    .sidenav-social {
        display: flex;
        flex-direction: row;
        list-style-type: none;
    }
}

button {
    background-color: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, .2);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    /* text-shadow: rgb(0, 0, 0) 1px 0 3px; */
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition-duration: 0.4s;
}

button:hover {
    background-color: #2c2c2c;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    nav {
        padding-top: 15px;
    }

    nav a {
        font-size: 18px;
    }
}

#footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-left: 10%;
    padding-right: 10%;
}

/* Add a black background color to the top navigation */
footer {
    border: 2px solid rgba(255, 255, 255, .2);
    background: transparent;
    backdrop-filter: blur(10px);
    background-color: #3333335e;
    overflow: hidden;
    font-size: medium;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: top 0.3s;
}

/* Style the spans inside the navigation bar */
footer span {
    color: #f2f2f2;
    text-align: center;
    margin: 1%;
    text-decoration: none;
    margin-right: 0.5%;
    margin-left: 0.5%;
    white-space: nowrap;
}

/* Style the spans inside the navigation bar */
footer address {
    color: #f2f2f2;
    text-align: center;
    margin: 1%;
    text-decoration: none;
    font-style: normal;
    margin-right: 0.5%;
    margin-left: 0.5%;
    white-space: nowrap;
}

/* Style the links inside the navigation bar */
footer a {
    color: #f2f2f2;
    text-align: center;
    margin: 1%;
    text-decoration: none;
    cursor: pointer;
    margin-right: 0.5%;
    margin-left: 0.5%;
}

/* Change the color of links on hover */
footer a:hover {
    text-decoration: underline;
    color: white;
}

.footer-hidden {
    display: block;
}

@media screen and (max-width: 750px) {
    #footer-inner {
        flex-direction: column-reverse;
    }

    .footer-hidden {
        display: none;
    }
}

.dropdown {
    text-align: center;
    display: flex;
    position: fixed;
    right: 0.5%;
    bottom: 1%;
    aspect-ratio: 1/1;
}

#dropdown-icon {
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 100%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0.5;
}

#dropdown-icon svg {
    fill: rgb(119, 119, 119);
    width: 24px;
    height: 24px;
}

.dropdown-content {
    display: none;
    position: absolute;
    transform: translate(-95%, -95%);
    text-align: left;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: transparent;
    backdrop-filter: blur(10px);
    background-color: #3333335e;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 1;
}

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