/* ============================================================
   PART 1 — FONTS & ROOT VARIABLES
   Font Faces • Global Design Tokens
============================================================ */

/* ============================
   FONT: FREDOKA
============================ */

@font-face {
    font-family: 'Fredoka';
    src: url('/ui/font/fredoka/Fredoka-Regular.woff2') format('woff2'),
         url('/ui/font/fredoka/Fredoka-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fredoka';
    src: url('/ui/font/fredoka/Fredoka-Medium.woff2') format('woff2'),
         url('/ui/font/fredoka/Fredoka-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fredoka';
    src: url('/ui/font/fredoka/Fredoka-Bold.woff2') format('woff2'),
         url('/ui/font/fredoka/Fredoka-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fredoka';
    src: url('/ui/font/fredoka/Fredoka-Light.woff2') format('woff2'),
         url('/ui/font/fredoka/Fredoka-Light.ttf') format('truetype');
    font-weight: 700; /* original beibehalten */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fredoka';
    src: url('/ui/font/fredoka/Fredoka-SemiBold.woff2') format('woff2'),
         url('/ui/font/fredoka/Fredoka-SemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================
   FONT: METIN2
============================ */

@font-face {
    font-family: 'Metin2Font';
    src: url('/ui/font/metin2.ttf') format('truetype');
}

/* ============================
   FONT: BAHNSCHRIFT
============================ */

@font-face {
    font-family: 'bahn';
    src: url('/ui/font/bahnschrift.ttf') format('truetype');
}

/* ============================================================
   ROOT VARIABLES
============================================================ */

:root {
    --primary-color: #F0D9A2;
    --primary-color-light: rgba(240, 217, 162, 0.8);
    --accent-color: #FECE58;

    --background-color: rgba(240, 217, 162, 0.8);

    --dark-bg: #1F0E02;
    --dark-red: #5D0505;
}

/* ============================================================
   PART 2 — GLOBAL HTML & BODY BASE
   Cursor • Scroll Behavior • Body Base • Page Fade
============================================================ */

/* ============================
   HTML BASE
============================ */

html {
    cursor: url('/ui/norm.cur'), auto;
    scroll-behavior: smooth;
    /* user-select: none; */
}

html,
body {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: auto;
}

/* ============================
   BODY BASE
============================ */

body {
    margin: 0;
    font-family: 'Fredoka', Arial, sans-serif;
    min-height: 100vh; 
    position: relative;
    overflow-x: hidden;
    background-color: black;
	opacity: 0;
    animation: fadein 2.8s ease forwards;
	padding-bottom: 3.5rem; /* exakt Footer-Höhe */
}

/* ============================
   PAGE FADE-IN
============================ */

@keyframes fadein {
    to {
        opacity: 1;
    }
}

/* ============================================================
   PART 3 — LAYOUT STRUCTURE
   Header • Footer • Global Overlays
============================================================ */

/* ============================
   HEADER
============================ */

header {
    background-color: var(--dark-bg);
    border-bottom: 2px solid #FECE58;
    padding: 0;
    height: 45px;

    position: fixed;
    top: 0;
    width: 100%;

    z-index: 1000;
}

/* ============================
   FOOTER
============================ */

footer {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 3.5rem;

    background-color: var(--dark-bg);
    border-top: 2px solid #FECE58;
    z-index: 900;

    /* ✨ Zentrierung */
    display: flex;
    align-items: center;      /* vertikal */
    justify-content: center;  /* horizontal */
}

footer p {
    margin: 0;
    padding: 0;

    font-size: 13px;
    color: #f0d9a2 !important;
    text-align: center;
}



/* ============================
   GLOBAL SCREEN OVERLAY
============================ */

#overlay {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background-color: black;
    opacity: 0;

    pointer-events: none;
    transition: opacity 1s ease;

    z-index: 9999;
}

#overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   PART 4 — CONTENT STRUCTURE & TYPOGRAPHY
   Container • Content Sections • Headers • Text
============================================================ */

/* ============================
   MAIN CONTAINER
============================ */

.container {
    max-width: 1000px;
    margin: 35px auto 0;
    background-color: var(--background-color);
    padding: 20px;

    border-radius: 0;
    flex: 1;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-right: 2px solid #FECE58;
    border-left: 2px solid #FECE58;
	overflow: visible;
}

/* ============================
   CONTENT SECTIONS
============================ */

.content-section {
    border: 1px solid #5D0505;
    border-radius: 0px;

    padding: 0;
    padding-bottom: 1.5rem;

    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;

    scroll-margin-top: 50px;
    /* user-select: text !important; */
}

.content-section2 {
    padding: 0;
    margin-bottom: 5px;

    max-width: 990px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2px;
}

/* ============================
   CONTENT HEADERS
============================ */

.content-header {
    background-color: #5D0505;
    color: #F0D9A2;

    padding: 6px 20px;
    text-align: center;

    border-top-left-radius: 0px;
    border-top-right-radius: 0px;

    position: relative;
    width: calc(100% - 40px);
    margin: 0;
}

.custom-small-header {
    background: linear-gradient(45deg, #5D0505, #7C3B16, #5d0505);
    color: #F0D9A2;

    padding: 5px;
    margin: 0;

    text-align: center;
    font-size: 14px;
    font-weight: bold;

    scroll-margin-top: 55px;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ============================
   SECTION TITLES (H2)
============================ */

.content-section h2 {
    background: linear-gradient(to right, #5D0505, Brown, #5D0505);
    color: BurlyWood;

    padding: 10px;
    margin: 0;

    text-align: center;
    font-size: 16px;

    font-family:
        'Quattrocento',
        'Trebuchet MS',
        'FiraSans',
        'Linux Libertine',
        'Times New Roman',
        serif;

    scroll-margin-top: 55px;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);

    border-radius: 8px;
}

/* ============================
   TEXT CONTENT
============================ */

.content-section p {
    color: black;
    font-size: 16px;
    line-height: 1.6;

    text-align: center;
    max-width: 80ch;

    margin: 10px auto;
}

.content-section2 p {
    color: black;
    font-size: 16px;
    line-height: 1.6;

    text-align: center;
    max-width: 95ch;

    margin: 10px auto;
}

/* ============================
   CONTENT BACKGROUND BLOCK
============================ */

.content-background {
    background-color: #b58851;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* ============================================================
   PART 5 — SCROLLBARS, BACKGROUNDS & MEDIA
   Scrollbars • Background Layers • Video Overlay • Media
============================================================ */

/* ============================
   CONTAINER SCROLLBAR
============================ */

.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-thumb {
    background-color: #FECE58;
    border-radius: 10px;
}

.container::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

/* ============================
   BACKGROUND VIDEO WRAPPER
============================ */

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    z-index: -1;
    overflow: hidden;
}

/* ============================
   BACKGROUND VIDEO
============================ */

#backgroundVideo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;

    opacity: 0;
    animation: fadeVideo 5s ease forwards;
}

/* ============================
   VIDEO FADE ANIMATIONS
============================ */

@keyframes fadeVideo {
    to {
        opacity: 0.45;
    }
}

/* (Legacy animation – intentionally preserved) */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.45;
    }
}

/* ============================
   IMAGE CONTAINERS
============================ */

.image-container {
    max-width: 1000px;
    max-height: 300px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
}

.image-container img {
    width: 100%;
    height: auto;
    border: none;
}

/* ============================
   IMAGE GALLERY
============================ */

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ============================
   IMAGE FUNCTION OVERRIDES
============================ */

img[src*="rss/ui/worldeditor/"] {
    border: none;
    box-shadow: none;
    border-radius: 0;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img[src*="/site/worldeditor/img/ui/"]:hover {
    transform: scale(1.05);
}

/* ============================================================
   PART 6 — LOGO, HIGHLIGHTS & TOOLTIP SYSTEMS
   Logo • Highlight Tooltips • SmallInfo Tooltips • Generic Tooltip
============================================================ */

/* ============================
   LOGO
============================ */

.logo-container {
    text-align: center;
    margin: 20px 0;
}

.logo {
    font-family:
        'Quattrocento',
        'Trebuchet MS',
        'FiraSans',
        'Linux Libertine',
        'Times New Roman',
        serif;

    font-variant: small-caps;
    font-size: 48px;
    font-weight: bold;
    line-height: 1;

    color: #f0d9a2;
    padding: 5px;
    display: inline-block;

    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.2),
        2px 5px 0 rgba(0, 0, 0, 0.3),
        2px 1px 0 rgba(0, 0, 0, 0.4),
        1px 1px 1px rgba(0, 0, 0, 0.5);

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ============================
   HIGHLIGHT TOOLTIP
============================ */

.highlight {
    color: #f5d98c;
    padding: 2px 4px;
    border-radius: 4px;
    position: relative;

    cursor: pointer;
    transition:
        color 0.22s ease,
        text-shadow 0.22s ease,
        text-decoration-color 0.22s ease;
}

.highlight:hover {
    color: #fff6d0;
    text-shadow:
        0 0 8px #ffd700,
        0 0 14px #ffbf00,
        0 0 22px #ffea8a;
}

.highlight:active {
    color: #ffffff;
    text-shadow:
        0 0 12px #ffe98a,
        0 0 20px #ffdd66;
}

.highlight::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);

    background: rgb(103 70 54 / 97%);
    color: #f5d98c;

    padding: 6px 12px;
    border-radius: 6px;

    font-size: 0.75rem;
    font-family: 'Fredoka', Arial, sans-serif;

    white-space: nowrap;
    opacity: 0;
    pointer-events: none;

    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);

    transition: opacity 0.25s ease, transform 0.25s ease;
}

.highlight::after {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(50, 20, 5, 0.92);

    opacity: 0;
    transition: opacity 0.25s ease;
}

.highlight:hover::before,
.highlight:hover::after {
    opacity: 1;
}

/* ============================
   SMALLINFO TOOLTIP
============================ */

.smallinfo {
    color: #f5d98c;
    padding: 2px 4px;
    border-radius: 4px;
    position: relative;

    transition:
        color 0.22s ease,
        text-shadow 0.22s ease,
        text-decoration-color 0.22s ease;
}

.smallinfo:hover {
    color: #fff6d0;
    text-shadow:
        0 0 8px #ffd700,
        0 0 14px #ffbf00,
        0 0 22px #ffea8a;
}

.smallinfo:active {
    color: #ffffff;
    text-shadow:
        0 0 12px #ffe98a,
        0 0 20px #ffdd66;
}

.smallinfo::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);

    background: rgb(103 70 54 / 97%);
    color: #f5d98c;

    padding: 6px 12px;
    border-radius: 6px;

    font-size: 0.75rem;
    font-family: 'Fredoka', Arial, sans-serif;

    white-space: nowrap;
    opacity: 0;
    pointer-events: none;

    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);

    transition: opacity 0.25s ease, transform 0.25s ease;
}

