/* Card Table Styles */

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: white;
}

/* Main Menu Styles */
.main-menu {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.menu-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.main-menu h1 {
    font-size: 3.5em;
    margin: 0 0 10px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.subtitle {
    font-size: 1.2em;
    margin: 0 0 40px 0;
    opacity: 0.9;
    color: #e8f5e8;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.game-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: #4CAF50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.game-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #4CAF50;
}

.game-card p {
    margin: 0;
    opacity: 0.8;
    font-size: 1em;
    line-height: 1.4;
}

.test-card {
    border-color: rgba(255, 193, 7, 0.3);
}

.test-card:hover {
    border-color: #FFC107;
}

.test-card h3 {
    color: #FFC107;
}

/* Card Table Page Styles (for test and games) */
#card-table {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #357a2b 0%, #2d5a27 100%);
    overflow: hidden;
}

/* Info panel */
.info-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    z-index: 1000;
    max-width: 300px;
    transition: opacity 0.2s ease;
}

.info-panel.dragging {
    opacity: 0.8;
    cursor: grabbing;
}

.info-panel-header {
    background: rgba(76, 175, 80, 0.2);
    margin: 0;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    cursor: grab;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    user-select: none;
}

.info-panel-header:active {
    cursor: grabbing;
}

.info-panel-content {
    padding: 15px;
    user-select: text;
}

.info-panel h3 {
    margin: 0 0 10px 0;
    color: #4CAF50;
}

.info-panel p {
    margin: 5px 0;
    line-height: 1.4;
}

.info-panel a {
    color: #4CAF50;
    text-decoration: none;
}

.info-panel a:hover {
    text-decoration: underline;
}

/* Loading indicator */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-menu h1 {
        font-size: 2.5em;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        padding: 25px 15px;
    }
}
