@import url('fonts.css');
@import url('fallingops.css');

html,
body {
    background-color: #011627;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-image: url("../assets/img/wave.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Inconsolata';
    flex-direction: column;
}

nav {
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
}

#menu {
    width: 500px;
    padding: 100px;
    background-color: #0b2942;
    display: grid;
    place-items: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

figure {
    display: flex;
    align-items: center;
    z-index: 2;
}


#title {
    color: #d6deeb;
    font-size: 72px;
    font-weight: bold;
    display: block;
    border-right: 4px solid;
    width: 6ch;
    animation: typing 2s steps(6), blink .5s infinite step-end alternate;
    overflow: hidden;
    cursor: default;
    user-select: none;
}

@keyframes typing {
    from {
        width: 0;
    }
}


@keyframes blink {
    50% {
        border-color: transparent;
    }
}

figure {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

img {
    height: 120px;
    margin-right: 15px;
}

.switch {
    position: relative;
    width: 48px;
    height: 28px;
}


.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: grey;
    transition: .4s;
    border-radius: 28px;
}

.slider::before {
    position: absolute;
    content: url("../assets/img/volume-mute.svg");
    height: 20px;
    width: 20px;
    left: 6px;
    bottom: 3.5px;
    background-color: #d6deeb;
    transition: .4s;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

input:checked+.slider {
    background-color: #82aaff;
}

input:checked+.slider::before {
    transform: translateX(16px);
    content: url("../assets/img/volume-on.svg");
}

.action-button {
    height: 53px;
    width: 250px;
    padding: 10px;
    font-size: 32px;
    margin: 15px;
    border: none;
    background-color: #084d81;
    box-shadow: 0 7px 0 #021e33;
    color: #d6deeb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.15s ease-in-out;
    z-index: 2;
    font-family: inherit;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.action-button:active {
    box-shadow: 0 4px 0 #021e33;
    transform: translateY(3.5px);
}

.action-button:hover {
    color: rgba(255, 255, 255, 1);
}

#play-btn:hover img {
    position: absolute;
    animation: play-dash 0.5s ease-in-out 1 forwards;

}

#play-btn:hover span {
    position: absolute;
    animation: play-text-dash 0.3s ease-in-out 1 forwards;

}

@keyframes play-text-dash {
    from {
        top: 20px;
    }

    to {
        top: -40px;
    }
}

@keyframes play-dash {
    from {
        left: 32%;
    }

    to {
        left: 45%;
    }
}


.action-button:hover img {
    animation: shaking 1s ease infinite;
}

@keyframes shaking {
    30% {
        transform: scale(1.2);
    }

    40%,
    60% {
        transform: rotate(-20deg) scale(1.2);
    }

    50% {
        transform: rotate(20deg) scale(1.2);
    }

    70% {
        transform: rotate(0deg) scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.menu-icon {
    height: 32px;
}

.modal {
    height: 450px;
    overflow-y: scroll;
    scrollbar-width: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    max-width: 300px;
    margin: 0 auto;
    padding: 30px;
    background-color: #d6deeb;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.modal::-webkit-scrollbar {
    display: none;
}

.overlay {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.modal-close-btn {
    position: absolute;
    right: 35px;
    top: 0px;
    font-size: 20px;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-close-btn:hover .leftright {
    transform: rotate(-45deg);
    background-color: #ef5350;
}

.modal-close-btn:hover .rightleft {
    transform: rotate(45deg);
    background-color: #ef5350;
}

.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.leftright {
    height: 4px;
    width: 30px;
    position: absolute;
    margin-top: 24px;
    background-color: #0b2942;
    border-radius: 2px;
    transform: rotate(45deg);
    transition: all .3s ease-in;
}

.rightleft {
    height: 4px;
    width: 30px;
    position: absolute;
    margin-top: 24px;
    background-color: #0b2942;
    border-radius: 2px;
    transform: rotate(-45deg);
    transition: all .3s ease-in;
}

footer {
    margin-top: 7.5px;
}

footer address, address a {
    font-style: normal;
    color: whitesmoke;
    font-size: 0.9em;
}

#help {
    text-align: justify;
}

#help ul {
    list-style-type: "\1F539";
    text-indent: 2.5px;
}
@media (max-width: 760px) {

    #menu {
        width: 400px;
    }

    #title {
        font-size: 60px;
    }

}

@media (max-width: 500px) {

    html,
    body {
        overflow: hidden;
    }

    #menu {
        height: 100%;
    }

    #title {
        font-size: 3.5em;
    }

    figure img {
        width: 95px;
    }

    .action-button {
        font-size: 2.1em;
    }
}