@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

body {
    margin: 0;
    font-family: 'Special Elite', monospace;
    background: #f0f0f0;
    background-image: url('/alyona-villa-gravity-studio-mohanad-albasha-ghana-01.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.house-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.floor {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.room-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.room-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.image-label {
    position: absolute;
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Special Elite', monospace;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    white-space: nowrap;
}

/* make labels draggable */
.image-label.draggable, .image-label {
    pointer-events: auto;
    touch-action: none;
    cursor: move;
    user-select: none;
}

.image-label::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(33, 150, 243, 0.95);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.image-label.left::before {
    left: -6px;
}

.image-label.right::before {
    right: -6px;
}

.image-label.top::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.image-label.bottom::before {
    bottom: -6px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
}

.appliance {
    display: flex;
    flex-direction: column;
    padding: 15px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.appliance:hover {
    background: #e8e8e8;
}

.appliance-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.appliance-icon {
    font-size: 24px;
    margin-right: 15px;
}

.appliance-name {
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    font-size: 1.2em;
}

.appliance-description {
    font-family: 'Special Elite', monospace;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 5px;
    padding-left: 40px;
}

.garden .appliance {
    border-left: 3px solid #4CAF50;
}

.garden .appliance:hover {
    background: #f0f7f0;
}

.status {
    display: none;
}

.control-panel {
    position: fixed;
    right: 20px;
    top: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

h1 {
    font-family: 'Special Elite', monospace;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-family: 'Special Elite', monospace;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.questionnaire {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.survey-section {
    margin: 20px 0;
}

.appliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.survey-appliance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.survey-appliance:hover {
    background: #f0f0f0;
}

.survey-appliance small {
    color: #666;
    font-size: 0.8em;
}

.selected-useful {
    background: #e8f5e9;
    border-color: #4caf50;
}

.selected-useless {
    background: #ffebee;
    border-color: #f44336;
}

.submit-button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.1em;
    margin: 20px 0;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.results {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.results-section {
    margin: 20px 0;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.vote-count {
    margin-left: auto;
    color: #666;
}

.audio-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.1em;
    margin: 20px auto;
    transition: background-color 0.2s;
}

.audio-button:hover {
    background: #1976d2;
}

.audio-button:active {
    background: #0d47a1;
}

.audio-button .icon {
    font-size: 1.2em;
}

.notebook {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    background-image: linear-gradient(#eef 1px, transparent 1px);
    background-size: 100% 26px;
    line-height: 26px;
}

.notebook::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff9999;
}

.exercise-section {
    margin: 30px 0;
    padding-left: 60px;
}

.exercise-title {
    font-size: 1.4em;
    color: #2196f3;
    margin: 20px 0;
    line-height: normal;
}

.vocabulary-term {
    font-weight: bold;
    color: #333;
}

.vocabulary-definition {
    margin-left: 20px;
    color: #666;
}

.questions {
    margin: 20px 0;
}

.question {
    margin: 15px 0;
    color: #333;
}

.options {
    margin-left: 20px;
}

.option {
    margin: 5px 0;
    color: #666;
}

.option::before {
    content: attr(data-letter) ") ";
    font-weight: bold;
    color: #2196f3;
}

.fill-in-blanks {
    margin: 15px 0;
}

.blank-line {
    margin: 15px 0;
    color: #333;
    line-height: 2;
}

.true-false {
    margin: 15px 0;
}

.tf-line {
    margin: 15px 0;
    color: #333;
    line-height: 2;
}

.tf-blank {
    display: inline-block;
    width: 30px;
    margin-right: 10px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.answers {
    margin-top: 40px !important;
    background-color: #fffbf0 !important;
}

.answer-section {
    margin: 15px 0 30px 0;
}

.answer-section p {
    margin: 10px 0;
}

.answer {
    color: #d32f2f;
    font-weight: bold;
    text-decoration: underline;
}

.answers h3 {
    color: #1976d2;
    font-size: 1.2em;
    margin-top: 25px;
    line-height: normal;
}

/* Interactive Exercise Styles */
.interactive-exercise {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exercise-description {
    font-family: 'Special Elite', monospace;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.selection-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.selection-card.selected {
    border-color: #2196f3;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.card-icon {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
}

.card-name {
    font-family: 'Special Elite', monospace;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
}

.card-room {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

.selection-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.visualize-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.visualize-button:hover:not(:disabled) {
    background: #45a049;
}

.visualize-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.clear-button {
    background: #f44336;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.clear-button:hover {
    background: #da190b;
}

/* Room Visualization Styles */
.visualization-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

.visualization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.room-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-selector select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: 'Special Elite', monospace;
    font-size: 1em;
}

.visualization-container {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.visualization-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.appliance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.overlay-appliance {
    position: absolute;
    background: rgba(255,255,255,0.95);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.overlay-icon {
    font-size: 2em;
    margin-bottom: 5px;
}

.overlay-name {
    font-family: 'Special Elite', monospace;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
}

.selected-list {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.selected-list h4 {
    font-family: 'Special Elite', monospace;
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2196f3;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.item-icon {
    font-size: 1.5em;
}

.item-name {
    font-family: 'Special Elite', monospace;
    font-weight: bold;
}

.item-room {
    color: #666;
    font-size: 0.9em;
    margin-left: auto;
}

.results h2 {
    font-family: 'Special Elite', monospace;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.index-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.index-section h2 {
    font-family: 'Special Elite', monospace;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    color: #2196f3;
}

.index-list {
    list-style-position: inside;
    font-family: 'Special Elite', monospace;
    font-size: 1.1em;
    line-height: 2;
}

.index-list li {
    margin: 10px 0;
}

.index-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    margin-left: 10px;
}

.index-list a:hover {
    color: #2196f3;
    text-decoration: underline;
}

.sounds-quiz {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sounds-quiz h2 {
    text-align: center;
    color: #2196f3;
    margin-bottom: 10px;
}

.quiz-instruction {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.quiz-progress {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.sound-player {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.play-sound-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.3em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.play-sound-button:hover {
    background: #45a049;
    transform: scale(1.05);
}

.play-sound-button:active {
    transform: scale(0.98);
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.quiz-option {
    background: #f8f9fa;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.quiz-option:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #2196f3;
    transform: translateY(-2px);
}

.quiz-option.selected {
    background: #e3f2fd;
    border-color: #2196f3;
}

.quiz-option.correct {
    background: #c8e6c9;
    border-color: #4caf50;
    font-weight: bold;
}

.quiz-option.incorrect {
    background: #ffcdd2;
    border-color: #f44336;
}

.quiz-option:disabled {
    cursor: not-allowed;
}

.quiz-feedback {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.correct-feedback {
    color: #4caf50;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.incorrect-feedback {
    color: #f44336;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.sound-description {
    color: #666;
    font-style: italic;
    margin: 15px 0;
}

.next-button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.1em;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.next-button:hover {
    background: #1976d2;
}

.quiz-score {
    text-align: center;
    font-weight: bold;
    color: #2196f3;
    margin-top: 20px;
    font-size: 1.1em;
}

.quiz-results {
    text-align: center;
    padding: 40px;
}

.final-score {
    font-size: 2em;
    font-weight: bold;
    color: #2196f3;
    margin-bottom: 15px;
}

.score-percentage {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 30px;
}

.restart-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.restart-button:hover {
    background: #45a049;
}

/* Describe Your Ideal Bedroom */
.describe-section {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.describe-section h2 {
    font-family: 'Special Elite', monospace;
    color: #1976d2;
    margin-bottom: 10px;
}

.describe-instruction {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.vocab-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 14px;
    border-radius: 8px;
}

.vocab-term {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.vocab-def {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

.describe-prompt {
    margin-top: 10px;
    background: #fff9e6;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #ffb300;
}

.describe-prompt h4 {
    margin: 0 0 6px 0;
    color: #b28700;
}

.describe-prompt p {
    margin: 0;
    color: #5d4b00;
}