@import "general.css";

*{
    margin: 0;
    padding: 0;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background-color: var(--gray1);
    #burgerMenu{
        position: fixed;
        transform: translateY(-100%);
        z-index: 17;
        transition: transform 0.2s ease;
        .burgerRow{
            height: var(--headerMobileHeight);
            width: calc(100vw - 20px);
            padding: 0 10px;
            background-color: var(--gray1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            a{
                text-decoration: none;
                font-family: 'Source Serif Pro', serif;
                font-weight: lighter;
                font-size: 1em;
                color: black;
                transition: transform 0.2s ease;
            }
        }
        .firstBurgerRow{
            justify-content: space-between;
            a{
                height: 100%;
                #leftBurger{
                    height: 100%;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    img{
                        height: 75%;
                    }
                    h1{
                        font-family: "Arial Rounded MT Bold", Arial, sans-serif;
                        font-size: 0.95em;
                        color: var(--blue3);
                    }
                }
            }
            #burgerButtonBurger{
                height: 50%;
                cursor: pointer;
            }
        }
    }
    #overlay{
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 16;
        cursor: pointer;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    header{
        width: 100%;
        height: var(--headerHeight);
        background-color: var(--gray1);
        position: sticky;
        top: 0;
        z-index: 13;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 25px;
        border-bottom: 2px solid black;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        div{
            height: 100%;
            display: flex;
            align-items: center;
            img{
                height: 75%;
            }
            h1{
                font-family: "Arial Rounded MT Bold", Arial, sans-serif;
                font-size: 0.95em;
                color: var(--blue3);
            }
            a{
                text-decoration: none;
                font-family: 'Source Serif Pro', serif;
                font-weight: lighter;
                font-size: 1em;
                color: black;
                transition: transform 0.2s ease;
            }
        }
        #leftHeader{
            gap: 10px;
            position: absolute;
            left: 15px;
            top: 0;
        }
        #middleHeader{
            gap: 20px;
        }
        #burgerButton{
            height: 50%;
            display: none;
            position: absolute;
            right: 10px;
            cursor: pointer;
            rect{
                fill: var(--gray3);
            }
        }
    }
    main{
        flex-grow: 1;
        background-color: white;
        #floatButtonWrapper{
            position: fixed;
            z-index: 14;
            right: 35px;
            bottom: 35px;
            transition: transform 0.25s ease;
            #floatButton{
                width: 70px;
                aspect-ratio: 1 / 1;
                border-radius: 50%;
                background-color: var(--red2);
                filter: drop-shadow(0 0 1px var(--gray3));
                display: flex;
                justify-content: center;
                align-items: center;
                animation: pulse 10s infinite;
                &::after{
                    content: "";
                    position: absolute;
                    width: 100%;
                    aspect-ratio: 1 / 1;
                    border-radius: 50%;
                    border: solid 3px var(--red2);
                    box-sizing: border-box;
                    animation: wave 10s infinite ease;
                }
                svg{
                    width: 50%;
                    animation: shake 10s infinite;
                    path{
                        fill: white;
                    }
                }
            }
        }
    }
    footer{
        width: 100%;
        height: var(--headerHeight);
        background-color: var(--gray1);
        font-size: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 2px solid black;
        box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.25);
        #footerButtons{
            display: flex;
            gap: min(4vw, 20px);
            a{
                text-decoration: none;
                font-family: 'Source Serif Pro', serif;
                font-weight: lighter;
                font-size: 1em;
                color: black;
                transition: transform 0.2s ease;
            }
        }
        #credits{
            font-family: 'Kurale', serif;
            position: absolute;
            right: 20px;
            font-size: 0.75em;
            font-weight: lighter;
        }
        #copyrights{
            font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
            font-weight: 500;
            position: absolute;
            left: 20px;
            font-size: 0.75em;
        }
    }
}

@media (max-width: 1100px) {
    body{
        header{
            height: var(--headerMobileHeight);
            font-size: 20px;
            #leftHeader{
                left: 10px;
            }
            #middleHeader{
                display: none;
            }
            #burgerButton{
                display: block;
            }
        }
        footer{
            height: auto;
            flex-direction: column;
            gap: min(2vw, 10px);
            padding: 10px 0;
            font-size: min(4.5vw, 20px);
            #credits{
                position: static;
                text-align: center;
            }
            #copyrights{
                position: static;
                text-align: center;
            }
        }
        main{
            #floatButtonWrapper{
                right: 25px;
                bottom: 25px;
                #floatButton{
                    width: 50px;
                    &::after{
                        border-width: 2px;
                    }
                }
            }
        }
    }
}

@media (hover: hover) and (pointer: fine){
    .notFirstBurgerRow a:hover{
        transform: translateY(-10%);
    }
    header div a:hover{
        transform: translateY(-10%);
    }
    #footerButtons a:hover{
        transform: translateY(-10%);
    }
    #floatButtonWrapper:hover{
        transform: scale(1.1);
    }
}

@keyframes pulse{
    47.5%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.15);
    }
    52.5%{
        transform: scale(1);
    }
}

@keyframes wave{
    49%{
        opacity: 0;
    }
    50%{
        transform: scale(1);
        opacity: 1;
    }
    60%{
        transform: scale(1.5);
        opacity: 0;
    }
    61%{
        transform: scale(1);
    }
}

@keyframes shake{
    47.5%{
        transform: rotate(0);
    }
    48.75%{
        transform: rotate(15deg);
    }
    50%{
        transform: rotate(0);
    }
    51.25%{
        transform: rotate(15deg);
    }
    52.5%{
        transform: rotate(0);
    }
}