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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-container {
    text-align: center;
    padding: 2rem;
}

.landing-content {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.glow-button {
    padding: 1rem 3rem;
    font-size: 1.5rem;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.glow-button:hover {
    background: #ffed4a;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.name-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

#player-name {
    padding: 1rem;
    font-size: 1.2rem;
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffd700;
    border-radius: 5px;
    color: white;
    text-align: center;
}

#player-name:focus {
    outline: none;
    border-color: #ffed4a;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

/* Game Selection Screen Styles */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
}

.player-info-container {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-right: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.player-info {
    color: #ffd700;
    font-size: 1.6rem;
    font-weight: bold;
}

.back-button {
    background: transparent;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.back-button:hover {
    color: #ffd700;
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.choose-game-heading {
    margin-top: 6rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.game-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.game-card:not(.empty):hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-title {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-description {
    color: #ccc;
    font-size: 1rem;
}

.admin-link {
    position: fixed;
    bottom: 10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.admin-link:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive styles */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .game-card.empty:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card.empty {
        display: none;
    }
    
    .choose-game-heading {
        font-size: 1.8rem;
    }
}

/* Message Notification Styles */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.message {
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slide-in 0.3s ease-out forwards;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.message.success {
    background-color: #28a745;
}

.message.info {
    background-color: #17a2b8;
}

.message.warning {
    background-color: #ffc107;
    color: #212529;
}

.message.error {
    background-color: #dc3545;
}

.message.fade-out {
    opacity: 0;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.credit-text {
    color: #808080;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    position: absolute;
    top: 0;
    width: 100%;
    font-family: 'Bebas Neue', sans-serif;
}

/* Game Status Display */
.game-status {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px auto 20px;
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    transition: all 0.3s ease;
}

/* When game status shows an error (like insufficient funds) */
.game-status.error {
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    animation: pulse 2s infinite;
}

/* When game status shows a success message */
.game-status.success {
    background-color: rgba(40, 167, 69, 0.8);
    color: white;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* When game status shows a warning */
.game-status.warning {
    background-color: rgba(255, 193, 7, 0.8);
    color: black;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Pulse animation for error states */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
} 