:root{
    --bg-color: #B4B3B3;
    --second-bg-color: #BDBDBD;
    --text-color: #fff;
    --second-color: #ccc;
    --third-color: #000000;
    --main-color: #ff0303;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;

    scroll-behavior: smooth;
}
html,
body{
    min-height: 100vh;
}
body{
    background: skyblue;
    background: 
        linear-gradient(rgba(0, 204, 255, 0.6), rgba(42, 208, 250, 0)),
        url("./imgs/background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    user-select: none !important;
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 22px;
    border-bottom: 1px solid transparent;
    transition: all .45s ease;
}
.logo{
    color: var(--text-color);
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: #192953;
    padding: 1rem;
    border-radius: 15px;
    border: 4px solid rgb(29, 41, 82);
    box-shadow: 0 0 12px rgb(0, 0, 0);
}
span{
    color: var(--main-color);
}
.navlist{
    display: flex;
}
.navlist a{
    color: var(--text-color);
    font-size: 17px;
    font-weight: 500;
    margin: 0 25px;
    transition: all .45s ease;
}
.navlist a:hover{
    color: var(--main-color);
}
.navlist a.active{
    color: var(--main-color);
}
#menu-icon{
    font-size: 35px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    margin-left: 25px;
    display: none;
}

section{
    background: transparent;
    margin-top: 70px;
    padding: 20px 15% 20px;
}
.home{
    position: relative;
    height: 65vh;
    width: 100%;
    background-size: cover;
    background-position: left center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.slide{
    margin-bottom: 10px;
}
.one{
    display: inline-block;
    margin-right: 15px;
    height: 32px;
    padding: 0 15px;
    line-height: 32px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
    background: var(--main-color);
    color: var(--text-color);
}
.two{
    display: inline-block;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 500;
}
.home-text h1{
    font-size: var(--big-font);
    font-weight: 700;
    color: var(--third-color);
    list-style: 1.1;
    margin: 0 0 8px;
}
.home-text h3{
    color: var(--text-color);
    margin: 0 0 35px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}
.home-text p{
    color: var(--text-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 40px;
}
.home-text p span{
    font-weight: 600;
}
.home-img img{
    max-width: 600px;
    height: auto;
    width: 100%;
    border-radius: 8px;
}

main{
    margin-top: 80px;
}
.games-goorizi-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 1200px;
    padding: 18px 0 18px 0;
}
.goorizi-thumb-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 200px;
    margin: 0;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.13s;
    cursor: pointer;
    gap: 8px;
}
.goorizi-thumb-link:hover {
    transform: scale(1.05);
    z-index: 2;
}
.goorizi-thumb {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    border: none;
    transition: box-shadow 0.2s ease;
}
.goorizi-thumb-link:hover .goorizi-thumb {
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.322);
}
.goorizi-thumb-title {
    position: static;
    width: 100%;
    background: none;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    padding: 0;
    border-radius: 0;
    transform: none;
    opacity: 1;
    transition: color 0.2s ease;
    pointer-events: auto;
    box-sizing: border-box;
    line-height: 1.3;
    margin-top: 4px;
}

.how-to-play {
    width: 90%;
    max-width: 900px;
    margin: 32px auto 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 22px 18px 18px 18px;
    text-align: left;
    font-size: 1.08rem;
    color: #333;
}
.how-to-play h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.how-to-play ul {
    padding-left: 18px;
    margin-bottom: 10px;
}
.how-to-play li {
    margin-bottom: 7px;
    line-height: 1.5;
}
.how-to-play h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.05rem;
}
.how-to-play p {
    margin: 0 0 14px 0;
    line-height: 1.5;
}
.how-to-play ol li,
.how-to-play ul li {
    margin-bottom: 10px;
}
.how-to-play .faq p {
    margin-bottom: 12px;
}
.how-to-play .faq strong {
    display: block;
    margin-bottom: 4px;
    color: #222;
}
.playful-tip {
    margin-top: 10px;
    font-size: 1rem;
    color: #00897b;
    text-align: center;
    font-weight: 600;
}

.goorizi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 0 24px 0;
    justify-content: flex-start;
    align-items: flex-start;
}
.goorizi-card {
    width: 110px;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.13s;
}
.goorizi-card:hover {
    transform: scale(1.07);
}
.goorizi-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 22px;
    background: #eaeaea;
    display: block;
    margin-bottom: 7px;
    border: 2px solid #eaeaea;
}
.goorizi-title {
    color: #222;
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    text-align: center;
    min-height: 18px;
    letter-spacing: 0.01em;
}

.goorizi-play-btn { display: none !important; }

#footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 15%;
    background: transparent;
    color: var(--third-color);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 999;
}

#footer a {
    color: var(--third-color);
    text-decoration: none;
    margin: 0 6px;
}

#footer a:hover {
    text-decoration: underline;
}

.goorizi-style {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
    align-items: flex-start;
}

.odd-hud {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.odd-stat {
    flex: 1;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.odd-stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.6);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.odd-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin-top: 2px;
}