.smallinfo::after {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(50, 20, 5, 0.92);

    opacity: 0;
    transition: opacity 0.25s ease;
}

.smallinfo:hover::before,
.smallinfo:hover::after {
    opacity: 1;
}

/* ============================
   GENERIC TOOLTIP (JS-BASED)
============================ */

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;

    padding: 10px;
    border-radius: 5px;

    z-index: 1010;
    white-space: nowrap;

    transition: opacity 0.3s;
    display: none;
    opacity: 0;
}

.tooltip.show {
    display: block;
    opacity: 1;
}

/* ============================================================
   PART 7 — NAVIGATION & UI COMPONENTS
   Navigation • Feature Tiles • Icons • UI Blocks
============================================================ */

/* ============================
   NAVIGATION BAR
============================ */

nav {
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
    position: relative;
}

nav ul li a {
    color: #F0D9A2;
    text-decoration: none;
    font-size: 18px;
    line-height: 41px;

    display: flex;
    align-items: center;
    padding: 0 10px;
}

nav ul li a i {
    margin-right: 5px;
}

.nav-icon {
    font-size: 18px;
    line-height: 45px;
    margin-top: 0;
}

nav ul li a:hover {
    text-decoration: none;
    background-color: #5D0505;
    color: #F0D9A2;
    border-radius: 5px;
    transition: background-color 0.8s;
}

