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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #2c3e50;
    color: white;
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.game-list {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.game-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.game-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.game-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-image-link:hover img {
    transform: scale(1.02);
}

.game-card .game-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-content {
    padding: 20px;
}

.game-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.game-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-card h3 {
    font-size: 20px;
    margin: 0;
    color: #2c3e50;
}

.game-detail-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 40px;
    vertical-align: middle;
}

.game-card p {
    color: #666;
    margin-bottom: 20px;
}

.game-card a {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.game-card a:hover {
    background-color: #2980b9;
}

.game-detail {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-detail-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-detail-header h1 {
    font-size: 36px;
    color: #2c3e50;
    /* margin-bottom: 20px; */
}

.game-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.game-carousel {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
}

.game-detail-info {
    flex: 1;
    min-width: 300px;
}

.game-detail-info h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.game-detail-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #2980b9;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #34495e;
}

/* News Page Styles */
.news-list {
    padding: 60px 20px;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.news-date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.news-summary p {
    color: #34495e;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-full {
    display: none;
    margin-bottom: 20px;
}

.news-full p {
    color: #34495e;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-full ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.news-full li {
    color: #34495e;
    margin-bottom: 5px;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.read-more:hover {
    color: #2980b9;
}

.read-more.expanded {
    color: #e74c3c;
}

.read-more.expanded::after {
    content: ' (Less)';
    font-size: 0.8em;
}

.about-us, .contact-us, .privacy-policy, .terms-of-service {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-us h1, .contact-us h1, .privacy-policy h1, .terms-of-service h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.about-us h2, .contact-us h2, .privacy-policy h2, .terms-of-service h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 30px 0 20px;
}

.about-us p, .contact-us p, .privacy-policy p, .terms-of-service p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-detail-content {
        flex-direction: column;
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Demo modal styles */
.demo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.demo-modal-content {
    background-color: #fefefe;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #888;
    width: auto;
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.demo-modal-close:hover,
.demo-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.demo-iframe-container {
    margin: 0 auto;
    overflow: hidden;
}

.demo-iframe-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* Style for demo button */
.demo-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 16px 32px;
    border-radius: 5px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.demo-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}