* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-white: hsl(0, 0%, 100%);
    --color-purple: hsl(291, 24%, 50%);
    --color-light-lavender: hsl(256, 34%, 74%);
    --color-dark-lavender: hsl(291, 34%, 40%);
    --color-blue: hsl(234, 70%, 77%);
    --color-light-black: rgba(0, 0, 0, 0.7);
}

::selection {
    background: var(--color-light-lavender);
    color: var(--color-white);
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    width: 100%;
    min-width: 1037px;
}

.main-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.main-section::before {
    content: '';
    inset: 0;
    position: absolute;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 60%,
        var(--color-purple) 60.5%,
        var(--color-purple) 100%
    ),
    url(images/abyssal-fate-bg.webp) left center / auto 100% no-repeat;
}

.main-image {
    display: none;
}

.main-text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    color: var(--color-white);
    z-index: 2;
    top: 25%;
    right: 6%;
}

.main-text p {
    font-weight: 600;
    font-size: 22px;
    color: var(--color-light-lavender);
}

.main-text h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    width: 20%;
}

.main-button {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-button a {
    width: 12%;
    background: var(--color-light-lavender);
    box-shadow: 4px 4px 0 var(--color-dark-lavender);
    padding: 1rem;
    color: var(--color-white);
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    margin-right: 7rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.main-button a:last-of-type {
    margin-right: 10rem;
}

.main-button a:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-dark-lavender);
}

.game-des {
    padding: 2vw 6vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: url(images/main-bg.webp);
    background-size: 100% 100%;
    background-attachment: fixed;
    overflow: hidden;
    margin: -0.1% 0;
    z-index: 1;
}

.game-des::before {
    content: '';
    inset: 0;
    position: absolute;
    background-color: var(--color-light-black);
}

.des-text {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: justify;
    color: var(--color-white);
    width: 60%;
    font-size: 17px;
    font-weight: 600;
    padding: 2rem 3rem;
    border: 2px solid var(--color-purple);
    background: var(--color-dark-lavender);
    margin: 4rem 0 3rem 0;
}

.des-text h2,
.des-text span {
    color: var(--color-light-lavender);
}

.des-text p {
    font-size: clamp(1rem, 2vw, 1.4rem);
}

.game-gallary {
    z-index: 3;
    color: var(--color-light-lavender);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.game-gallary h3 {
    font-size: 25px;
}

.scenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

.grid-seven {
    grid-column-start: 2;
}

.scene {
    background: var(--color-dark-lavender);
    border: 3px solid var(--color-purple);
    padding: 1rem;
    font-weight: 600;
    width: 300px;
    height: 173px;
    cursor: pointer;
    display: flex;
    align-items: end;
    transition: border 0.2s ease;
}

.scene:hover {
    border: 3px solid var(--color-blue);
}

.one {
    background: url(images/gallary-photo-one.webp) center no-repeat;
    background-size: 100%;
}

.two {
    background: url(images/gallary-photo-two.webp) center no-repeat;
    background-size: 100%;
}

.three {
    background: url(images/gallary-photo-three.webp) center no-repeat;
    background-size: 100%;
}

.four {
    background: url(images/gallary-photo-four.webp) center no-repeat;
    background-size: 100%;
}

.five {
    background: url(images/gallary-photo-five.webp) center no-repeat;
    background-size: 100%;
}

.six {
    background: url(images/gallary-photo-six.webp) center no-repeat;
    background-size: 100%;
}

.seven {
    background: url(images/gallary-photo-seven.webp) center no-repeat;
    background-size: 100%;
}

.socials-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 4rem 0 3rem 0;
    z-index: 4;
}

.socials-section h4 {
    color: var(--color-light-lavender);
    font-size: 40px;
    margin-bottom: 1rem;
}

.socials-section a {
    text-decoration: none;
    font-family: 'Press Start 2P', Arial, Helvetica, sans-serif;
    background: var(--color-light-lavender);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 4px 4px 0 var(--color-dark-lavender);
    padding: 2vw 5vw;
    width: 100%;
    max-width: 500px;
    text-align: center;
    color: var(--color-purple);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.socials-section a:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-dark-lavender);
}

.lightbox {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
}

.lightbox.active {
    display: flex;
}

.lightbox span {
    position: absolute;
    top: 2%;
    right: 8%;
    justify-content: flex-start;
    font-size: 3rem;
    color: var(--color-light-lavender);
    font-weight: 700;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid var(--color-purple);
    cursor: zoom-out;
}

@media (max-width: 767px) {
    body {
        min-width: 0;
    }
    .main-section {
        display: flex;
        flex-direction: column;
        position: static;
        min-height: auto;
    }
    .main-section::before {
        background: none;
        display: none;
    }
    .main-image {
        display: block;
        margin-bottom: -1rem;
    }
    .main-image img {
        width: 100%;
        object-fit: cover;
        min-height: 50vh;
        background-size: cover;
    }
    .main-text {
        background: var(--color-purple);
        font-size: 10px;
        justify-content: center;
        padding: 3rem;
        min-height: 50vh;
        position: static;
        margin: 0;
        gap: 28px;
    }
    .main-text p {
        font-size: 18px;
    }
    .main-text h1 {
        width: 80%;
        font-size: 35px;
        text-align: right;
    }
    .main-button {
        width: 100%;
    }
    .main-button a {
        align-self: center;
        font-size: 15px;
        margin-right: 1rem;
        width: 150px;
    }
    .game-des {
        background: url(images/main-bg-mobile.webp) center no-repeat;
        background-attachment: fixed;
        padding: 2vw 6vw;
    }
    .des-text {
        font-size: 18px;
        padding: 1.5rem;
        width: 100%;
        margin: 4rem 0;
    }
    .scenes {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .scene {
        width: 300px;
        height: 176px;
    }
    .socials-section {
        margin: 4rem 0;
    }
    .socials-section a {
        width: 90%;
        font-size: 10px;
        padding: 1.2rem;
    }
    a:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--color-dark-lavender);
    }
    .lightbox span {
        top: 30%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body {
        min-width: 0;
    }
    .main-section {
        display: flex;
        flex-direction: column;
        position: static;
        min-height: 0;
    }
    .main-section::before {
        background: none;
        display: none;
    }
    .main-image {
        display: block;
        margin-bottom: -1rem;
    }
    .main-image img {
        width: 100%;
        min-height: 55vh;
        object-fit: cover;
        object-position: center;
        background-size: cover;
    }
    .main-text {
        background: var(--color-purple);
        font-size: 10px;
        justify-content: center;
        align-items: center;
        min-height: 30vh;
        position: static;
        padding: 6vw 2vw;
        gap: 25px;
    }
    .main-button {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    .main-button a {
        width: 20%;
        padding: 1.1rem 0;
        align-self: center;
    }
    .main-button a:first-of-type {
        margin-right: 0;
    }
    .main-button a:last-of-type {
        margin-right: 0;
    }
    .game-des {
        background: url(images/main-bg-tablet.webp) center 100% auto no-repeat;
        background-attachment: fixed;
        padding: 2vw 4vw;
    }
    .des-text {
        width: 85%;
        margin: 3rem 0;
    }
    .scenes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    .grid-seven {
        grid-column: 1 / -1;
        margin-inline: auto;
    }
    .socials-section {
        margin: 3rem 0;
    }
    .lightbox span {
        top: 25%;
    }
}