nav ul li a.active {
    background-color: #5D0505;
    color: #F0D9A2;
}

/* ============================
   FEATURE GRID
============================ */

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.feature-tile {
    background-color: rgba(139, 0, 0, 0.65);
    border: 1px solid #5D0505;
    color: #F0D9A2;

    border-radius: 8px;
    width: 250px;
    padding: 20px;

    text-align: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feature-tile i {
    font-size: 40px;
    color: #FECE58;
    margin-bottom: 10px;
}

.feature-tile h3 {
    margin: 10px 0;
    font-size: 1.2em;
    color: #FECE58;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}

/* ============================
   ICON / MISC UI ELEMENTS
============================ */

/* Unklarer Spezial-Icon – bewusst erhalten */
#icon {
    font-size: 33px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* ============================================================
   PART 8 — SPECIAL TEXTS & CONFIRMATION UI
   Special Text • Markers • Confirmation Boxes
============================================================ */

/* ============================
   SPECIAL TEXT VARIANTS
============================ */

.special-text {
    color: tan;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.special-text2 {
    color: gold;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    margin-top: 8px;
    text-decoration: dotted underline;
    font-size: 14px;
}

.special-textsmall {
    color: beige;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    margin-top: 5px;
    font-size: 12px;
}

.special-icons {
    font-size: 35px;
}

/* ============================
   SPECIAL BLOCKS / MARKERS
============================ */

.specialus {
    background-color: rgb(93, 5, 5);
    color: burlywood;

    padding: 2px;
    margin: 0 auto;

    text-align: center;
    font-size: 16px;
    max-width: 955px;

    font-family:
        'Quattrocento',
        'Trebuchet MS',
        'FiraSans',
        'Linux Libertine',
        'Times New Roman',
        serif;

    scroll-margin-top: 5px;
    border: 1px solid rgb(79, 31, 31);
}

.markiert1 {
    background: linear-gradient(
        to right,
        transparent,
        goldenrod,
        transparent
    );
    color: beige;

    padding: 2px;
    margin: 0 auto;
    margin-top: 20px;

    text-align: center;
    font-size: 14px;
    max-width: 300px;

    font-family:
        'Quattrocento',
        'Trebuchet MS',
        'FiraSans',
        'Linux Libertine',
        'Times New Roman',
        serif;
}

.markiertred {
    background: linear-gradient(
        to right,
        transparent,
        #da5420,
        transparent
    );
    color: beige;

    padding: 2px;
    margin: 0 auto;
    margin-top: 20px;

    text-align: center;
    font-size: 14px;
    max-width: 300px;

    font-family:
        'Quattrocento',
        'Trebuchet MS',
        'FiraSans',
        'Linux Libertine',
        'Times New Roman',
        serif;
}

/* ============================
   SMALL TEXT BLOCK
============================ */

.kleintext {
    max-width: 500px;
    padding: 2px;
    margin: 0 auto;

    border: 1px dotted black;
}

.kleintext p {
    font-size: 13px;
    font-family:
        'Quattrocento',
        'Trebuchet MS',
        'FiraSans',
        'Linux Libertine',
        'Times New Roman',
        serif;
}

/* ============================
   CONFIRMATION BOXES
============================ */

.confirmation-red {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 30px;
    width: 40%;
    max-width: 600px;

    background-color: rgba(10, 14, 22, 0.75);
    border: 1px solid #612b37;
    border-radius: 12px;

    box-shadow:
        0 0 15px rgba(214, 69, 62, 0.5),
        0 0 40px rgba(214, 69, 62, 0.3);

    color: #ff4f4f;
    text-align: center;
}

.confirmation-red-logout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 30px;
    width: 40%;
    max-width: 600px;

    background-color: rgba(10, 14, 22, 0.75);
    border: 1px solid #6e922c;
    border-radius: 12px;

    box-shadow:
        0 0 15px rgb(175 214 62 / 50%),
        0 0 40px rgb(91 214 62 / 30%);

    color: #b5e05c;
    text-align: center;
}

.confirmation-blue {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 30px;
    width: 40%;
    max-width: 600px;

    background-color: rgba(10, 14, 22, 0.75);
    border: 1px solid #3b75af;
    border-radius: 12px;

    box-shadow:
        0 0 15px rgb(7 106 207),
        0 0 40px rgb(74 94 114);

    color: #3b76b1;
    text-align: center;
}

/* ============================================================
   PART 9 — PARTICLES & ANIMATION SYSTEMS
   Spark Particles • Click Explosion • Keyframes
============================================================ */

/* ==========================================
   SPARK PARTICLES (Improved)
========================================== */

#sparks {
    position: fixed;
    inset: 0;

    pointer-events: none;
    overflow: hidden;

    z-index: 700;
}

.spark {
    position: absolute;

    width: 4px;
    height: 4px;
    border-radius: 50%;

    opacity: 0.9;

    /* Gold Glow */
    background: radial-gradient(
        circle,
        hsl(var(--hue), 90%, 75%),
        hsl(var(--hue), 90%, 55%)
    );

    filter: drop-shadow(0 0 6px #ffcc33);

    animation:
        sparkFloat var(--dur) ease-in-out infinite,
        sparkDrift var(--drift) linear infinite;
}

/* --------------------------
   Vertical floating motion
--------------------------- */

@keyframes sparkFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* --------------------------
   Horizontal random drift
--------------------------- */

@keyframes sparkDrift {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(-- drift-x));
    }
}