.game-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.game-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.game-card .game-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    background: #eaeaea;
}
.game-info {
    padding: 18px 12px 18px 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.game-info h3 {
    color: #222;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-align: center;
}
.play-btn {
    display: inline-block;
    background: #ff0303;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 28px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 4px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(255,3,3,0.08);
}
.play-btn:hover {
    background: #d0021b;
}

.button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.btn2{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 35px;
}
.btn2 span i{
    height: 55px;
    width: 55px;
    background: var(--main-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-right: 15px;
    transition: all .45s ease;
}
.btn2 span i:hover{
    transform: scale(0.9);
}

.games{
    background: transparent;
}
.main-text{
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
    margin-top: 2px;
    margin-bottom: 18px;
    font-family: 'Poppins', Arial, sans-serif;
}

.games-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px;
}

.box {
    position: relative;
    width: 250px;
    height: 250px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    text-decoration: none;
}

.box img.game-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
    border-radius: 12px;
}

.box:hover img.game-img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.box:hover .overlay {
    opacity: 1;
    transform: translateY(0); 
}

.overlay h3 {
    color: white;
    font-family: "Permanent Marker", cursive;
    font-size: 20px;
    text-align: center;
}

.main-text h2 {
    font-family: "Permanent Marker", cursive;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
}

.box:hover{
    cursor: pointer;
}
.btn{
    justify-content: center;
    display: inline-block;
    padding: 20px 28px;
    background: var(--main-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all .45s ease;
}
.btn:hover{
    transform: scale(0.9);
}


.about{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
}
.about-img img{
    max-width: 530px;
    height: auto;
    width: 100%;
    border-radius: 8px;
}
.about-text h2{
    font-size: var(--h2-font);
    line-height: 1;
}
.about-text h4{
    font-size: 24px;
    font-weight: 600;
    color: var(--third-color);
    line-height: 1.7;
    margin: 15px 0 30px;
}
.about-text p{
    color: var(--text-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 4rem;
}
.contact{
    background: transparent;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}
.contact-text{
    color: var(--third-color);
    margin: 18px 0;
    font-size: 20px;
    font-weight: 600;
}
.contact-text h2{
    font-size: var(--h2-font);
    line-height: 1;
}
.contact-text p{
    color: var(--text-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 30px;
}
.list{
    margin-bottom: 2.8rem;
}
.list li{
    margin-bottom: 12px;
}
.list li a{
    display: block;
    color: var(--text-color);
    font-size: 14px;
    transition: all .45s ease;
}
.list li a:hover{
    color: var(--text-color);
    transform: translateX(5px);
}
.list li span i{
    background: var(--text-color);
    padding: 5px;
    border-radius: 30px;
    margin-right: 1rem;
}

@media (max-width: 600px) {
    header{
        padding: 12px;
    }
    .logo{
        font-size: 15px;
        padding: 0.5rem;
        border: 2px solid white;
    }
    .main-text {
        margin-top: 20px;
    }
    .main-text h2{
        font-size: 1.2rem;
    }
    .main-text h1{
        font-size: 2rem;
    }
    .games{
        max-width: 90%;
        margin: 20px auto 0 auto;
        padding: 10px 12px;
    }
    .games-goorizi-flex {
        gap: 8px;
        max-width: 100%;
        padding: 2px;
    }
    .how-to-play {
    width: 90%;
    max-width: 900px;
    margin: 20px auto 0 auto;
    padding: 22px 18px 18px 18px;
    font-size: 0.6rem;
    }
    .how-to-play h2 {
        font-size: 1rem;
        margin-bottom: 5px;
        font-weight: 500;
    }
    .how-to-play ul {
        padding-left: 18px;
        margin-bottom: 10px;
    }
    .how-to-play li {
        margin-bottom: 7px;
        line-height: 1.5;
    }
    .how-to-play h3 {
        margin-top: 18px;
        margin-bottom: 8px;
        color: #020202;
        font-size: 0.9rem;
        font-weight: 500;
    }
    .how-to-play p {
        margin: 0 0 14px 0;
        line-height: 1.5;
    }
    .how-to-play ol li,
    .how-to-play ul li {
        margin-bottom: 10px;
    }
    .how-to-play .faq p {
        margin-bottom: 12px;
    }
    .how-to-play .faq strong {
        display: block;
        margin-bottom: 4px;
        color: #222;
    }
    .playful-tip {
        margin-top: 10px;
        font-size: 1rem;
        color: #00897b;
        text-align: center;
        font-weight: 600;
    }
    .goorizi-thumb-link {
        width: 100px;
        border-radius: 12px;
        gap: 6px;
    }
    .goorizi-thumb {
        width: 100px;
        height: 60px;
        border-radius: 8px;
    }
    .goorizi-thumb-title {
        font-size: 0.6rem;
        margin-top: 2px;
    }
    #footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px 6%;
        gap: 6px;
        font-size: 0.6rem;
    }
    #footer > div { width: 100%; }
    #footer a { display: inline-block; margin: 0 6px; }
    .last-text p { font-size: 0.85rem; }
    .goorizi-grid {
        gap: 7px;
    }
    .goorizi-card {
        width: 70px;
    }
    .goorizi-img {
        height: 70px;
        width: 70px;
        border-radius: 12px;
    }
    .goorizi-title {
        font-size: 0.7rem;
    }
}