@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@keyframes burgerOpen {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes burgerClose {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes popupOpen {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popupClose {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

:root {
    --dark-theme: #1e1e1e;
    --dark-theme-colortext: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #D3D3D3;
    transition: 0.3s;
}

p.menu__about {
    transition: 0.3s;
}

p.menu__about:hover {
    color: #D3D3D3;
    transition: 0.3s;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

body.dark {
    background-color: var(--dark-theme);
}

body.dark .info__header-text {
    color: var(--dark-theme-colortext);
}

body.dark .timer__item {
    color: var(--dark-theme-colortext);
}

body.dark .timer__border {
    background-color: #424242;
}

body.dark .bx-moon {
    color: var(--dark-theme-colortext);
}

body.dark .bx-menu {
    color: var(--dark-theme-colortext);
}

body.dark .timer__border {
    box-shadow: 4px 2px 4px 1px rgba(255, 255, 255, 0.5);
}

.menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100dvh;
    background-color: #808080;
    color: #fff;
    transition: opacity 0.4s ease; 
    animation: burgerOpen 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.menu__nav-elem {
    margin-top: 30px;
    margin-left: 29px;
    font-size: 20px;
}

.menu__about {
    display: inline-flex;
    margin-right: 29px;
    font-size: 20px;
    cursor: pointer;
}

.menu__hide {
    animation: burgerClose 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150px;
    margin-bottom: 100px;
}

.info__header-text {
    font-weight: 400;
    font-size: 70px;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
}

.timer__border {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #696969;
    background-color: #C0C0C0;
    border-radius: 7px;
    box-shadow: 4px 2px 4px 1px rgba(0, 0, 0, 0.5);
    height: 300px;
}

.timer__item {
    font-size: 65px;
    padding: 30px;
}

h2 {
    font-family: 'Montserrat', 'sans-serif';
    font-weight: 500;
    text-align: center;
}

p {
    font-size: 40px;
    text-align: center;
}

.popup__container {
    z-index: 2;
    position: relative;
    margin: 0 auto;
    margin-top: -315px;
    max-width: 1250px;
    height: 200px;
}

.popup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 5px;
    background-color: #808080;
    color: #fff;
    box-shadow: 7px 3px 8px 1px rgba(0,0,0,0.8);
    animation: popupOpen 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.popup__header {
    font-size: 32px;
    padding-top: 25px;
    padding-left: 20px;
    padding-bottom: 20px;
}

.popup__info, .popup__author, .popup__project-link {
    font-size: 22px;
}

.popup__author {
    padding-top: 30px;
}

.popup__project-link {
    padding-bottom: 30px;
    text-decoration: underline;
}

.popup__container--hide {
    animation: popupClose 0.5s ease-in forwards;
}

.bx-moon-wrapper {
    position: absolute;
    top: 30px;
    right: 35px;
}

.bx-closepopup {
    color: #DC143C;
}

.bx-moon, .bx-menu, .bx-x {
    font-size: 30px;
    cursor: pointer;
}

.bx-menu-wrapper {
    position: absolute;
    top: 30px;
    left: 35px;
}

.bx-close-wrapper {
    position: absolute;
    top: 30px;
    right: 15px;
}

@media (max-width: 1200px) {
    .info__header--second {
        text-align: center;
    }
}

@media (max-width: 960px) {
    .info__header-text {
        font-weight: 400;
        font-size: 50px;
        text-align: center;
    }

    .timer__border {
        flex-direction: column;
        height: auto;
        width: 350px;
    }

    .popup__container {
        margin-top: -960px;
    }
}

@media (max-width: 480px) {
    .popup__header {
        padding-right: 100px;
    }
}