:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --background-color: #0f172a;
    --text-color: #f1f5f9;
    --accent-color: #f472b6;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --slide-bg: #1e293b;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
    /* Prevent scrolling, handle navigation via JS */
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#presentation-container {
    width: 90%;
    height: 90%;
    position: relative;
    background-color: var(--slide-bg);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* Performance fix */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0.5s;
    padding: 1.5rem 3rem;
    /* Reduced top/bottom padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateX(100px);
    pointer-events: none;
    overflow-y: auto;
    /* Enable scroll if content overflows */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
    z-index: 10;
}

.slide.scrollable-slide {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 5rem;
}

.slide.prev {
    transform: translateX(-100px);
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vmin, 4.5rem);
    margin-bottom: 2vmin;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2.2rem, 5.5vmin, 3.8rem);
    color: var(--primary-color);
    margin-bottom: 2.5vmin;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

h3 {
    font-size: clamp(1.8rem, 4.5vmin, 2.8rem);
    color: var(--accent-color);
    margin-bottom: 1.5vmin;
    font-weight: 700;
    display: inline-block;
    border-bottom: 3px solid rgba(244, 114, 182, 0.3);
    padding-bottom: 5px;
    text-transform: capitalize;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

p,
li {
    font-size: clamp(1.2rem, 3vmin, 1.8rem);
    /* Slightly smaller font range */
    line-height: 1.4;
    max-width: 95%;
    margin-bottom: 1vmin;
    color: #cbd5e1;
}

.letter-header {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: clamp(2rem, 6vmin, 3.5rem);
    opacity: 1;
    font-weight: 900;
    color: white;
    background: var(--accent-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-color);
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    z-index: 100;
    pointer-events: none;
}

ul {
    list-style-type: none;
    text-align: left;
}

li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.slide-number {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 1rem;
    color: #64748b;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 20;
}

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

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

#close-presentation-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    /* Centering the X matches nav-btn */
    justify-content: center;
    align-items: center;
}

#close-presentation-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    /* Red on hover */
    color: white;
    transform: rotate(90deg);
    /* Nice effect */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* Quiz Styling */
.quiz-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 900px;
    text-align: left;
}

