﻿body {
    font-family: "Russo One", sans-serif;
    background-image: url("../img/mainBgr.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.25);
        z-index: -1;
    }


h1 {
    color: white;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin: 40px 0;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0px 2px 2px rgba(0,0,0,0.4);
}


.layout {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 20px 0px 40px;
}

/* центр — игры */

.games {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* карточки игр */

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(0,0,0,0.2), rgba(0,0,0,0.65) );
    z-index: 1;
}
.game-card {
    width: 75%;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}
    .game-card:hover {
        transform: scale(1.01);
        transition: 0.5s;
    }

.game-title,
.game-descr,
.play-btn {
    z-index: 2;
}
.game-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0px 2px 2px rgba(0,0,0,0.4);
}

.game-descr {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    text-align: center;
    color: white;
    font-size: 22px;
    line-height: 1.5;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.play-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 40px;
    font-family: inherit;
    font-size: 24px;
    border: none;
    border-radius: 10px;
    background: #ff7a00;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}
    .play-btn:hover {
        background: #ff8f1f;
        transform: translateX(-50%) scale(1.05);
    }
    .play-btn:active {
        transform: translateX(-50%) scale(0.97);
    }
/* колонка новостей */

.news {
    border: 27px solid transparent;
    border-image: url("/img/pnl.png") 20 fill stretch;
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* карточка новости */

.news-card {
    background: #2b2b2b6f;
    border-radius: 10px;
    padding: 15px;
    color: white;
}
