@import "general.css";

*{
    margin: 0;
    padding: 0;
}

body{
    background-color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    header{
        top: 0;
        position: sticky;
        z-index: 20;
        background-color: black;
        width: 100%;
        height: var(--headerHeight);
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        #benjLogoA{
            position: absolute;
            left: 10px;
            display: flex;
            align-items: center;
            #benjLogo{
                height: 38px;
            }
        }
        #burger{
            height: 25px;
            margin-right: 10px;
            right: 10px;
            display: none;
            width: auto;
            overflow: visible;
            cursor: pointer;
            rect{
                fill: var(--pink);
            }
        }
        .mainHeaderButton{
            text-decoration: none;
            font-size: 23px;
            padding: 1em 0.4em;
            color: white;
            font-family: 'Kurale', serif;
            font-weight: 100;
            transition: box-shadow 0.25s ease;
        }
        #currentPage{
            background-color: var(--pink);
        }
    }
    #menu{
        position: fixed;
        z-index: 21;
        width: 100%;
        background-color: black;
        padding-bottom: 5px;
        overflow-y: auto;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        visibility: hidden;
        transition: top 0.25s ease;
        .hiddenImgs{
            width: 100%;
            padding: 5px 0;
            display: flex;
            align-items: center;
            margin-top: 0.25rem;
            #hiddenBenjLogoA{
                margin-right: auto;
                margin-left: 10px;
                #hiddenBenjLogo{
                    height: 25px;
                }
            }
            #hiddenBurger{
                height: 25px;
                margin-right: 10px;
                width: auto;
                overflow: visible;
                cursor: pointer;
                rect{
                    fill: var(--pink);
                }
            }
        }
        .mainBurgerButton{
            text-decoration: none;
            font-size: 22px;
            padding: 0.4em 1em;
            color: white;
            font-family: 'Kurale', serif;
            font-weight: 100;
            transition: box-shadow 0.15s ease;
        }
        #hiddenCurrentPage{
            background-color: var(--pink);
        }
    }
    #shade{
        position: fixed;
        z-index: 19;
        width: 100vw;
        height: 100vh;
        background-color: var(--gray3);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    main{
        flex: 1;
        background-color: white;
        #floatButtonWrapper{
            position: fixed;
            z-index: 18;
            right: 35px;
            bottom: 35px;
            transition: transform 0.25s ease;
            #floatButton{
                width: 70px;
                aspect-ratio: 1 / 1;
                border-radius: 50%;
                background-color: var(--pink);
                filter: drop-shadow(0 0 1px var(--shadow));
                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(--pink);
                    box-sizing: border-box;
                    animation: wave 10s infinite ease;
                }
                svg{
                    width: 50%;
                    animation: shake 10s infinite;
                    path{
                        fill: white;
                    }
                }
            }
        }
    }
    footer{
        width: 100vw;
        background-color: black;
        display: flex;
        flex-direction: column;
        align-items: center;
        #fMainPart{
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-evenly;
            align-items: flex-start;
            align-content: center;
            .footerPoint{
                flex-basis: 25%;
                padding: 1em 0;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                h1{
                    font-family: 'KyivType', serif;
                    font-size: min(2vw, 1.5em);
                    color: white;
                    padding: 0.2em 0;
                }
                p{
                    font-family: 'Kurale', serif;
                    font-size: min(1.85vw, 1.35em);
                    color: white;
                    padding: 0.1em 0;
                    svg{
                        height: 1.15em;
                        width: auto;
                        vertical-align: middle;
                        overflow: visible;
                        transform: translateY(-10%);
                        path{
                            fill: white;
                        }
                    }
                }
                .pShort{
                    padding-top: calc(min(1.85vw, 1.35em) + 0.1em);
                }
            }
        }
        #fCredits{
            width: 96%;
            padding: 0 0 1em 0;
            display: flex;
            align-items: center;
            p{
                color: white;
                font-family: 'Kurale', serif;
                font-size: calc(min(1.85vw, 1.35em) * 0.8);
                text-align: center;
                padding: 0 2vw;
            }
            .fStripe{
                height: 1px;
                flex-grow: 1;
                background-color: white;
            }
        }
    }
}

@media (max-width: 1000px){
    body{
        header{
            justify-content: end;
            gap: 10px;
            height: var(--mobileHeaderHeight);
            #benjLogoA{
                #benjLogo{
                    height: 25px;
                }
            }
            #burger{
                display: block;
            }
            .mainHeaderButton{
                display: none;
            }
        }
        main{
            #floatButtonWrapper{
                right: 25px;
                bottom: 25px;
                #floatButton{
                    width: 50px;
                    &::after{
                        border-width: 2px;
                    }
                }
            }
        }
    }
}

@media (max-width: 760px){
    body{
        footer{
            #fMainPart{
                .footerPoint{
                    padding: 0.5em 0;
                    flex-basis: 50%;
                    h1{
                        font-size: min(3.75vw, 1.2em);
                    }
                    p{
                        font-size: min(3.5vw, 1em);
                    }
                    .pShort{
                        padding-top: 0;
                    }
                }
            }
            #fCredits{
                padding: 0.5em 0;
                p{
                    width: 100%;
                    font-size: calc(min(3.5vw, 1em) * 0.8);
                }
                .fStripe{
                    display: none;
                }
            }
        }
    }
}

@media (hover: hover) and (pointer: fine){
    .mainHeaderButton:hover{
        box-shadow: 0 0 3px 2px var(--pink);
    }
    .mainBurgerButton:hover{
        box-shadow: 0 0 3px 2px var(--pink);
    }
    #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);
    }
}