header {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;

    @media screen and (max-width: 979px) {
        flex-direction: row;
    }

    @media screen and (max-width: 500px) {
        padding: 1%;
    }

    #logo {
        aspect-ratio: 1/1;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        @media screen and (max-width: 979px) {
            justify-content: flex-start;
            width: 30%;
            height: 100%;
            aspect-ratio: initial;
            padding: 0 2.5%;
        }

        a {
            width: 70%;
            aspect-ratio: 1/1;
            display: flex;
            align-items: center;
            justify-content: center;

            @media screen and (max-width: 979px) {
                width: initial;
                height: 90%;
            }

            img {
                aspect-ratio: 1/1;
                width: 85%;
            }
        }
    }

    #middle {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        @media screen and (max-width: 979px) {
            width: 100%;
        }

        #menuButton {
            transform: rotate(-90deg);
            padding: 5% 10%;
            height: 6%;

            display: flex;
            align-items: center;
            justify-content: center;

            p {
                font-family: lato;
                font-size: 1.5rem;
                user-select: none;
            }

            img {
                aspect-ratio: 1/1;
                height: 100%;
                transform: rotate(90deg);
                display: none;
                user-select: none;
            }

            &:hover {
                cursor: pointer;
            }

            @media screen and (max-width: 979px) {
                display: none;
            }
        }

        #menuMobileButton {
            display: none;
            aspect-ratio: 1/1;
            height: 60%;
            border-radius: 50%;
            justify-content: center;
            align-items: center;

            img {
                aspect-ratio: 1/1;
                width: 75%;

                transition: transform .5s ease;
            }

            &:hover {
                cursor: pointer;
            }

            @media screen and (max-width: 979px) {
                display: flex;
            }
        }
    }

    #settings {
        aspect-ratio: 1/1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding: 3% 1%;

        @media screen and (max-width: 979px) {
            flex-direction: row;
            height: 100%;
            width: 30%;
            padding: 1% 3%;
            aspect-ratio: 1/1;
        }

        #settings-btn {
            aspect-ratio: 1/1;
            width: 75%;
            opacity: .65;

            display: flex;
            align-items: center;
            justify-content: center;

            border: 2px solid transparent;

            @media screen and (max-width: 979px) {
                width: initial;
                height: 100%;
            }


            img {
                width: 60%;
            }

            &:hover {
                cursor: pointer;
                opacity: 1;
            }
        }
    }
}

