@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --background-color: #f8f9fa;
    --option-blue-dark: #0066cc;
    --option-blue-light: #3399ff;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    background: #ffffff;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

.quiz-container {
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
}

#welcome-screen {
    width: 100%;
    height: 100vh;
    background: #1e3a6e;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f0f4f8;
}

#quiz-screen {
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
}

.quiz-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0; /* Full screen */
}

/* Base Bootstrap container-fluid override to remove gaps */
.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.question-side {
    flex: 1;
    padding: 0.5rem; /* Minimal padding */
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full height */
}

.question-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1); /* Darker border for white bg */
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    margin-bottom: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); /* Softer shadow */
}

.question-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.question-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    margin: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
    touch-action: none;
}

.controls-side {
    width: 250px;
    height: calc(100vh - 1rem);
    background: rgba(255, 255, 255, 0.95); /* More opaque */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0.5rem 0.5rem 0.5rem 0; /* Only right margin for spacing from edge */
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Darker border */
    overflow: hidden; /* Prevent any child overflow */
}

/* Scrollbar stilleri */
.controls-side::-webkit-scrollbar {
    width: 6px;
}

.controls-side::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.controls-side::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.controls-side::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobil cihazlar için responsive tasarım */
@media (max-width: 768px) {
    .quiz-layout {
        flex-direction: column;
        height: auto;
        overflow: auto;
        padding: 0.25rem;
    }

    .controls-side {
        width: 100%;
        height: auto;
        margin: 0.25rem;
        order: -1;
    }

    .question-side {
        height: auto;
        min-height: 50vh;
        padding: 0.25rem;
    }

    .controls-side, .question-side, .btn-option, .info-box, .control-btn {
        transform: scale(0.9);
        transform-origin: top left;
    }

    .btn-option {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .info-box {
        padding: 4px;
    }

    .control-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

.info-box {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 4px; /* Reduced from 6px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    gap: 4px; /* Reduced from 6px */
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    box-sizing: border-box;
}

.info-item {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 4px 6px; /* Reduced from 6px 8px */
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-width: 0;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.info-item:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.info-icon {
    margin-right: 4px; /* Even smaller */
    width: 22px; /* Even smaller */
    height: 22px; /* Even smaller */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem; /* Even smaller */
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.info-values {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.info-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0; /* Important for flex shrinking */
    overflow: hidden;
}

.info-label {
    font-size: 0.6rem; /* Reduced from 0.65rem */
    color: #4a5568;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.info-value {
    font-size: 0.95rem; /* Even smaller */
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
    display: inline-block;
}

.scores-container {
    flex: none;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.group-score {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.group-score:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, #2a5298 0%, #3b6bbd 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.group-score h3 {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.group-score .score {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.group-score.active {
    background: linear-gradient(135deg, #0cebeb, #20e2d7, #27f09d);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(39, 240, 157, 0.4);
    transform: scale(1.02);
}

.group-score.active h3,
.group-score.active .score {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

#skip-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    border: none;
    color: white;
    font-weight: 800;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(253, 160, 133, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    flex: 1;
}

#skip-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 160, 133, 0.6);
    filter: brightness(1.05);
}

#skip-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e0;
    box-shadow: none;
}

#next-group-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 800;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    flex: 1;
}

#next-group-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    filter: brightness(1.05);
}

#next-group-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e0;
    box-shadow: none;
}

.bottom-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.control-btn {
    background: #2d3748; /* Dark background for visibility */
    border: 1px solid #cbd5e0;
    color: white; /* White text */
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    transform: translateY(-2px);
    background: #4a5568; /* Slightly lighter on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.control-btn i {
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Animations for correct/incorrect answers */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: crosshair;
    touch-action: none;
    background: transparent;
    user-select: none;
}

.drawing-tools {
    background: rgba(255, 255, 255, 0.4);
    padding: 8px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.drawing-tools-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tool-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #4a5568;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tool-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: white;
    color: #2b6cb0;
}

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

.tool-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

#mouseTool.active {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

#penTool.active {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

#eraserTool.active {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

#clearCanvas:hover {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

#fullscreenBtn:hover {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.color-size-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px;
    border-radius: 8px;
    width: 100%;
    max-width: 220px;
}

.color-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.color-btn {
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
}

.color-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#brushSize {
    width: 100%;
    height: 25px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#brushSize:focus {
    outline: none;
}

