@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@700&display=swap');

:root {
	--background: #323333;
    --line: #00bc00;
	--text: #ebebeb;
    --bolder-shadow: rgba(0,0,0, 0.8) 3px 3px 3px;
	--shadow: rgba(0,0,0, 0.3) 3px 3px 1px;
    --box-shadow: 0 0 15px rgba(0,0,0, 0.4);
    --mini-box-shadow: 0 0 5px rgba(0,0,0, 0.4);
    --red: #bf4343; /* #cd0000 */
}

* {
	padding: 0;
	margin: 0;
}

html, body {
    color: var(--text);
    font-family: 'Golos Text', sans-serif;
    text-shadow: var(--shadow);
    overflow-y: hidden;
}

body::-webkit-scrollbar, #popup-window::-webkit-scrollbar {
    width: 7px;
}

body::-webkit-scrollbar-track, #popup-window::-webkit-scrollbar-track {
    background: var(--body-bg);
}

body::-webkit-scrollbar-thumb, #popup-window::-webkit-scrollbar-thumb {
    background-color: var(--line);
    border-radius: 20px;
}

a {
    text-decoration: none;
    color: var(--text);
}

input, button {
    outline: none;
    border: none;
    color: var(--text);
    font-family: 'Golos Text', sans-serif;
    text-shadow: var(--shadow);
}

button {
    cursor: pointer;
    user-select: none;
}

svg {
    -webkit-filter: drop-shadow(var(--shadow));
            filter: drop-shadow(var(--shadow));
    fill: var(--text);
}

img {
    pointer-events: none;
}

body {
	background: url('/static/assets/background.webp') var(--background);
}

/* Popup */

#popup-window {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: rgba(27, 27, 27, 0.8);
    z-index: 100;
    overflow-y: auto;
}

#popup-window > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-height: calc(100% - 100px);
    margin: 50px 0;
}

.popup-frame {
    position: relative;
    width: 600px;
    background: var(--background);
    border-radius: 25px;
    padding: 40px 50px;
    border: 3px solid var(--line);
    -webkit-box-shadow: 0 0 10px 3px var(--line),
                inset 0 0 10px 3px var(--line);
            box-shadow: 0 0 10px 3px var(--line),
                inset 0 0 10px 3px var(--line);
}

.popclose {
    display: none;
}

.close-popup {
    position: absolute;
    right: 25px;
    top: 25px;
    width: 35px;
    height: 35px;
    fill: var(--text);
    cursor: pointer;
    -webkit-transition: fill .3s;
    -o-transition: fill .3s;
    transition: fill .3s;
}

.close-popup:hover {
    fill: var(--line);
}

#login-popup {
    width: 450px;
}

#login-popup > p {
    text-align: center;
    font-size: 38px;
    margin-bottom: 30px;
    background: -webkit-linear-gradient(#00cc00, #009999);
    background-size: 100%;
        -webkit-background-size: 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    -webkit-filter: drop-shadow(var(--bolder-shadow));
	        filter: drop-shadow(var(--bolder-shadow));
}

.login-methods > p {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.login-methods-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.login-method {
    width: 75%;
}

.login-method:not(:nth-last-child(1)) {
    margin-bottom: 15px;
}

.auth-button:not(:last-child) {
    margin-bottom: 10px;
}

.auth-button svg {
    width: 30px;
    height: 30px;
    fill: var(--text);
    margin-right: 15px;
}

.auth-button.google svg {
    transform: scale(0.85);
}

.auth-button.discord svg {
    transform: scale(1.05);
}

.auth-button.telegram svg {
    transform: scale(1.2);
}

.auth-button.yandex svg {
    transform: scaleY(0.75);
}

.auth-button:hover {
    background: var(--line) !important;
}

.auth-button span {
    width: 100%;
    width: -moz-available;
    width: -webkit-fill-available;
    width: fill-available;
    text-align: center;
}

.mobile-social-media {
    display: none;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.mobile-social-media a:first-child {
    margin-right: 20px;
}

.mobile-social-media svg {
    width: 30px;
    height: 30px;
    fill: var(--text);
}

/* Header */

.header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
    width: 85%;
	margin: 0 auto 40px;
    padding: 30px 3% 30px;
    border-bottom: 2px solid var(--line);
    text-shadow: var(--bolder-shadow);
}

.site-logo img {
    height: 80px;
}

.hmenu-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
	margin: 0 50px;
}

