@font-face {
    font-family: 'Ancient Tulip';
    src: url('Fonts/Ancient-Tulip.ttf') format('truetype');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
    background-color: #0d0b09;
    /* Dark obsidian base */
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.05) 1px, transparent 1px),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="400" height="400" filter="url(%23noise)" opacity="0.1"/></svg>');
    background-size: 100px 100px, 100px 100px, 400px 400px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E3DAC9;
    position: relative;
}

/* Marble texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(200, 190, 180, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(220, 210, 200, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Back Link Button */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #C5A059;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(100, 90, 80, 0.5);
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
}

/* Header Styles */
.main-header {
    margin-bottom: 60px;
}

.title {
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #C5A059;
    text-shadow:
        0 0 25px rgba(197, 160, 89, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    font-family: 'Ancient Tulip', serif;
    text-transform: uppercase;
}

/* Game Menu Styles - Premium Dark Obsidian */
.game-menu {
    background: linear-gradient(135deg,
            #1a1612 0%,
            #110f0d 100%);
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="texture"><feTurbulence type="fractalNoise" baseFrequency="0.6" numOctaves="3" /></filter><rect width="200" height="200" filter="url(%23texture)" opacity="0.1"/></svg>'),
        linear-gradient(135deg, #1a1612 0%, #110f0d 100%);
    border: 1px solid #C5A059;
    border-radius: 2px;
    padding: 40px 60px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(197, 160, 89, 0.05);
    position: relative;
    overflow: hidden;
}

.game-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.game-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-list li {
    position: relative;
}

.game-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #E3DAC9;
    text-decoration: none;
    padding: 14px 80px 14px 24px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    background: transparent;
    text-transform: uppercase;
}

.game-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #8b7355 0%, transparent 100%);
    transition: width 0.3s ease;
}

.game-link:hover {
    color: #FDF5E6;
    /* Creamy white instead of black */
    background: rgba(197, 160, 89, 0.1);
    border-bottom-color: #C5A059;
    padding-left: 36px;
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
}

.game-link:hover::before {
    width: 20px;
}

.game-link:active {
    transform: translateY(1px);
}

/* Coming Soon Games */
.game-link.coming-soon {
    color: rgba(42, 37, 32, 0.35);
    cursor: not-allowed;
    opacity: 0.5;
}

.game-link.coming-soon:hover {
    background: transparent;
    border-bottom-color: rgba(100, 90, 80, 0.25);
    padding-left: 24px;
}

.game-link.coming-soon:hover::before {
    width: 0;
}

.game-link.coming-soon:active {
    transform: none;
}

.logo-container {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}



/* Copyright Footer */
.copyright {
    margin-top: 20px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.copyright p {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: rgba(227, 218, 201, 0.6);
    font-weight: 400;
}

/* Extra Buttons Styles */
.extra-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

.action-btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #C5A059;
    background: #1a1612;
    border: 1px solid #C5A059;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.action-btn:hover {
    background: rgba(139, 115, 85, 0.1);
    border-color: #8b7355;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
    transform: translateY(0);
}

.back-btn {
    font-size: 0.9rem;
    padding: 10px 25px;
    opacity: 1;
}

.back-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Product Section Styles */
.product-section {
    margin-bottom: 60px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #E3DAC9;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.1em;
}

.product-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        letter-spacing: 0.12em;
    }

    .container {
        padding: 40px 20px;
    }

    .game-menu {
        padding: 30px 30px;
    }

    .game-link {
        font-size: 1.1rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .game-menu {
        padding: 25px 20px;
    }

    .game-link {
        font-size: 1rem;
        padding: 10px 16px;
    }
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;700&display=swap');

/* 3D Menu Flipper Styles */
.menu-container-3d {
    perspective: 1000px;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.menu-flipper {
    position: relative;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.menu-flipper.flipped {
    transform: rotateY(180deg);
}

.menu-face {
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.menu-face.menu-front {
    position: relative;
    z-index: 2;
    transform: rotateY(0deg);
}

.menu-face.menu-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    z-index: 1;
}

.menu-toggle-wrapper {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(100, 90, 80, 0.2);
    padding-top: 20px;
}

.menu-toggle-btn {
    font-size: 0.85rem;
    padding: 10px 24px;
    min-width: 180px;
    background: #110f0d;
    color: #C5A059;
    border: 1px solid rgba(197, 160, 89, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-toggle-btn:hover {
    background: #1a1612;
    border-color: #C5A059;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.coming-soon-3d {
    font-size: 0.6rem;
    color: rgba(197, 160, 89, 0.7);
    margin-left: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    vertical-align: middle;
    position: absolute;
    right: 0;
}

.menu-demo-welcome {
    margin-top: 15px;
    text-align: center;
}

.menu-demo-welcome p {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(227, 218, 201, 0.6);
    margin-bottom: 5px;
}

.menu-demo-welcome p:last-child {
    color: #C5A059;
}