nav {
    position: fixed;
    top: 0;
    left: -21%;
    z-index: 3;

    background-color: var(--background);
    border-right: 2px solid var(--menuBorder);
    width: 25%;
    height: 100%;

    transition: .5s ease;

    @media screen and (max-width: 1200px) {
        width: 50%;
        left: -43%;
    }

    @media screen and (max-width: 979px) {
        left: 0;
        top: 92%;

        width: 100%;
        border-right: 0;
        border-top: 2px solid var(--menuBorder);
        height: 92%;
        padding-bottom: 2.5%;
    }

    #tabs {
        display: flex;
        border-bottom: 3px solid var(--primary);

        .menuTab {
            padding: 4% 3.5%;
            transition: .5s ease;

            p {
                font-family: oswald;
                font-size: 1.45rem;
                user-select: none;
            }

            &:hover {
                background-color: var(--primary95);
                cursor: pointer;
            }
        }

        .selected {
            background-color: var(--primary95);
        }
    }

    #tabContent {
        width: 100%;
        height: 91%;
        display: flex;
        flex-direction: column;

        .menuTabContents {
            overflow-y: scroll;
            width: 100%;
            height: 0;

            transition: .75s ease;

            &::-webkit-scrollbar {
                display: none;
            }
        }

        .selected {
            height: 100%;
            overflow-y: scroll;
        }

        .menuItem {
            display: flex;
            align-items: center;
            border-bottom: 1px solid var(--primary);
            padding: 2.5%;

            &:hover {
                background: linear-gradient(0.25turn, var(--primary95), transparent);
            }

            img {
                aspect-ratio: 1/1;
                width: 8%;
                margin-right: 2.5%;
            }

            p {
                font-family: oswald;
                font-size: 1.4rem;
            }
        }

        #settings {
            padding: 0 3%;

            section {
                padding: 5% 0;
                border-bottom: 1px solid var(--primary95);

                &:first-child {
                    border-bottom: 1px solid var(--primary);
                }

                .s-h2 {
                    font-size: 1.05rem;
                    margin-bottom: 4%;
                }

                .s-selectorDiv {
                    width: 100%;
                    background-color: var(--primary25);
                    border: 1px solid var(--primary55);
                    border-radius: 10px;
                    padding: 4.5% 3.5% 0 3.5%;
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;

                    .ss-top {
                        width: 100%;
                        height: 4vh;
                        display: flex;
                        align-items: center;
                        margin-bottom: 5%;

                        .ss-title {
                            width: 45%;
                            height: 100%;
                            display: flex;
                            align-items: center;

                            img {
                                aspect-ratio: 1/1;
                                width: 1.75rem;
                                margin-right: 5%;
                            }

                            p {
                                font-size: 1.35rem;
                            }
                        }

                        .ss-selector {
                            width: 55%;
                            height: 100%;
                            display: flex;
                            justify-content: flex-end;
                            align-items: center;
                            opacity: .75;

                            .sss-img {
                                aspect-ratio: 1/1;
                                width: 1.25rem;
                                margin-right: 3.5%;
                            }

                            p {
                                font-size: 1.25rem;
                            }

                            .sss-arrow {
                                aspect-ratio: 1/1;
                                width: 15%;
                                margin-left: 1.5%;
                                transform: rotate(0deg);
                                transition: .5s ease;
                            }
                        }

                        &:hover {
                            cursor: pointer;

                            .ss-selector {
                                .sss-arrow {
                                    margin-left: 5%;
                                }
                            }
                        }
                    }

                    .sst-open {
                        .ss-selector {
                            .sss-arrow {
                                transform: rotate(90deg);
                            }
                        }
                    }

                    .ss-dropdown {
                        border-top: 2px solid transparent;
                        width: 100%;
                        overflow: hidden;
                        max-height: 0;
                        transition: .5s ease, max-height .75s ease;
                        display: flex;
                        flex-direction: column;
                        padding: 0 1%;

                        .ssd-item {
                            width: 100%;
                            padding: 3.5% 2.5%;
                            border-bottom: 1px solid var(--lines-transparent);
                            display: flex;
                            align-items: center;

                            &:last-child {
                                border-bottom: 0;
                            }

                            .ssdi-indicator {
                                border-radius: 50%;
                                aspect-ratio: 1/1;
                                width: .75rem;
                                background-color: transparent;
                                margin-right: 5%;
                                border: 1px solid var(--lines-transparent);
                            }

                            &:hover {
                                cursor: pointer;

                                .ssdi-indicator {
                                    border: 1px solid transparent;
                                    background-color: var(--primary);
                                }
                            }

                            img {
                                aspect-ratio: 1/1;
                                width: 1.35rem;
                                margin-right: 2.5%;
                            }

                            p {
                                font-size: 1.35rem;
                            }
                        }

                        .ssdi-selected {
                            .ssdi-indicator {
                                border: 1px solid transparent;
                                background-color: var(--primary);
                            }
                        }
                    }

                    .ssd-open {
                        border-top: 2px solid var(--primary);
                        padding: 2% 1%;
                    }
                }
            }

            #s-cover {
                #s-title {
                    font-family: oswald;
                    color: var(--title);
                    margin: 0 0 1.5% 0;

                    font-size: 1.75rem;
                }

                #s-subtitle {
                    opacity: .75;
                }
            }
        }
    }
}

footer {
    background-color: var(--footerBackground);
    width: 100%;
    padding: .5%;

    #top {
        padding: .5%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        @media screen and (max-width: 767px) {
            flex-direction: column;
            align-items: flex-start;
            padding: 1.75% 1%;
        }

        #title {
            color: var(--h1);
            font-family: maroco;
            font-size: 2rem;

            /*@media screen and (max-width: 767px) {*/
            /*    margin-left: .25rem;*/
            /*}*/
        }

        #socials {
            display: flex;
            height: 2.5rem;

            .icon {
                aspect-ratio: 1/1;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-left: .25rem;

                img {
                    aspect-ratio: 1/1;
                    height: 75%;
                    opacity: .5;
                }

                &:hover {
                    img {
                        opacity: 1;
                    }
                }

                @media screen and (max-width: 767px) {
                    margin-left: 0;
                    margin-right: .25rem;
                }
            }

            @media screen and (max-width: 767px) {
                width: 100%;
                height: 2.25rem;

                overflow-x: scroll;

                &::-webkit-scrollbar {
                    display: none;
                }
            }
        }
    }

    #middle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: .5%;

        hr {
            width: 100%;
        }
    }

    #bottom {
        display: flex;
        justify-content: space-between;
        padding: .5%;

        @media screen and (max-width: 767px) {
            flex-direction: column-reverse;

            p {
                margin: .75% 0;
            }
        }
    }
}

aside {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    z-index: 2;

    #socials {
        position: fixed;
        top: 1vw;
        right: 1.2vw;

        display: flex;
        flex-direction: row-reverse;

        .icon {
            aspect-ratio: 1/1;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            height: 3.5rem;

            img {
                aspect-ratio: 1/1;
                height: 60%;
                opacity: .5;
            }

            &:hover {
                img {
                    opacity: 1;
                }
            }
        }

        #main-ico {
            background-color: var(--primary55);
            margin-left: 0;

            img {
                padding-top: 2%;
                opacity: 1;
            }
        }

        #socialIcons {
            display: flex;
            overflow: hidden;
            flex-direction: row-reverse;

            max-width: 0;
            transition: max-width 0.75s ease;
        }

        @media screen and (max-width: 979px) {
            display: none;
        }
    }
}