.hmenu {
    position: relative;
	font-size: 26px;
    -webkit-transition: color .3s;
    -o-transition: color .3s;
    transition: color .3s;
}

.hmenu::after {
    content: '';
    display:block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--line);
    -webkit-transform: scaleX(0);
        -ms-transform: scaleX(0);
            transform: scaleX(0);
    -webkit-transition: -webkit-transform .3s ease-in-out;
    transition: -webkit-transform .3s ease-in-out;
    -o-transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
}

.hmenu:hover {
    color: var(--line);
}

.hmenu:hover::after {
    -webkit-transform: scaleX(1);
        -ms-transform: scaleX(1);
            transform: scaleX(1);
}

.hmenu:not(:first-child) {
	margin-left: 40px;
}

.profile-button div {
    background: var(--line);
    padding: 10px 15px;
    border-radius: 15px;
}

.profile-button:hover::after {
    -webkit-transform: scaleX(0);
        -ms-transform: scaleX(0);
            transform: scaleX(0);
}

.haccount {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	width: -webkit-max-content;
	width: -moz-max-content;
	width: max-content;
    transition: color .5s;
}

.haccount:hover {
    color: var(--line);
}

.haccount .haccount-img > img {
	width: 50px;
	height: 50px;
	border-radius: 50px;
	border: 3px solid var(--text);
	-webkit-box-shadow: var(--bolder-shadow);
	        box-shadow: var(--bolder-shadow);
    transition: border .5s;
}

.haccount:hover .haccount-img > img {
    border: 3px solid var(--line);
}

.haccount-img {
    position: relative;
}

.haccount-img > span {
    position: absolute;
    bottom: -3px;
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    background: var(--text);
    border-radius: 20px;
}

.haccount-img > span svg {
    fill: var(--line);
    width: 14px;
    height: 14px;
    margin: 3px;
    filter: none;
}

.hacc-info {
	margin-left: 20px;
	font-size: 18px;
}



#auth-button, .auth-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 12px 20px;
    background: #0077FF;
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    font-weight: bolder;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    -webkit-transition: background-color .3s;
    -o-transition: background-color .3s;
    transition: background-color .3s;
}

#auth-button svg {
    width: 23px;
    height: 23px;
    fill: var(--text);
    margin-right: 15px;
}

#auth-button:hover {
    background: var(--line);
}

/* Mobile nav bar */

.nav-mobile {
    width: 100%;
    position: relative;
    display: none;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.nav-haccount {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

/* Toggle Functionality */

#nav-toggle {
  display: none;
}

#nav-toggle:checked ~ .toggle-container .button-toggle {
    -webkit-box-shadow: -230px -21px 0 400px rgba( 0, 0, 0, 0.1), inset 0 0 0 20px rgba( 0, 0, 0, 0.1);
            box-shadow: -230px -21px 0 400px rgba( 0, 0, 0, 0.1), inset 0 0 0 20px rgba( 0, 0, 0, 0.1);
}

#nav-toggle:checked ~ .toggle-container .button-toggle:before {
    -webkit-transform: translateY(-50%) rotate(45deg) scale(1);
        -ms-transform: translateY(-50%) rotate(45deg) scale(1);
            transform: translateY(-50%) rotate(45deg) scale(1);
}

#nav-toggle:checked ~ .toggle-container .button-toggle:after {
    -webkit-transform: translateY(-50%) rotate(-45deg) scale(1);
        -ms-transform: translateY(-50%) rotate(-45deg) scale(1);
            transform: translateY(-50%) rotate(-45deg) scale(1);
}

#nav-toggle:checked ~ .nav {
    width: 100%;
    height: 100%;
    pointer-events: auto;
    margin: 15px 0 0;
}

