/* ============================================
   CUSTOMIZATION VARIABLES - EDIT THESE!
   ============================================ */
:root {
    /* Background Colors - Change these to customize the background */
    /* Option 1: Gradient (current) */
    /* --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    
    /* Option 2: Solid color - uncomment and use this instead */
    /* --bg-color: #667eea; */
    
    /* Option 3: Image background - uncomment and use this instead */
    --bg-image: url("079AEF80-55F9-4D6E-8DB8-3B70D3CAFF47.jpg"); 
    --bg-size: cover; 
    --bg-position: center; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Change background here - choose one option: */
    /* background: var(--bg-gradient); */
    /* For solid color: background: var(--bg-color); */
    /* For image: */
    background-image: var(--bg-image);
    background-size: var(--bg-size);
    background-position: var(--bg-position);
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow: hidden;
}

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    /* Change background here - choose one option: */
    /* background: var(--bg-gradient); */
    /* For solid color: background: var(--bg-color); */
    /* For image: */
    background-image: var(--bg-image);
    background-size: var(--bg-size);
    background-position: var(--bg-position);
    background-repeat: no-repeat;
}

/* Icon Styles */
.icon {
    position: absolute;
    width: 80px;
    cursor: move;
    user-select: none;
    transition: transform 0.2s;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon:hover {
    transform: scale(1.1);
}

.icon:active {
    transform: scale(0.95);
}

.icon-image {
    font-size: 48px;
    text-align: center;
    background: transparent;
    border-radius: 15px;
    padding: 15px;
    box-shadow: none;
    margin-bottom: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* If using an image instead of emoji, uncomment these: */
    /* font-size: 0; */
    /* background: transparent; */
    /* padding: 0; */
    /* width: 48px; */
    /* height: 48px; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}

/* If using images for icons, add this style: */
/* .icon-image img { */
/*     width: 100%; */
/*     height: 100%; */
/*     object-fit: contain; */
/* } */

.icon:hover .icon-image {
    background: transparent;
    box-shadow: none;
}

.icon-label {
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    word-wrap: break-word;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Photo Gallery Styles */
.photo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f5f5f5;
    min-height: 500px;
}

#gallery-photo {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.nav-arrow {
    position: absolute;
    background: rgba(255, 140, 66, 0.9);
    color: white;
    border: none;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: rgba(255, 107, 53, 1);
    transform: scale(1.1);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.photo-counter {
    text-align: center;
    padding: 15px;
    background: white;
    font-size: 18px;
    font-weight: 600;
    color: #ff8c42;
}

/* Music Player Styles */
.music-player {
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
    min-width: 400px;
}

.album-art {
    font-size: 120px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.track-info {
    margin-bottom: 30px;
}

.track-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.track-info p {
    font-size: 16px;
    color: #666;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c42 0%, #ff6b35 100%);
    width: 0%;
    transition: width 0.1s;
    border-radius: 4px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.control-btn {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border: none;
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-pause {
    width: 70px;
    height: 70px;
    font-size: 28px;
}

/* Image Editor Styles */
.editor-container {
    padding: 30px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.editable-image-wrapper {
    position: relative;
    display: inline-block;
}

#editable-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    cursor: text;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px dashed transparent;
    transition: all 0.3s;
}

.text-overlay:focus {
    outline: none;
    border-color: #ff8c42;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

/* Text Viewer Styles */
.text-viewer-container {
    padding: 30px;
    background: #f5f5f5;
    min-height: 500px;
}

.large-text-area {
    width: 100%;
    min-height: 500px;
    padding: 30px;
    font-size: 20px;
    line-height: 1.8;
    border: none;
    border-radius: 10px;
    background: white;
    color: #333;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.large-text-area:focus {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

/* Quiz Styles */
.quiz-container {
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-width: 500px;
}

.quiz-question {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-question h3 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.quiz-option {
    background: white;
    border: 2px solid #ff8c42;
    color: #333;
    font-size: 18px;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-weight: 500;
}

.quiz-option:hover {
    background: #ff8c42;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.quiz-option:active {
    transform: translateX(2px);
}

.quiz-option.selected {
    background: #ff8c42;
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.quiz-result {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding: 20px;
    border-radius: 10px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-result.correct {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.quiz-result.incorrect {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Icons - make them larger and more touch-friendly */
    .icon {
        width: 100px;
    }
    
    .icon-image {
        font-size: 56px;
        padding: 20px;
    }
    
    .icon-label {
        font-size: 14px;
    }
    
    /* Modals - make them full screen on mobile */
    .modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Modal headers */
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    /* Photo gallery */
    .photo-container {
        padding: 15px;
        min-height: 300px;
    }
    
    #gallery-photo {
        max-height: 300px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .left-arrow {
        left: 10px;
    }
    
    .right-arrow {
        right: 10px;
    }
    
    /* Music player */
    .music-player {
        padding: 20px;
        min-width: auto;
    }
    
    .album-art {
        font-size: 80px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .play-pause {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    /* Image editor */
    .editor-container {
        padding: 15px;
        min-height: 300px;
    }
    
    #editable-image {
        max-height: 300px;
    }
    
    .text-overlay {
        font-size: 18px;
        padding: 10px 15px;
        min-width: 150px;
    }
    
    /* Text viewer */
    .text-viewer-container {
        padding: 15px;
        min-height: 400px;
    }
    
    .large-text-area {
        min-height: 400px;
        padding: 20px;
        font-size: 18px;
    }
    
    /* Quiz */
    .quiz-container {
        padding: 20px;
        min-width: auto;
    }
    
    .quiz-question h3 {
        font-size: 20px;
    }
    
    .quiz-option {
        padding: 15px;
        font-size: 16px;
    }
    
    .quiz-result {
        font-size: 18px;
        padding: 15px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .icon {
        width: 90px;
    }
    
    .icon-image {
        font-size: 48px;
        padding: 15px;
    }
    
    .icon-label {
        font-size: 12px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .large-text-area {
        font-size: 16px;
        padding: 15px;
    }
}
