* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color:#f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #2c3e50, #4a6a88);
    color: white;
    width: 100%;
    padding: 20px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

header .logo img {
    width: 80px; /* Reduced logo size */
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

.main-nav {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-weight: 700;
    transition: color 0.3s, transform 0.3s;
}

.main-nav a:hover {
    color: #f1c40f;
    transform: translateY(-2px);
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-display:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-display img {
    width: 32px;
    height: 22px;
    border-radius: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: white;
    list-style: none;
    color: #2c3e50;
    padding: 10px 0;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: none;
    min-width: 120px;
    z-index: 10;
}

.dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-menu li img {
    width: 28px;
    height: 18px;
}

.dropdown-menu li:hover {
    background: #f1f1f1;
}

.language-dropdown:hover .dropdown-menu {
    display: block;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    padding: 60px 20px;
}

section {
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section h1, section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

section p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.7em;
    line-height: 1.8;
    text-align: center;
    max-width: 1000px;
    color: #2c3e50;
    border-radius: 30px;

}

.video-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.video-item iframe {
    border-radius: 10px;
}

.video-item p {
    text-align: center;
    margin-top: 15px;
    font-size: 1.5em;
    font-weight: 500;
    color: #2c3e50;
}

#slider {
    perspective: 1200px; /* Reduced perspective for less extreme 3D effect */
    width: 100%;
    max-width: 900px; /* Responsive width */
    height: 250px; /* Adjusted height */
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateSlider 18s linear infinite; /* Slower rotation for clarity */
}

@keyframes rotateSlider {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.slide {
    position: absolute;
    width: 140px; /* Smaller slide size for better fit */
    height: 140px; /* Adjusted height for content */
    top: 50%;
    left: 50%;
    margin: -70px 0 0 -50px; /* Centered with adjusted margins */
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.slide:hover {
    transform: scale(1.1);
}

.slide:nth-child(1) { transform: rotateY(calc(0 * 360deg / 6)) translateZ(180px); } /* Adjusted for 6 slides */
.slide:nth-child(2) { transform: rotateY(calc(1 * 360deg / 6)) translateZ(180px); }
.slide:nth-child(3) { transform: rotateY(calc(2 * 360deg / 6)) translateZ(180px); }
.slide:nth-child(4) { transform: rotateY(calc(3 * 360deg / 6)) translateZ(180px); }
.slide:nth-child(5) { transform: rotateY(calc(4 * 360deg / 6)) translateZ(180px); }
.slide:nth-child(6) { transform: rotateY(calc(5 * 360deg / 6)) translateZ(180px); } /* Added for pawn */

.slide img {
    width: 80px; /* Smaller images */
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.slide p {
    font-size: 1em;
    text-align: center;
    color: #2c3e50;
    font-weight: 500;
}

.games-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.game-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.game-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.game-card p {
    font-size: 1.4em;
    line-height: 1.6;
    color: #34495e;
}

#menu-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin-left: 20px;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 900px) {
    section h1, section h2 {
        font-size: 2.8em;
    }
    section p {
        font-size: 1.4em;
    }
    .video-item iframe {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 16/9;
    }
    #slider {
        max-width: 400px; /* Adjusted for smaller screens */
        height: 200px;
    }
    .slide {
        width: 80px;
        height: 110px;
        margin: -55px 0 0 -40px;
    }
    .slide img {
        width: 60px;
        height: 60px;
    }
    .slide p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 800px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background: linear-gradient(90deg, #2c3e50, #4a6a88);
        flex-direction: column;
        padding: 60px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .main-nav a {
        font-size: 1.5em;
    }

    #menu-checkbox:checked + .menu-toggle + .main-nav {
        left: 0;
    }

    .menu-toggle {
        display: flex;
        order: 2;
        margin-left: 10px;
    }

    .language-dropdown {
        order: 1;
        margin-left: auto;
    }

    header {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 650px) {
    section h1, section h2 {
        font-size: 2.2em;
    }

    section p {
        font-size: 1.2em;
    }

    .video-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .video-item {
        width: 90%;
        max-width: 300px;
    }

    #slider {
        max-width: 300px; /* Further reduced for small screens */
        height: 180px;
    }

    .slider-wrapper {
        width: 100%;
        padding: 10px 0;
    }

    .slide {
        width: 70px;
        height: 100px;
        margin: -50px 0 0 -35px;
    }

    .slide img {
        width: 50px;
        height: 50px;
    }

    .slide p {
        font-size: 0.8em;
    }
}