#nav-toggle:checked ~ .nav .nav-item {
    color: var(--text);
    letter-spacing: 0;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    height: 40px;
    font-size: 20px;
    line-height: 25px;
    padding: 10px 10px 0;
    margin-top: 0;
    opacity: 1;
    -webkit-transform: scaleY(1);
        -ms-transform: scaleY(1);
            transform: scaleY(1);
    -webkit-transition: 0.5s, opacity 0.1s;
    -o-transition: 0.5s, opacity 0.1s;
    transition: 0.5s, opacity 0.1s;
}

#nav-toggle:checked ~ .nav .nav-item:before {
    opacity: 0;
}

/* Toggle Button */

.button-toggle {
    position: absolute;
    display: inline-block;
    top: 4px;
    right: 8px;
    width: 28px;
    height: 28px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 100%;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
    -webkit-box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.1), inset 0 0 0 20px rgba(0, 0, 0, 0.1);
            box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.1), inset 0 0 0 20px rgba(0, 0, 0, 0.1);
}

.button-toggle:before, .button-toggle:after {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--line);
    border-radius: 5px;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.button-toggle:before {
    -webkit-transform: translateY(-50%) rotate(45deg) scale(0);
        -ms-transform: translateY(-50%) rotate(45deg) scale(0);
            transform: translateY(-50%) rotate(45deg) scale(0);
}

.button-toggle:after {
    -webkit-transform: translateY(50%) rotate(-45deg) scale(0);
        -ms-transform: translateY(50%) rotate(-45deg) scale(0);
            transform: translateY(50%) rotate(-45deg) scale(0);
}

/* Menu */

.nav {
    width: 28px;
    height: 28px;
    float: right;
    margin: 6px 7px 0 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    pointer-events: none;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.nav-item {
    position: relative;
    display: inline-block;
    clear: both;
    color: transparent;
    font-size: 0;
    letter-spacing: -6.2px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    height: 8px;
    line-height: 0;
    white-space: nowrap;
    -webkit-transform: scaleY(0.2);
        -ms-transform: scaleY(0.2);
            transform: scaleY(0.2);
    -webkit-transition: 0.5s, opacity 1s;
    -o-transition: 0.5s, opacity 1s;
    transition: 0.5s, opacity 1s;
}

.nav-item:nth-child(1) {
    letter-spacing: -8px;
}

.nav-item:nth-child(2) {
    letter-spacing: -7px;
}

.nav-item:nth-child(n + 4) {
    letter-spacing: -8px;
    margin-top: -8px;
    opacity: 0;
}

.nav-header-profile {
    letter-spacing: -8px;
    margin-top: -8px;
    transition: .5s;
    opacity: 0;
}

.nav-item:before {
    position: absolute;
    content: '';
    top: 50%;
    left: -14px;
    width: 28px;
    height: 3px;
    background-color: var(--line);
    -webkit-transform: translateY(-50%) scaleY(5);
        -ms-transform: translateY(-50%) scaleY(5);
            transform: translateY(-50%) scaleY(5);
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.nav-haccount img {
    width: 0;
    height: 0;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
}

#nav-toggle:checked ~ .nav .nav-header-profile .nav-haccount img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: 2px solid var(--text);
}

.nav-hacc-info {
    margin-left: 20px;
}

.nav-hmenu-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

#nav-toggle:checked ~ .nav .nav-header-profile {
    height: 60px;
}

.profile-button.nav-hmenu {
    background: var(--line);
    padding: 10px 35px 0 !important;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* Footer */

footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    width: 80%;
    padding: 0 10% 40px;
	height: calc(284px - 60px);
	background: url('/static/assets/footer.webp');
	background-size: cover;
    font-size: 24px;
    text-align: center;
}

@media all and (min-width: 1920px) {
	footer {
		background-size: 100% 100%;
	}
}

.footer-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.footer-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    cursor: pointer;
    -webkit-transition: color .3s;
    -o-transition: color .3s;
    transition: color .3s;
}

.footer-button:not(:last-child) {
    margin-right: 40px;
}

.footer-button:hover {
    color: #b0b0b0;
}

.footer-button svg {
    width: 60px;
    height: 60px;
    fill: var(--text);
    margin-right: 25px;
    -webkit-transition: fill .3s;
    -o-transition: fill .3s;
    transition: fill .3s;
}