#brushSize::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3498db, #2980b9);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    margin-top: -7px;
    transition: all 0.3s ease;
}

#brushSize::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

#brushSize::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

#brushSize::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3498db, #2980b9);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

#brushSize::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

#brushSize::-moz-range-thumb:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

#brushSize::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.5));
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#brushSize::-moz-range-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.5));
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#brushSize::-moz-range-progress {
    background: linear-gradient(145deg, #3498db, #2980b9);
    height: 4px;
    border-radius: 2px;
}

.main-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    color: #3d4a5c;
    text-shadow: none;
}

.group-buttons {
    margin-bottom: 3rem;
}

.group-buttons .btn {
    font-size: 1.5rem;
    padding: 0.5rem 2rem;
    margin: 0 1rem;
    border-radius: 10px;
    min-width: 150px;
    transition: all 0.3s ease;
    border: none;
}

.group-buttons .btn-dark {
    background: rgba(0, 0, 0, 0.5);
}

.group-buttons .btn-danger {
    background: #dc3545;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.topic, .author {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.subject, .author-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

#start-btn {
    font-size: 1.4rem;
    padding: 0.6rem 2.5rem;
    border-radius: 50px;
    background: #1a7a3c;
    border: none;
    box-shadow: 0 4px 14px rgba(26, 122, 60, 0.4);
    transition: all 0.2s ease;
}

#start-btn:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(26, 122, 60, 0.5);
}

#start-btn:disabled {
    background: #6c757d;
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-content {
    background: #2c3e5a;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-header .btn-close {
    background-color: rgba(0,0,0,0.1);
    padding: 0.75rem;
    border-radius: 50%;
    opacity: 1;
}

.modal-header .btn-close:hover {
    background-color: rgba(0,0,0,0.2);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0f4f8;
}

.modal-body {
    padding: 2rem;
}

.modal-body .fa-home {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
}

.modal-footer .btn-secondary {
    background-color: #e9ecef;
    color: #2c3e50;
    border: none;
}

.modal-footer .btn-secondary:hover {
    background-color: #dee2e6;
}

.modal-footer .btn-primary {
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.modal-footer .btn-primary:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Quiz End Modal Styles */
#quizEndModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#quizEndModal .modal-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 1.5rem;
}

#quizEndModal .modal-body {
    padding: 2rem;
}

#quizEndModal .winner-section {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

#quizEndModal .winner-name {
    color: #0d6efd;
    margin: 1rem 0;
}

#quizEndModal .winner-score {
    font-weight: bold;
    color: #198754;
}

#quizEndModal .score-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

#quizEndModal .score-item:hover {
    transform: translateX(5px);
}

#quizEndModal .score-item.winner {
    background-color: #e7f5ff;
    border-left: 4px solid #0d6efd;
}

#quizEndModal .group-name {
    font-weight: 500;
}

#quizEndModal .modal-footer {
    border-top: none;
    padding: 1.5rem;
}

#quizEndModal .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.quiz-settings {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    margin: 0;
    width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: left;
}

.quiz-settings .settings-info {
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.quiz-settings ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-settings li {
    color: #fff;
    font-size: 0.95em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quiz-settings li:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.quiz-settings i {
    margin-right: 8px;
    color: #ffd700;
    font-size: 1.1em;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quiz-settings {
        width: 200px;
        margin: 0;
        font-size: 0.85em;
    }
    
    .quiz-settings li {
        padding: 6px 8px;
    }
}

.eraser-size-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px;
    border-radius: 8px;
    width: 100%;
    max-width: 220px;
}

.size-label {
    font-size: 0.75rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1px;
}

#eraserTools {
    display: none; /* Varsayılan olarak gizli */
}

#eraserSize {
    width: 100%;
    height: 25px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#eraserSize:focus {
    outline: none;
}

#eraserSize::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    margin-top: -7px;
    transition: all 0.3s ease;
}

#eraserSize::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

#eraserSize::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

#eraserSize::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

#eraserSize::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

#eraserSize::-moz-range-thumb:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

