body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}


/* Blob elements hidden – background is now /web.png (see app.css body) */
.blob {
    display: none !important;
}
.blob1, .blob2, .blob3, .blob4, .blob5, .blob6,
.blob7, .blob8, .blob9, .blob10, .blob11, .blob12 {
    display: none !important;
}

h1, h2, h3 {
    text-align: center;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.home-box,
.dashboard-box {
    position: relative;
    z-index: 1;
    margin: 60px auto;
    max-width: 400px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.btn,
.settings-btn,
.profile-btn {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #4f46e5;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover,
.settings-btn:hover,
.profile-btn:hover {
    background-color: #3730a3;
}

.settings-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.settings-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container {
    width: 100%;
    max-width: 640px;
    margin: 20px auto;
}

video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.quiz-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 12px;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 10px;
    border: 2px solid #4f46e5;
    border-radius: 8px;
    background-color: white;
    color: #4f46e5;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background-color: #4f46e5;
    color: white;
}

.result {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
}

.result.correct {
    color: green;
}

.result.incorrect {
    color: red;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 40px;
    height: 8px;
    background: #d3d3d3;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.dot.active {
    background: #4f46e5;
}

.hidden {
    display: none;
}

:root{
  --space-1: clamp(8px, 1.2vw, 12px);
  --space-2: clamp(12px, 2vw, 20px);
  --space-3: clamp(18px, 3vw, 32px);
  --radius: 16px;
}

/* Media scale and keep aspect */
img, video, canvas { max-width: 100%; height: auto; }

/* Better full-height on mobile */
.full-viewport {
  min-height: 100vh;   /* fallback */
  min-height: 100svh;  /* stable viewport units */
  min-height: 100dvh;  /* dynamic viewport (new Safari/Chrome) */
}

/* Respect device safe areas (notch/home indicator) */
.safe-area {
  padding-top: max(var(--space-2), env(safe-area-inset-top));
  padding-right: max(var(--space-2), env(safe-area-inset-right));
  padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
  padding-left: max(var(--space-2), env(safe-area-inset-left));
}

/* Auto-wrapping grid utility; reuse anywhere */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-2);
}

@media (max-width: 900px){
  .cta-row { gap: 8px; }
}

