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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.fullscreen-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Top Controls */
.top-controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Size Buttons */
.size-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.size-btn {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    min-width: 45px;
}

.size-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.size-btn.active {
    background: linear-gradient(45deg, #00b894, #00a085);
    transform: scale(1.05);
}

/* Color Buttons */
.color-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.color-btn.active {
    border-color: #333;
    border-width: 4px;
    transform: scale(1.2);
}

/* Tool Buttons */
.tool-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tool-btn {
    background: linear-gradient(45deg, #fd79a8, #e84393);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    min-width: 45px;
}

.tool-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Main Content Layout */
.main-content {
    flex: 1;
    display: flex;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.geoboard-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-width: 0;
}

.examples-panel {
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Canvas Styles */
#geoboard {
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    cursor: crosshair;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 90vw;
    max-height: 80vh;
}

#geoboard:hover {
    border-color: rgba(116, 185, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

/* Examples Panel Styles */
.examples-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 0;
}

.examples-header h3 {
    margin: 0;
    font-size: 1.3em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: left;
}

.examples-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audio-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.audio-toggle.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.difficulty-levels {
    padding: 15px;
}

.level-section {
    margin-bottom: 25px;
}

.level-section h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: #444;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-item {
    background: white;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    overflow: hidden;
}

.example-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #74b9ff;
}

.example-item.selected {
    border-color: #00b894;
    background: #f0f9ff;
    transform: scale(1.02);
}

.hint-container {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
}

.hint-icon {
    font-size: 2.5em;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.hint-content {
    flex: 1;
    min-width: 0;
}

.hint-content h5 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}

.hint-text {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.3;
}

.speak-btn {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    float: right;
}

.speak-btn:hover {
    background: linear-gradient(45deg, #0984e3, #74b9ff);
    transform: scale(1.1);
}

.speak-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .examples-panel {
        width: 100%;
        max-height: 250px;
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .examples-header {
        padding: 15px;
    }
    
    .difficulty-levels {
        padding: 10px;
        display: flex;
        gap: 15px;
        overflow-x: auto;
    }
    
    .level-section {
        flex-shrink: 0;
        min-width: 320px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .top-controls {
        padding: 12px 15px;
        gap: 20px;
    }
    
    .geoboard-section {
        padding: 15px;
    }
    
    .color-btn {
        width: 35px;
        height: 35px;
    }
    
    .size-btn, .tool-btn {
        padding: 8px 12px;
        font-size: 0.9em;
        min-width: 40px;
    }
    
    .examples-panel {
        max-height: 200px;
    }
    
    .level-section {
        min-width: 280px;
    }
    
    .examples-list {
        gap: 8px;
    }
    
    .hint-container {
        padding: 12px;
        gap: 8px;
    }
    
    .hint-icon {
        font-size: 2em;
        width: 50px;
    }
    
    .hint-content h5 {
        font-size: 1em;
    }
    
    .hint-text {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .top-controls {
        padding: 10px;
        gap: 15px;
        flex-direction: column;
    }
    
    .geoboard-section {
        padding: 10px;
    }
    
    .color-btn {
        width: 32px;
        height: 32px;
    }
    
    .size-buttons, .color-buttons, .tool-buttons {
        gap: 6px;
    }
    
    .size-btn, .tool-btn {
        padding: 8px 10px;
        font-size: 0.85em;
        min-width: 35px;
    }
    
    .examples-panel {
        max-height: 180px;
    }
    
    .level-section {
        min-width: 250px;
    }
    
    .hint-container {
        padding: 10px;
        gap: 8px;
    }
    
    .hint-icon {
        font-size: 1.8em;
        width: 40px;
    }
    
    .hint-content h5 {
        font-size: 0.9em;
    }
    
    .hint-text {
        font-size: 0.75em;
    }
    
    .speak-btn {
        padding: 3px 6px;
        font-size: 0.7em;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .top-controls {
        padding: 8px 15px;
        gap: 15px;
    }
    
    .color-btn {
        width: 30px;
        height: 30px;
    }
    
    .size-btn, .tool-btn {
        padding: 6px 10px;
        font-size: 0.8em;
        min-width: 32px;
    }
    
    .examples-panel {
        max-height: 160px;
    }
    
    .level-section {
        min-width: 220px;
    }
    
    .hint-container {
        padding: 8px;
        gap: 6px;
    }
    
    .hint-icon {
        font-size: 1.5em;
        width: 35px;
    }
    
    .hint-content h5 {
        font-size: 0.85em;
        margin-bottom: 3px;
    }
    
    .hint-text {
        font-size: 0.7em;
        margin-bottom: 5px;
    }
    
    .speak-btn {
        padding: 2px 5px;
        font-size: 0.65em;
    }
} 