.question {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn {
    background: #334155;
    border: 1px solid #475569;
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.option-btn:hover {
    background: #475569;
}

.option-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.option-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
}

.option-btn.wrong {
    background: var(--error-color);
    border-color: var(--error-color);
}

.check-answer-btn {
    margin-top: 1rem;
    padding: 12px 25px;
    background: var(--accent-color);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}

.check-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.4);
    filter: brightness(1.1);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-group .next-btn {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-group .next-btn:hover {
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-group #question-btn {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-group #question-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.feedback {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    min-height: 1.5em;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

iframe {
    width: 80%;
    height: 50vh;
    /* Reduced slightly to fit better */
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 50;
    /* Ensure it is on top */
    position: relative;
    /* Needed for z-index */
}

/* Slide Images */
.slide-image {
    max-width: 85%;
    max-height: 30vh;
    /* Reduced max-height to save vertical space */
    margin: 1vmin auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 195, 255, 0.3);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.slide-image:hover {
    transform: scale(1.02);
}

.header-image-container {
    position: relative;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5;
    margin: 2rem 0;
}

.title-slide .header-image-container:hover {
    transform: scale(1.1);
    z-index: 1000;
}

.title-slide .header-image-container:hover .slide-image {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hotspot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00d4ff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    pointer-events: auto;
    /* Hover edilebilir olması için */
    box-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff;
    cursor: crosshair;
}

.hotspot::after {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.98);
    color: #fff;
    padding: 1px 3px;
    border-radius: 1px;
    font-size: 2.2px;
    /* Scale=4 iken ~9px olur */
    white-space: nowrap;
    border-left: 1px solid #00d4ff;
    backdrop-filter: blur(2px);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.hotspot:hover::after {
    opacity: 1;
}

.hotspot-wrapper:hover .hotspot {
    opacity: 1;
}

/* Pulsing effect for hotspots */
@keyframes pulse-hotspot {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Motherboard Zoom Slide Styles */
.motherboard-zoom-img {
    height: 35vh;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.motherboard-zoom-img:hover {
    transform: scale(2);
    z-index: 50;
    border-color: #00d4ff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.zoom-box {
    position: relative;
    z-index: 10;
}

.zoom-box:hover {
    z-index: 100;
}

.hotspot-wrapper:hover .hotspot {
    animation: pulse-hotspot 2s infinite ease-in-out;
}

/* Title Slide Specifics - PREMIUM REDESIGN - COMPACT */
.title-slide {
    overflow: hidden !important;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5vh;
    /* Boşluk daraltıldı */
    padding: 2rem !important;
    /* Padding azaltıldı */
}

/* Decorative Background Elements */
.decor-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: -50px;
    left: -50px;
}

/* Typography Enhancements - COMPACT */
.title-content {
    z-index: 10;
    text-align: center;
}

.premium-title {
    font-size: clamp(2rem, 5.5vmin, 3.8rem) !important;
    /* Tek satıra sığması için küçültüldü */
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 0.5rem !important;
    /* Mesafe daraltıldı */
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.2));
    white-space: nowrap;
    /* Tek satıra sabitlendi */
    text-transform: none;
    /* Otomatik büyük harf kapatıldı */
}

.premium-title span {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    font-style: normal;
    /* İtalik kaldırıldı */
    margin-right: 15px;
    background: rgba(59, 130, 246, 0.1);
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: inline-block;
}

.title-slide .subtitle {
    font-size: clamp(1.2rem, 3vmin, 1.8rem) !important;
    /* Alt başlık küçültüldü */
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 0;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    /* Tek satırda kalması sağlandı */
}

/* Image Enhancements - COMPACT */
.header-image-container {
    position: relative;
    z-index: 5;
    margin: 1vh 0;
    /* Margin daraltıldı */
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.floating-img {
    max-height: 45vh !important;
    /* Başlık boyutuna uyumlu hale getirildi */
    animation: float-main 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.7));
    border: none !important;
    box-shadow: none !important;
}

/* Kapak slaytı için özel boyut */
.title-slide .slide-image {
    max-height: 45vh !important;
}

@keyframes float-main {

    0%,
    100% {
        transform: translateY(0) rotateX(10deg);
    }

    50% {
        transform: translateY(-10px) rotateX(15deg);
    }

    /* Salınım azaltıldı */
}

/* Presenter Info - COMPACT */
.presenter-card {
    z-index: 10;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 0.6rem 2rem;
    /* Boyut daraltıldı */
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.title-slide .presenter {
    font-size: 1.1rem !important;
    /* Yazı boyutu hafif küçültüldü */
    margin: 0;
    color: #fff;
}

.title-slide .institution {
    font-size: 0.8rem !important;
    margin: 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    /* Tek satıra sabitlendi */
}

/* Premium Controls - COMPACT */
.premium-controls {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* Boşluk daraltıldı */
    margin-top: 4vh;
}

.jump-input-wrapper {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jump-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    width: 50px;
    text-align: center;
    font-size: 0.9rem;
    outline: none;
}

.jump-input-wrapper button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.premium-start-btn {
    padding: 0.8rem 2.5rem !important;
    /* Buton daraltıldı */
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    border-radius: 50px !important;
    color: white !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.premium-start-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.6);
}

.btn-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.premium-start-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Drag and Drop Game Styles */
#drag-game-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.scenarios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scenario-item {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: grab;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.scenario-item:active {
    cursor: grabbing;
}

