* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    min-height: 100vh;
}

body {
    background-color: #6E6E6E;
    color: #e6e6e6;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

header {
    background-color: #232323;
    padding: 1rem;
    /*position: sticky;*/
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

main.container{
    padding-bottom: 192px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    
}
.navbar h1 {
    font-size: 2em; 
    line-height: 110%;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ef26;
    text-decoration: none;
    
}

.teleg-top, .teleg-bot{
    color: silver;
    text-decoration: unset;
    line-height: 110%;
}



.logo-1 {
    margin: 0;
    font-family: monospace;
    font-size: 38px;
    font-style: italic;
    line-height: 100%;
    display: inline-block;
    position: relative;
    top: 5px;
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f1c40f;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}


.container {
    max-width: 1200px;
    margin: 1rem auto 0 auto;
    padding: 0 1rem;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: black;
}

.breadcrumbs span {
    font-size: 14px;
    color: #f9f9f9;
}

.breadcrumbs a {
    color: #85e2ff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.hero {
    text-align: center;
    padding: 2rem 15px;
    background: linear-gradient(135deg, #434343 0%, #232323 100%);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f1c40f;
}

.hero p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 0.2rem;    
    text-align: justify;
}

.hero a {
    color: #04c7ff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.btn {
    display: inline-block;
    background-color: #5ec61c;
    color: #1a1a2e;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #f39c12;
    transform: translateY(-3px);
}


.games-section {
    margin: 20px 0;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #f1c40f;
    text-align: left;
}


.games-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); */
    gap: 1.5rem;
}

.game-header {
    background-color: #09090996;
    border-radius: 10px;
    text-decoration: none;
    padding: 20px;
    display: block;
    position: relative;
    margin: 20px 0;
}
.game-header h2 {
    margin-bottom: 10px;
}

.game-card {
    background-color: #23232396;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    padding: 0;
    display: block;
    position: relative;
    
}

/*.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}*/

.game-card img {
    /*width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;*/
    width: 200px;
    height: auto;
    /*object-fit: cover;*/
    display: block;
    margin: 20px;
    border-radius: 10px;
    border: 10px solid #1b1e2b;
    position: absolute;
    top: 0;
    left: 0;
}

.game-card a {
    text-decoration: none;
    color: #0085ff;
}

.game-info {
    padding: 13px 10px 15px 250px;
    text-align: left;
    min-height: 140px;
}

.game-info h3 {
    margin-bottom: 0;
    color: #fce070;
}

.game-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #b8b8b8;
}
.game-info p b, 
.game-info li b {
    color: #cccccc;
}

.game-info li {
    font-size: 1rem;
    color: #b8b8b8;
}

.game-info .btn {
    display: block;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.game-link {
    margin-bottom: 0.5rem;;
}
.game-link a{
    color: #04c7ff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;;
}

.game-gallery {
    padding-left: 20px;
}

.game-gallery img {
    display: inline-block;
    position: relative;
    height: 100px;
    width: unset; 
    border-width: 6px;
    margin: 2px;    
}

.game-gallery > img, .game-card > img {
    cursor: pointer;
}

footer {
    background-color: #232323;
    padding: 1.5rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;    
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-column h3 {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #f1c40f;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #2d3748;
    font-size: 0.9rem;
    color: #b8b8b8;
}

.err-div {
    padding: 0 20px;
    text-align: center;
}

.err-div .err-mess {
  margin: 10px auto 100px;
  text-align: left;
  padding: 50px 20px;
  display: inline-block;
  max-width: 800px;
  font-size: 24px;
}


/*  modal */

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .modal.active .modal-content {
            transform: scale(1);
        }

        .close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close:hover {
            color: #ccc;
        }

        .caption {
            color: white;
            text-align: center;
            margin-top: 15px;
            font-size: 20px;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
        }

        .modal.active .caption {
            opacity: 1;
            transform: translateY(0);
        }

/* /modal */


@media (max-width: 768px) {
    .navbar h1 {
        font-size: 1.2rem;
    }
    .logo-1{
        width: 60px;
    }
    
    .game-info li {
        margin-left: 17px;
    }
    
    /*.navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        margin-top: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        padding: 0.5rem 0;
        border-top: 1px solid #2d3748;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }*/
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .game-info{
        padding-left: 15px;
    }
    .game-card > img {
        position: relative;
        float: left;
    }
}

@media (max-width: 480px) {
    .logo-1{
        width: 60px;
    }

    .game-info li {
        margin-left: 17px;
    }
    
    .navbar h1 {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 2rem 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card > img {
        float: unset;
    }
    
}