#eraserSize::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.5));
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#eraserSize::-moz-range-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.5));
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#eraserSize::-moz-range-progress {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    height: 4px;
    border-radius: 2px;
}

#colorPickerBtn.active {
    background: linear-gradient(145deg, #ff9a00, #ff6b6b);
    color: white;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#colorPickerBtn:hover {
    background: linear-gradient(145deg, #ff9a00, #ff6b6b);
    color: white;
}

.brush-size-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px;
    border-radius: 8px;
    width: 100%;
    max-width: 220px;
}

#brushSizeContainer {
    display: none; /* Varsayılan olarak gizli */
}

@keyframes timerFlash {
    0% { color: #2c3e50; }
    50% { color: #e74c3c; font-weight: bold; transform: scale(1.1); }
    100% { color: #2c3e50; }
}

.timer-warning {
    animation: timerFlash 0.8s infinite;
    color: #e74c3c !important;
}

/* Logo alanı stilleri */
.teacher-logo-container {
    display: none;
}

.teacher-logo-container img {
    display: none;
}

.score-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.score-container h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.score-container h4 {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Tek oyunculu mod için özel stiller */
.single-player-mode .score-container {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}

.single-player-mode .score-container h3 {
    color: #1565c0;
}

.single-player-mode .score-container h4 {
    color: #1976d2;
}

.score-display {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.score-display h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.score-display h4 {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

/* Tek oyunculu mod için özel stiller */
.single-player-mode .score-display {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}

.single-player-mode .score-display h3 {
    color: #1565c0;
}

.single-player-mode .score-display h4 {
    color: #1976d2;
}

/* Doğru cevap gösterimi için stil */
.btn-option.show-answer {
    animation: pulse-green 1.5s infinite;
    border: 3px solid #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.7);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Sonuç modalı için yeni stiller */
#resultModal .modal-content {
    border-radius: 15px;
    border: none;
}

#resultModal .modal-header {
    background: #0066ff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.winner-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.scores-list .score-item {
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.scores-list .score-item:hover {
    background-color: #f8f9fa;
}

.share-section {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

.modal-footer {
    border-top: none;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

.options-section {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1),
                -2px -2px 8px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.options-section:hover {
    transform: translateY(-2px);
}

.options-label {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 4px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 8px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-option {
    width: 100%;
    height: 38px;
    font-size: 1.1rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-option:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border-color: #4299e1;
}

.btn-option:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.2),
                inset -3px -3px 5px rgba(255, 255, 255, 0.9);
}

.btn-option.correct {
    background: linear-gradient(145deg, #2ecc71, #27ae60) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5) !important;
    animation: pulse 0.5s;
    border: 2px solid #27ae60;
}

.btn-option.incorrect {
    background: linear-gradient(145deg, #e74c3c, #c0392b) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5) !important;
    animation: shake 0.5s;
    border: 2px solid #c0392b;
}

.btn-option:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Single Player Score Styles */
.score-modern {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.score-modern:hover {
    background: linear-gradient(135deg, #2a5298 0%, #3b6bbd 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.score-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin: 0;
}
/* Compact Drawing Sidebar */
.drawing-sidebar {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawing-sidebar.collapsed {
    padding: 4px;
}

.drawing-sidebar.collapsed .sidebar-content {
    display: none;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #2d3748;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.drawing-sidebar.collapsed .sidebar-toggle {
    background: #e67e22; /* Hilal rengi kapalıyken dikkat çeksin */
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
    animation: slideInDown 0.3s ease-out;
}

.drawing-sidebar .tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.drawing-sidebar .tool-btn:hover {
    background: #f7fafc;
    transform: scale(1.1);
}

.drawing-sidebar .tool-btn.active {
    background: #3182ce;
    color: white;
    border-color: #2b6cb0;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.3);
}

.color-palette-mini {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.3);
}

.color-dot.active {
    border: 2px solid #2d3748;
    transform: scale(1.2);
}

#clearCanvas {
    background: #fff5f5;
    color: #c53030;
    border-color: #feb2b2;
}

#clearCanvas:hover {
    background: #c53030;
    color: white;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobil için yan panel konumu ayarı */
@media (max-width: 768px) {
    .drawing-sidebar {
        left: 5px;
        top: 20%;
    }
}