/* ==========================================
   CLICK EXPLOSION (Login Button Only)
========================================== */

.spark-click {
    position: absolute;

    width: 5px;
    height: 5px;
    border-radius: 50%;

    background: radial-gradient(circle, #ffe9a3, #ffcc33);
    filter: drop-shadow(0 0 6px #ffcc33);

    pointer-events: none;
    opacity: 1;

    animation: sparkExplode 600ms ease-out forwards;

    z-index: 2000;
}

@keyframes sparkExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0.3);
        opacity: 0;
    }
}

/* =========================================================
   PART 10 — RESPONSIVE & MOBILE OPTIMIZATION
   Smartphones • Small Tablets • Very Small Devices
========================================================= */

/* =========================================================
   📱 MOBILE & TABLET (≤ 768px)
========================================================= */

@media (max-width: 768px) {

    /* ============================
       GLOBAL
    ============================ */

    body {
        font-size: 15px;
        overflow-x: hidden;
    }

    html {
        cursor: auto;
    }

    /* ============================
       HEADER & NAVIGATION
    ============================ */

    header {
        height: auto;
        padding: 6px 0;
    }

    nav {
        height: auto;
        padding: 6px 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 4px 6px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 6px 10px;
        line-height: normal;
    }

    .nav-icon {
        font-size: 16px;
    }

    /* ============================
       CONTAINER
    ============================ */

    .container {
        margin: 60px 8px 0;
        padding: 14px;

        min-height: auto;

        border-left: 1px solid #FECE58;
        border-right: 1px solid #FECE58;
    }

    /* ============================
       CONTENT
    ============================ */

    .content-section,
    .content-section2 {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .content-section p,
    .content-section2 p {
        font-size: 14px;
        max-width: 100%;
        padding: 0 6px;
    }

    .content-section h2 {
        font-size: 14px;
        padding: 8px;
    }

    .custom-small-header {
        font-size: 13px;
        padding: 4px;
    }

    /* ============================
       LOGO
    ============================ */

    .logo,
    .logo-text-divider span {
        font-size: 32px;
        margin: 35px 0px;
    }

    .logo-divider {
        height: 3px;
    }

    /* ============================
       BUTTONS (GLOBAL)
    ============================ */

    .button-base,
    .normal-button,
    .read-more-btn,
    .download-btn,
    .read-about-icon,
    .submit-button,
    .close-button,
    .red-button,
    .blue-button,
    .green-button {
        width: 100%;
        font-size: 14px;
        padding: 12px 14px;
    }

    /* ============================
       FEATURE TILES
    ============================ */

    .feature-grid {
        gap: 12px;
        padding: 10px 0;
    }

    .feature-tile {
        width: 100%;
        padding: 16px;
    }

    /* ============================
       IMAGES
    ============================ */

    img {
        margin: 12px 0;
    }

    .image-container {
        max-height: none;
    }

    /* ============================
       MODALS (GENERIC)
    ============================ */

    .modal-content {
        width: 92%;
        margin: 12% auto;
        border-radius: 10px;
    }

    .modal-header {
        padding: 14px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 16px;
        font-size: 14px;
    }

    /* ============================
       DROPDOWN
    ============================ */

    .dropdown-content {
        min-width: 140px;
        font-size: 12px;
    }

    .dropdown-content a {
        padding: 6px 10px;
    }

    /* ============================
       CONFIRMATION BOXES
    ============================ */

    .confirmation-red,
    .confirmation-blue,
    .confirmation-red-logout {
        width: 90%;
        padding: 18px;
        font-size: 14px;
    }

    /* ============================
       SUCCESS BOX
    ============================ */

    .success-box {
        width: 90%;
        font-size: 14px;
        padding: 14px;
    }

    /* ============================
       SPOILERS
    ============================ */

    .spoiler,
    .spoilersmall {
        margin-left: 10px;
        margin-right: 10px;
    }

    .spoiler-header,
    .spoilersmall-header {
        font-size: 11px;
        padding: 6px 16px;
    }

    .spoiler-content,
    .spoilersmall-content {
        font-size: 13px;
        padding: 12px;
    }

    /* ============================
       MUSIC BUTTON
    ============================ */

    .music-btn {
        font-size: 22px;
        top: 10px;
        right: 10px;
    }

    /* ============================
       SCROLL TO TOP
    ============================ */

    #scrollToTopBtn {
        left: 14px;
        bottom: 14px;
        font-size: 22px;
    }
}

/* =========================================================
   📱 VERY SMALL DEVICES (≤ 420px)
========================================================= */

@media (max-width: 420px) {

    .logo,
    .logo-text-divider span {
        font-size: 26px;
        margin: 35px 0px;
    }

    nav ul li a {
        font-size: 13px;
        padding: 6px 8px;
    }

    .content-section h2 {
        font-size: 13px;
    }

    .feature-tile h3 {
        font-size: 1em;
    }
}

/* =========================================================
   RESPONSIVE MEDIA — TUTORIAL VIDEOS
========================================================= */

.tutorial-video {
    width: 100%;
    max-width: 100%;
    height: auto;

    display: block;
    margin: 10px auto;

    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}