.footer-button:hover svg {
    fill: #b0b0b0;
}

@media all and (max-width: 1480px) {

    .header {
        width: 90%;
        margin: 0 auto 40px;
        padding: 20px 2.5% 20px;
    }

    .hmenu {
        font-size: 24px;
    }

    footer {
        font-size: 21px;
        padding: 0 10% 30px;
        height: calc(284px - 90px);
    }

    .footer-button svg {
        width: 50px;
        height: 50px;
    }

}

@media all and (max-width: 1300px) {

    #login-popup {
        width: 400px;
    }

    #login-popup > p {
        font-size: 36px;
    }

    .login-methods > p {
        font-size: 22px;
    }

    .header {
        margin: 0 auto 40px;
        padding: 15px 2.5% 15px;
    }

    .hmenu {
        font-size: 22px;
    }

    .hmenu:not(:first-child) {
        margin-left: 30px;
    }

    .hacc-info {
        font-size: 17px;
    }

    .auth-button {
        padding: 9px 20px;
    }

    #auth-button {
        padding: 10px 18px;
    }

    footer {
        width: 90%;
        height: calc(284px - 115px);
        padding: 0 5% 30px;
        font-size: 19px;
        background-size: 100% 85%;
        background-position: bottom;
        background-repeat: no-repeat;
    }

    .footer-button svg {
        width: 45px;
        height: 45px;
        margin-right: 20px;
    }

}

@media all and (max-width: 1220px) {

    .header {
        width: 80%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        margin: 0 auto 60px;
        padding: 25px 5% 25px;
    }

    .site-logo img {
        height: 70px;
    }

    .hmenu-wrapper {
        margin: 20px 0;
    }

    .hmenu {
        font-size: 21px;
        padding: 5px 0;
    }

    .hmenu:not(:first-child) {
        margin-left: 35px;
    }

    .hacc-info {
        font-size: 17px;
    }

}

@media all and (max-width: 1200px) {

    .popup-frame {
        width: 500px;
    }

}

@media all and (max-width: 1130px) {

    .header {
        margin: 0 auto 60px;
        padding: 30px 2.5%;
    }

    .haccount > img {
        width: 44px;
        height: 44px;
        border: 2px solid var(--text);
    }

}

@media all and (max-width: 970px) {

    footer {
        padding: 0 5% 20px;
        font-size: 18px;
    }

    .footer-button svg {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

}

@media all and (max-width: 820px) {

    footer {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
        height: 205px;
        background-size: 130% 100%;
        background-position: bottom left;
    }

    .footer-buttons {
        margin-bottom: 20px;
    }

}

@media all and (max-width: 730px) {

    .popup-frame {
        width: 400px;
    }

}

@media all and (max-width: 700px) {

    .header {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        margin: 0 auto 70px;
    }

    .site-logo img {
        height: 50px;
    }

    .hmenu-wrapper, .header-profile, .site-logo {
        display: none;
    }

    .nav-mobile .site-logo {
        display: inline-block;
    }

    .nav-mobile {
        display: block;
    }

    footer {
        background-size: 150% 100%;
    }

}

@media all and (max-width: 630px) {

    footer {
        background-size: 220% 100%;
        height: 235px;
    }

    .footer-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        margin-bottom: 25px;
    }

    .footer-button {
        width: 100%;
    }

    .footer-button > span {
        width: calc(100% - 55px);
        text-align: center;
    }

    .footer-button:not(:last-child) {
        margin: 0 0 20px;
    }

    #login-popup > p {
        font-size: 32px;
    }

    .login-methods > p {
        font-size: 20px;
    }

    #login-popup {
        width: calc(85% - 100px);
    }

    .login-method {
        width: 80%;
    }

}

@media all and (max-width: 520px) {

    .popup-frame {
        width: 90%;
        padding: 30px 10px;
    }

}

@media all and (max-width: 500px) {

    #login-popup {
        width: calc(90% - 70px);
        padding: 30px 35px;
    }

    #login-popup > p {
        font-size: 28px;
    }

    .login-method {
        width: 100%;
    }

}

@media all and (max-width: 450px) {

    footer {
        background-size: 260% 100%;
    }

}