/* Repair the Scale Musical Game Integration Styles */

/* Parent Controls Overlay */
.parent-controls-overlay {
    position: relative;
    width: 100%;
}

.parent-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    color: white;
    gap: 15px;
}

.controls-left,
.controls-right {
    display: flex;
    gap: 10px;
}

.controls-center {
    flex: 1;
    text-align: center;
}

.skill-indicator {
    font-size: 14px;
    opacity: 0.9;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

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

.info-btn {
    background: rgba(255, 255, 255, 0.3);
}

.educational-info {
    position: absolute;
    top: 50px;
    right: 10px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.educational-info h4 {
    color: #333;
    margin-bottom: 15px;
}

.educational-info ul {
    list-style: none;
    padding: 0;
}

.educational-info li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.educational-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.close-info {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.close-info:hover {
    background: #5a67d8;
}

.iframe-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: white;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
    z-index: 1;
}

/* Prevent iframe flickering */
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Fullscreen mode adjustments */
.repair-scale-game:fullscreen,
.repair-scale-game:-webkit-full-screen,
.repair-scale-game:-moz-full-screen,
.repair-scale-game:-ms-fullscreen {
    padding: 0;
    margin: 0;
    background: transparent;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

.repair-scale-game:fullscreen .game-container,
.repair-scale-game:-webkit-full-screen .game-container,
.repair-scale-game:-moz-full-screen .game-container,
.repair-scale-game:-ms-fullscreen .game-container {
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.repair-scale-game:fullscreen .parent-controls-overlay,
.repair-scale-game:-webkit-full-screen .parent-controls-overlay,
.repair-scale-game:-moz-full-screen .parent-controls-overlay,
.repair-scale-game:-ms-fullscreen .parent-controls-overlay {
    width: 100%;
}

.repair-scale-game:fullscreen .iframe-container,
.repair-scale-game:-webkit-full-screen .iframe-container,
.repair-scale-game:-moz-full-screen .iframe-container,
.repair-scale-game:-ms-fullscreen .iframe-container {
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
    border-radius: 0;
    position: relative;
}

.repair-scale-game:fullscreen iframe,
.repair-scale-game:-webkit-full-screen iframe,
.repair-scale-game:-moz-full-screen iframe,
.repair-scale-game:-ms-fullscreen iframe {
    width: 100vw !important;
    height: 100% !important;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Fullscreen active class */
.repair-scale-game.fullscreen-active .game-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
}
.repair-scale-game {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.game-container {
    background: white;
    border-radius: 10px;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* Remove duplicate iframe styles since they're in iframe-container now */

/* Loading state */
.game-container.loading::before {
    content: "Loading game...";
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .repair-scale-game {
        padding: 15px;
        margin: 20px 0;
    }
    
    .game-container {
        min-height: 500px;
    }
    
    .game-container iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .game-container {
        min-height: 450px;
    }
    
    .game-container iframe {
        height: 450px;
    }
}