.drop-zones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drop-zone {
    width: 200px;
    height: 50px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.drop-zone.drag-over {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00c6fb;
    color: white;
}

.drop-zone.correct {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

.drop-zone.wrong {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Make images smaller on mobile */
@media (max-width: 768px) {
    .slide-image {
        max-height: 180px;
    }

    /* Kapak slaytı mobile'da da büyük olsun */
    .title-slide .slide-image {
        max-height: 320px !important;
    }
}

/* Topology Game Styles */
.drop-zones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.drop-zone-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.game-img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 5px;
}

.drop-zone-item .drop-zone {
    min-height: 40px;
    font-size: 0.8rem;
    padding: 5px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.drop-zone-item .drop-zone.drag-over {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00c6fb;
}

.draggable-items {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.draggable {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: grab;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.draggable:active {
    cursor: grabbing;
}

.game-feedback {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    min-height: 1.5em;
}

.reset-game-btn {
    background: #ff6b6b;
    border: none;
    padding: 8px 16px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* Connection Game */
.conn-game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.conn-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
}

.conn-icons {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.conn-drop-zone {
    width: 100%;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: all 0.3s;
}

.conn-drop-zone.drag-over {
    border-color: #00c6fb;
    background: rgba(255, 255, 255, 0.1);
}

.conn-drop-zone.correct {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

/* OSI Ordering Game */
.osi-game-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    width: 100%;
}

.osi-mixed-layers,
.osi-target-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.osi-layer-card {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: grab;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
}

.osi-layer-card:active {
    cursor: grabbing;
}

.osi-slot {
    height: 45px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.osi-slot.drag-over {
    background: rgba(255, 255, 255, 0.1);
    border-color: #f59e0b;
}

.osi-slot.correct {
    background: #10b981;
    color: white;
    border: none;
}

.osi-slot.wrong {
    background: #ef4444;
}

/* IP Class Game */
.ip-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.random-ip-display {
    font-size: 3.5rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00c6fb;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 3rem;
    border-radius: 15px;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 198, 251, 0.2);
}

.ip-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ip-class-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ip-class-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.ip-class-btn.correct-choice {
    background: #2ecc71;
    border-color: #2ecc71;
}

/* --- Exam Styles --- */
.exam-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.exam-question-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.exam-question-card h4 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.exam-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.exam-option-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.exam-option-btn:hover:not([disabled]) {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
}

.exam-option-btn.selected {
    border-color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
}

.exam-option-btn.correct {
    background: #10b981 !important;
    color: white !important;
    border-color: #059669 !important;
}

.exam-option-btn.wrong {
    background: #ef4444 !important;
    color: white !important;
    border-color: #dc2626 !important;
}

.explanation-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 58, 138, 0.3);
    border-left: 5px solid #60a5fa;
    border-radius: 10px;
    display: none;
    animation: slideDown 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.explanation-box.visible {
    display: block;
}

.explanation-title {
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.explanation-text {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
}

.show-answer-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    width: fit-content;
    transition: all 0.3s;
}

.show-answer-btn:hover {
    background: var(--accent-color);
    color: white;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ip-class-btn.wrong-choice {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Motherboard Gallery Styles */
.motherboard-gallery-container {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 95%;
}

.motherboard-gallery-card {
    flex: 0 1 320px;
    /* Başlangıçta daha küçük */
    position: relative;
    transition: all 0.5s ease;
}

.gallery-zoom-box {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pro-zoom-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.motherboard-gallery-card:hover {
    z-index: 100;
}

.motherboard-gallery-card:hover .pro-zoom-img {
    transform: scale(3);
    /* 3 Kat Büyüme */
    border-color: #00d4ff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 110;
}

/* Hangman Game Styles */
.hangman-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    width: 90%;
    max-width: 600px;
}

.hangman-word {
    display: flex;
    gap: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 5px;
}

.hangman-letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.letter-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.letter-btn:hover:not(:disabled) {
    background: var(--primary-color);
    transform: scale(1.1);
}

.letter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.letter-btn.correct {
    background: var(--success-color) !important;
    opacity: 1 !important;
}

.letter-btn.wrong {
    background: var(--error-color) !important;
    opacity: 1 !important;
}

.hangman-status {
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 1.5em;
}

/* Fill in the Blanks Styles */
.fib-container {
    text-align: left;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    line-height: 1.8;
    font-size: 1.3rem;
}

.fib-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: bold;
    width: 140px;
    text-align: center;
    padding: 2px 5px;
    outline: none;
    transition: all 0.3s;
}

.fib-active {
    border-bottom-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.fib-input.correct {
    color: var(--success-color);
    border-bottom-color: var(--success-color);
}

.fib-input.wrong {
    color: var(--error-color);
    border-bottom-color: var(--error-color);
}

.game-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}