@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Nunito:wght@700;900&display=swap');

body {
    background-image: url('Media/dinerbackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-container {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    border: 4px solid #3d5a80;
    box-shadow: 0 0 0 10px #293241;
}

header {
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.classic-arcade {
    font-size: 1rem;
    font-weight: 900;
    color: #e5911d;
    margin-bottom: 10px;
}

h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 4.5rem;
    color: #2e71b1;
    margin: 0 0 10px;
    text-shadow: 4px 4px 0px #293241;
    line-height: 1;
}

h2 {
    font-size: 1.5rem;
    color: #293241;
    font-weight: 900;
    margin: 0;
}

.difficulty-selector {
    background: repeating-linear-gradient(
        -45deg,
        #d6eaff,
        #d6eaff 15px,
        #cde4fe 15px,
        #cde4fe 30px
    );
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 3px solid #3d5a80;
    position: relative;
}

.difficulty-header {
    background-color: #293241;
    border-radius: 20px;
    padding: 5px 15px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid #3d5a80;
    box-shadow: 0 0 0 5px #293241;
}

.difficulty-header h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 900;
}

.difficulty-buttons {
    padding-top: 20px;
}

.difficulty-buttons .btn {
    border: 3px solid #293241;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 0 10px;
    box-shadow: 0 4px 0 #293241;
    position: relative;
    top: 0;
}

.btn:active {
    top: 4px;
    box-shadow: 0 0px 0 #293241;
}

.btn.easy { background-color: #98fb98; color: #293241; border-color: #2e8b57;}
.btn.medium { background-color: #f0e68c; color: #293241; border-color: #b8860b; }
.btn.challenging { background-color: #f08080; color: #293241; border-color: #8b0000; }

/* Active state for difficulty buttons */
.btn.active {
    transform: scale(1.05);
    box-shadow: 0 6px 0 #293241, 0 0 0 3px #e5911d;
    border-width: 4px;
}

.btn.active.easy { 
    background-color: #7cfc7c; 
    border-color: #1a5f1a;
    box-shadow: 0 6px 0 #1a5f1a, 0 0 0 3px #e5911d;
}

.btn.active.medium { 
    background-color: #e6d47c; 
    border-color: #8b6914;
    box-shadow: 0 6px 0 #8b6914, 0 0 0 3px #e5911d;
}

.btn.active.challenging { 
    background-color: #e07070; 
    border-color: #5a0000;
    box-shadow: 0 6px 0 #5a0000, 0 0 0 3px #e5911d;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    border: 4px solid #293241;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(41, 49, 65, 0.4);
}

.game-card h3 {
    font-size: 1.5rem;
    color: #2e71b1;
    font-weight: 900;
    margin: 0 0 10px 0;
}

.game-card p {
    font-size: 0.9rem;
    color: #3d5a80;
    font-weight: 700;
    margin: 0;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        padding: 15px;
        border-width: 3px;
        box-shadow: 0 0 0 5px #293241;
    }
    
    h1 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0px #293241;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .classic-arcade {
        font-size: 0.8rem;
    }
    
    .difficulty-selector {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .difficulty-header {
        top: -15px;
        padding: 3px 10px;
    }
    
    .difficulty-header h3 {
        font-size: 0.8rem;
    }
    
    .difficulty-buttons {
        padding-top: 15px;
    }
    
    .difficulty-buttons .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        margin: 0 5px;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .game-card {
        padding: 15px;
        min-height: 100px;
    }
    
    .game-card h3 {
        font-size: 1.1rem;
        margin: 0 0 8px 0;
    }
    
    .game-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .main-container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .difficulty-buttons .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        margin: 0 3px;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .game-card {
        padding: 12px;
        min-height: 80px;
    }
    
    .game-card h3 {
        font-size: 1rem;
    }
    
    .game-card p {
        font-size: 0.7rem;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-container {
        max-width: 90%;
        padding: 25px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
}




