@font-face {
    font-family: 'Alegreya';
    src: url('../fonts/') format('woff2'),
}

:root {
    --accent: #5371FF;
    --dark: #18181b;
    --light: #202024;
    --black: #000;
    --white: #fff;
}

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

ul li {
    list-style: none;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--white);
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Alegreya';
    background: var(--dark);
    color: var(--white);
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: clip;
}

main {
    flex-grow: 1;
}

[class*="__container"] {
    max-width: 1230px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Header */

.header {
    padding-block: 30px;
}

.header__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    width: 200px;
}

.header-login {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.login {
    color: var(--white);
    font-size: 18px;
}

.sign {
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.5s;
    border: 1px solid var(--accent);
}

.sign:hover {
    background: var(--light);
}

@media (max-width:610px) {


    .header__container {
        flex-direction: column;
        gap: 20px;
    }

}

/* Hero */

.hero-section {
    background: url(/images/3.png);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    padding-block: 300px;
}

.hero__container {
    display: flex;
    flex-direction: row;
}

.hero-block {
    flex: 1;
    background: rgba(0, 0, 0, 0.001);
    backdrop-filter: blur(200px);
    -webkit-backdrop-filter: blur(200px);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-block h1 {
    font-size: 50px;
}

.hero-block h2 {
    font-size: 18px;
    font-weight: 400;
}

.hero-block a {
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.5s;
    border: 1px solid var(--accent);
    width: fit-content;
}

.hero-block a:hover {
    background: var(--light);
}

.hero-space {
    flex: 2;
}

@media (max-width:610px) {
    .hero-section {
        background-position: left top;
    }

    .hero__container {
        flex-direction: column;
    }

}

/* Game */

.game-section {
    padding-block: 100px;
}

.game__container {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.game__container h2 {
    font-size: 50px;
}

.game__container p {
    font-size: 20px;
}

.game-block {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 30px;
}

.game-item {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.image-wrapper {
    position: relative;
    display: block;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.2s ease;
}

.play-button {
    padding: 10px 20px;
    background-color: var(--accent);
    border: none;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--white);
}

.image-wrapper:hover .overlay {
    opacity: 1;
}

@media (max-width:610px) {

    .game__container h2 {
        font-size: 40px;
    }

    .game-block {
        flex-direction: column;
    }



}

/* Info */

.info-section {
    padding-block: 100px;
}

.info__container {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.info__container h2 {
    font-size: 50px;
}

.info__container p {
    font-size: 20px;
}

.info-block {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 80px;
}

.info-item {
    flex: 1;
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    height: 200px;
}

.info-top {
    bottom: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.width150 {
    width: 170px !important;
}

.info-item img {
    width: 100px;
    padding-bottom: 10px;
}

.info-item h3 {
    font-size: 25px;
    font-weight: 600;
}

.info-item p {
    font-size: 16px;
    font-weight: 400;
}

@media (max-width:610px) {

    .info__container h2 {
        font-size: 40px;
    }

    .info-block {
        flex-direction: column;

    }

    .info-item {
        padding-bottom: 0;
    }
}

/* Direct */

.direct-section {
    background: url(/images/bg-skip.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    padding-block: 200px;
    position: relative;
    z-index: 0;
}

.direct-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    opacity: 0.5;
    z-index: 1;
}

.direct__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    text-align: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.direct__container h2 {
    font-size: 50px;
}

.direct__container a {
    background: var(--light);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.5s;
    border: 1px solid var(--light);
    width: fit-content;
    margin-top: 10px;
}

.direct__container a:hover {
    background: var(--accent);
    border: 1px solid var(--accent);
}



/* Rewiews */

.rewiews-section {
    padding-block: 100px;
}

.rewiews__container {
    display: flex;
    flex-direction: column;
}

.rewiews__container h2 {
    font-size: 50px;
    text-align: center;
}

.align {
    font-size: 20px;
    text-align: center;
}

.rewiews-blocks {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.rewiews-block {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.rewiews-item {
    background: var(--light);
    border-radius: 10px;
    padding: 30px;
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rewiews-item h3 {
    font-size: 25px;
    font-weight: 600;
}

.rewiews-item p {}

.star {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.star img {
    width: 15px;
}

@media (max-width:610px) {


    .rewiews-block {
        flex-direction: column;
    }

    .rewiews-item {
        width: 100%;
    }
}

/* Skip */

.bg-1 {
    background: url(/images/bg-1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    padding-block: 200px;
}

.bg-2 {
    background: url(/images/bg-3.png);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    padding-block: 200px;
}

.skip__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    text-align: center;
    align-items: center;
}

.skip__container h2 {
    font-size: 50px;
}

.skip__container a {
    background: var(--light);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.5s;
    border: 1px solid var(--light);
    width: fit-content;
    margin-top: 10px;
}

.skip__container a:hover {
    background: var(--accent);
    border: 1px solid var(--accent);
}

@media (max-width:610px) {
    .bg-1 {
        background-position: right;
    }

    .bg-2 {
        background-position: left;
    }

    .skip__container h2 {
        font-size: 40px;
    }
}

/* Game Info */

.gameinfo-section {
    padding-block: 100px;
}

.gameinfo__container {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.gameinfo-block {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 80px;
}

.gameinfo-item {
    flex: 1;
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    height: 230px;
}

.gameinfo-top {
    bottom: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.gameinfo-item img {
    padding-bottom: 10px;
}

.gameinfo-item h3 {
    font-size: 25px;
    font-weight: 600;
}

.gameinfo-item p {
    font-size: 16px;
    font-weight: 400;
}

.width70 {
    width: 70px;
}

.width110 {
    width: 110px;
}

.width50 {
    width: 50px;
}

@media (max-width:610px) {


    .gameinfo-block {
        flex-direction: column;

    }


}

/* Footer */

.footer {
    padding-block: 50px;
    background: var(--light);
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 200px;
}

.social-block {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.social-block svg {
    width: 20px;
    height: 20px;
}

.footer-menu {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.disclaimer {
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 10px;
    color: var(--accent);
}

@media (max-width:610px) {

    .footer-menu {
        flex-direction: column;
        text-align: center;
    }

    .disclaimer {
        text-align: center;
    }
}

/* Login */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--light) 100%);
}

.auth-container {
    background: var(--light);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #7c3aed, var(--accent));
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    font-size: 16px;
    color: #a1a1aa;
}

.auth-tabs {
    display: flex;
    background: var(--dark);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--accent);
    color: var(--white);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--dark);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(83, 113, 255, 0.1);
}

.form-input::placeholder {
    color: #71717a;
}

.form-button {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-button:hover {
    background: #4155d9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(83, 113, 255, 0.3);
}

.form-button:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #4155d9;
    text-decoration: underline;
}

/* Модальне вікно для повідомлення */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--light);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--accent);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

.modal h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--white);
}

.modal p {
    font-size: 16px;
    color: #a1a1aa;
    margin-bottom: 25px;
}

.modal-button {
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background: #4155d9;
}

/* Адаптивність */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px;
    }

    .auth-container {
        padding: 25px 15px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .tab-button {
        font-size: 14px;
        padding: 10px;
    }

    .form-input,
    .form-button {
        font-size: 14px;
    }
}

/* Politic */

.politic-section {
    padding-block: 100px;
}

.politic__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}