/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, sans-serif, 
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    background-color: #e6f3ff;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 100px;
    text-align: center;
}

nav a:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    nav {
        padding: 10px 5px;
        gap: 5px;
    }

    nav a {
        padding: 6px 10px;
        font-size: 14px;
        min-width: auto;
        flex: 1 1 calc(50% - 10px); /* Two items per row on very small screens */
    }
}

@media screen and (max-width: 400px) {
    nav a {
        flex: 1 1 100%; /* Stack vertically on extremely small screens */
    }
}

/* Section styles */
.section {
    padding: 20px;
    margin: 20px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* Headings */
h1 {
    text-align: center;
    color: #0056d6;
    font-size: 36px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, 
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, 
                 sans-serif;
}

h2 {
    color: #1e7bff;
    font-size: 28px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, 
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, 
                 sans-serif;
}

h3 {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, 
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, 
                 sans-serif;
}

/* Images */
.image-container {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    padding: 20px 0;
}

.math-image {
    width: 300px;
    height: 300px;
    display: inline-block;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    vertical-align: middle;
}

/* Exercise forms */
.exercise-form {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

.question {
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    border: 2px solid #4b9eff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 
                 "Helvetica Neue", Arial, sans-serif;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 16px;
    border: 2px solid #1e7bff;
    border-radius: 5px;
    margin: 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 
                 "Helvetica Neue", Arial, sans-serif;
}

button {
    background-color: #1e7bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 
                 "Helvetica Neue", Arial, sans-serif;
}

button:hover {
    background-color: #0056d6;
}

.result {
    font-weight: bold;
    margin: 5px 0;
}

.correct {
    color: #008000;
}

.incorrect {
    color: #ff0000;
}

/* Paragraphs */
p {
    font-size: 18px;
    line-height: 1.6;
    color: #2c4c7c;
}

/* Footer */
footer {
    background-color: #4b9eff;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
}

footer p {
    color: white;
    margin: 0;
    font-size: 16px;
}

/* Game styles */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
    background-color: #4b9eff;
    padding: 10px;
    border-radius: 10px;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell:hover {
    background-color: #e6f3ff;
}

#game-status {
    font-size: 24px;
    margin: 20px 0;
    color: #1e7bff;
    font-weight: bold;
}

#reset-button {
    background-color: #1e7bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
}

#reset-button:hover {
    background-color: #0056d6;
}

/* Add these styles to your existing CSS */
.player-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 10px;
}

.input-group {
    margin: 10px 0;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #1e7bff;
    font-weight: bold;
}

.input-group input {
    width: 200px;
    padding: 8px;
    border: 2px solid #4b9eff;
    border-radius: 5px;
    font-size: 16px;
}

.input-group input::placeholder {
    color: #999;
}

.play-again-btn {
    display: none;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.play-again-btn:hover {
    background-color: #45a049;
}

.profile-container {
    text-align: center;
    margin: 20px auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #FFD700;
    box-shadow: 
        0 0 0 4px #FF69B4,
        0 0 0 12px #87CEEB,
        0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.go-up-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.go-up-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@media screen and (max-width: 600px) {
    .go-up-button {
        bottom: 10px;
        right: 10px;
    }
}

html {
    scroll-behavior: smooth;
} 