/* @import url(https://fonts.googleapis.com/css?family=Abel);
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans&subset=latin,latin-ext); */
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css);

@import url(https://googleapis.com/css2?family=Inconsolata:wght@400;700&family=Roboto:wght@300;400;700);

@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700);

:root {
    /* --primary-color: #50fa7b; */
    --primary-color: #00ffef;
    --error-color: #ff4d4f;
    --secondary-color: #62cbff;
    --background-color: #282a36;
    --background-color-lite: #313444;
    --text-color: #f8f8f2;
    --text-color-dark: #acacac;
    --card-bg-color: #44475a;
    --link-hover-color: #fff;
    --border-radius: 8px;
    --font-mono: 'monospace', 'Courier New';
    /* Mono-spaced font */
    --font-sans: 'Montserrat', 'Roboto', 'Inconsolata', sans-serif;
    /* Sans-serif pro nadpisy */
    --our-offer-card-size: 15rem;
    --section-padding: 4rem;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: unset;
    cursor: pointer;
}

p {
    margin-bottom: 2rem;
}

.i-size-s {
    font-size: 1rem;
}

.i-size-m {
    font-size: 1.5rem;
}

.i-size-l {
    font-size: 2rem;
}

.i-size-xl {
    font-size: 4rem;
}


section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
}

b {
    color: var(--secondary-color);
}

h1,
h2,
h3 {
    font-family: var(--font-sans);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;

}

h3 {
    color: var(--secondary-color);
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.main-header {
    position: relative;
    box-sizing: border-box;
    background-color: #1e1f26;
    text-align: center;
    width: 100%;
    min-height: 350px;
    border-bottom: 2px solid var(--primary-color);
}

.main-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.main-header .subtitle {
    font-size: 1.2rem;
    color: #bdbdbd;
}

.bio h3 {
    text-align: left;
}

.intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-bg-color);
}

.personal-link {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.personal-link a {
    display: flex;
    color: var(--secondary-color);
    text-decoration: none;
}

.personal-link a:hover {
    color: var(--link-hover-color);
}

.skills {
    flex-grow: 1;
    text-align: center;
    max-width: 35rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.skill-tag {
    background-color: #44475a;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.feature-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 1.5rem;
    margin-top: 5rem;
    margin-bottom: 6rem;

}

.icon-next {
    display: block;
    width: 100%;
    font-size: 3rem;
    text-align: center;
}

.feature-card {
    display: flex;
    flex-direction: column;
    min-width: 25rem;
    max-width: 25rem;
    font-size: large;
    font-family: var(--font-sans);
    align-items: left;
    text-align: left;
    padding: 1rem;
    transform: scale(1);
    transition: transform 200ms ease, bacground-color 200ms ease;
}

.feature-card-header {
    display: flex;
    align-items: center;
    min-width: 100%;
    font-family: var(--font-sans);
    font-size: large;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: left;
    gap: 1rem;
}

.feature-card-header i {
    padding-bottom: 0.4rem;
    font-size: 2rem;
}

.our-offer {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    margin-top: 3rem;
}

.our-offer-text {
    max-width: 63rem;
    text-align: justify;
    /* padding: 0.5rem; */
    color: var(--text-color-dark);
}

.our-offer-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.our-offer-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: var(--our-offer-card-size);
    min-height: var(--our-offer-card-size);
    max-width: var(--our-offer-card-size);
    max-height: var(--our-offer-card-size);
    gap: 1rem;
    border: 1px solid var(--card-bg-color);
    border-radius: 5px;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;

}

.our-offer-card:hover {
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--background-color);
}

.our-offer-card:hover i {
    color: var(--background-color);
}

.our-offer-card i {
    font-size: 2rem;
}

.diagram {
    display: flex;
    justify-self: center;
    justify-content: center;
}

.why-me-grid img {
    max-width: 50%;
}

.why-me-img {
    display: flex;
    justify-content: center;
}

.why-me-text {
    text-align: right;

    font-family: var(--font-sans);
}

/* ### programátorské kurzy */
.workshop {
    padding: 4rem;
    justify-items: center;
    background-color: var(--background-color-lite);
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.workshop-list {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.workshop-button-secondary {
    display: flex;
    justify-self: center;
    justify-content: center;
    align-items: center;
    height: 4rem;
    min-height: 4rem;
    background-color: var(--card-bg-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin-top: 2rem;
    gap: 0.5rem;
}

.workshop-button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.workshop-button-primary {
    display: flex;
    justify-self: center;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    min-height: 4rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 0.5rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease;
    cursor: pointer;
    margin-top: 2rem;
    gap: 1rem;
}

.workshop-button-primary:hover {
    background-color: var(--link-hover-color);
    color: var(--background-color);
    font-weight: 700;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    width: 90%;
    gap: 2rem;
    margin-top: 2rem;
}

.workshop-left-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;

}

.workshop-text {
    text-align: right;
    font-family: var(--font-sans);
}

.button-secondary {
    background-color: #44475a;
    font-family: var(--font-sans);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}


/* základní informace o kurzu */
.course-info-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    text-align: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.course-info-grid h2 {
    color: var(--text-color);
}

.course-info-grid i {
    /* font-size: 4rem; */
    color: var(--primary-color);
    position: relative;
}

.course-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 60rem;
}

.course-info-section .dark-text {
    color: var(--text-color-dark);
    max-width: 35rem;
}




/* ### miny hry */
.marketing-minigame {
    justify-items: center;
}

.marketing-minigame-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    width: 100%;
    gap: 2rem;
    margin-top: 2rem;
}

.marketing-on-middle {
    display: contents;
}

.marketing-on-side {
    display: none;
}

.marketing-minigame-text {

    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    gap: 1rem;
    color: var(--text-color-dark);
}

.marketing-minigame-text b {
    color: var(--text-color);
}

.marketing-minigame-text-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    width: 15rem;
    min-width: 15rem;
    height: 15rem;
    min-height: 15rem;
}

.marketing-minigame-text-card-on-side {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

#phaser-game-container {
    display: flex;
    box-sizing: border-box;
    width: 500px;
    height: 500px;
}

.main-footer {
    background-color: #1e1f26;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-content i {
    color: var(--primary-color);
}

/* Styl pro text odkazu */
.terms-text a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-color);
    transition: color 0.3s ease;
}

.terms-text a:hover {
    color: var(--primary-color);
    border-bottom: 1px dotted var(--primary-color);
}

.icon-discord {
    /* Nastavte zobrazení bloku pro správnou velikost */
    display: inline-block;
    color: var(--primary-color);
    width: 1.25em;
    /* Velikost ikony (můžete upravit) */
    height: 1em;
    vertical-align: -0.125em;
    /* Zarovnání s textem */

    /* Vložení SVG jako Data URI */
    background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="Discord-Logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 126.644 96"><path id="Discord-Symbol-Black" fill="%2300ffef" d="M81.15,0c-1.2376,2.1973-2.3489,4.4704-3.3591,6.794-9.5975-1.4396-19.3718-1.4396-28.9945,0-.985-2.3236-2.1216-4.5967-3.3591-6.794-9.0166,1.5407-17.8059,4.2431-26.1405,8.0568C2.779,32.5304-1.6914,56.3725.5312,79.8863c9.6732,7.1476,20.5083,12.603,32.0505,16.0884,2.6014-3.4854,4.8998-7.1981,6.8698-11.0623-3.738-1.3891-7.3497-3.1318-10.8098-5.1523.9092-.6567,1.7932-1.3386,2.6519-1.9953,20.281,9.547,43.7696,9.547,64.0758,0,.8587.7072,1.7427,1.3891,2.6519,1.9953-3.4601,2.0457-7.0718,3.7632-10.835,5.1776,1.97,3.8642,4.2683,7.5769,6.8698,11.0623,11.5419-3.4854,22.3769-8.9156,32.0509-16.0631,2.626-27.2771-4.496-50.9172-18.817-71.8548C98.9811,4.2684,90.1918,1.5659,81.1752.0505l-.0252-.0505ZM42.2802,65.4144c-6.2383,0-11.4159-5.6575-11.4159-12.6535s4.9755-12.6788,11.3907-12.6788,11.5169,5.708,11.4159,12.6788c-.101,6.9708-5.026,12.6535-11.3907,12.6535ZM84.3576,65.4144c-6.2637,0-11.3907-5.6575-11.3907-12.6535s4.9755-12.6788,11.3907-12.6788,11.4917,5.708,11.3906,12.6788c-.101,6.9708-5.026,12.6535-11.3906,12.6535Z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    /* Ujistí se, že se SVG vejde do rozměrů */
    background-position: center;

}

.social-links a {
    color: var(--text-color);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* ### kontaktní formulář */
#contact-id {
    background-color: var(--background-color-lite);
}

.contact-grid {
    width: 30rem;
}

.form-group {
    display: grid;
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/*
 * Styl pro hvězdičku
 */
label::after {
    content: " *";
    color: #ff4d4f;
    display: none;
}

/*
 * Toto pravidlo zajistí, že se hvězdička zobrazí jen u labelů
 * pro povinná pole (tedy pouze u těch, které spadají pod inputy s atributem 'required')
 */
label:has(+ [required])::after {
    display: inline;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    font-size: 1.1rem;
    font-family: var(---font-sans);
    border: 1px solid var(--primary-color);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border-radius: 4px;
}

/* .form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
} */

/* Zvýraznění platných polí po interakci */
input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border: 1px solid var(--primary-color);
}

/* Zvýraznění neplatných polí po interakci */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ff4d4f;
    box-shadow: 0 0 5px rgba(255, 77, 79, 0.5);
}

/* Volitelně: zamezení červené barvy, když je uživatel v poli */
input:invalid:not(:focus),
textarea:invalid:not(:focus) {
    border: 1px solid var(--primary-color);
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--link-hover-color);
}

.form-group .submit-button {
    justify-self: right;
    margin-top: 1rem;
}

/* Překryv plochy pro načítání */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 24, 24, 0.765);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}


/* ### válec ### */

/* Definice barev */
:root {
    --color-dark-bg: #111827;
    /* gray-900 */
    --color-card-bg: #1f2937;
    /* gray-800 - Důležité: tato barva se používá pro blednutí */
    --color-card-border: #374151;
    /* gray-700 */
    --color-highlight: #5eead4;
    /* teal pro aktivní okraj */
    --color-accent: #4ade80;
    /* green-400 pro tlačítko */
    --color-active-bg: #3f7b7f;
    /* Custom dark teal */
}

/* 1. Stylování těla a centrování */
/* .app-body {
    background-color: var(--color-dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
} */

/* 2. Stylování hlavní karty */
.main-card {

    /* width: 100%; */
    width: 60rem;
    margin-left: auto;
    margin-right: auto;
    /* padding: 1.5rem; */
    /* Nastaveno na stejnou barvu jako je pozadí masky pro plynulé blednutí */
    /* background-color: var(--color-card-bg); */
    /* border-radius: 0.75rem; */
    /* box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4); */
    /* border: 1px solid var(--color-card-border); */
}

.main-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.projects-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 4rem;
    /* justify-content: center; */
    /* align-items: center; */
    /* border: 2px solid var(--color-card-border); */
    /* border-radius: 10px; */
}

/* 3. Styly pro 3D válec */
.slot-container {
    perspective: 1000px;
    /* height: 400px; */
    height: 100%;
    position: relative;
    overflow: hidden;
    /* border-radius: 0.5rem; */
    /* border: 4px solid var(--color-card-border); */
    order: -1;
}

/* Samotný válec, který se otáčí */
.slot-reel {
    transform-style: preserve-3d;
    transform: rotateX(var(--rotation-x, 0deg));
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

.slot-reel:active {
    cursor: grabbing;
}

/* Jednotlivé položky na válci */
.slot-item {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;

    /* Výpočet poloměru válce */
    transform: rotateX(var(--rotate)) translateZ(123px);

    backface-visibility: hidden;
    border: 2px solid transparent;

    /* Vlastní styly pro slot-item */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;

    /* --- ZMĚNA: Odstranění pozadí a stínu --- */
    background-color: transparent;
    box-shadow: none;
    /* ------------------------------------- */

    border-radius: 0.5rem;
    transition: background-color 0.15s ease-in-out;
}

/* Zvýraznění aktivního projektu */
.slot-item--active {
    transform: rotateX(var(--rotate)) translateZ(123px) scale(1.1);
    /* background-color: var(--color-active-bg) !important; */
    border: 2px solid var(--color-card-border);
    /* color: var(--primary-color) !important; */

    /* --- ZMĚNA: Odstranění záře (glow effect) --- */
    box-shadow: none;
    /* ------------------------------------------- */
}

/* --- OBNOVENÉ: Fading efekt nahoře a dole (Opravená logika) --- */
.fade-overlay-container {
    position: absolute;
    /* Důležité: Překrývá pouze 3D válec, ne celou kartu */
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.fade-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    height: 30%;
    /* Mírně rozšířeno pro plynulejší přechod */
}

.fade-top {
    top: 0;
    /* Přechod z barvy karty na transparentní */
    background: linear-gradient(to bottom, var(--background-color) 60%, rgba(31, 41, 55, 0) 100%);
}

.fade-bottom {
    bottom: 0;
    /* Přechod z transparentní na barvu karty */
    background: linear-gradient(to top, var(--background-color) 60%, rgba(31, 41, 55, 0) 100%);
}

/* 4. Stylování informací o aktivním projektu */
#active-project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* width: 30rem; */
    /* height: 30rem; */
    /* gap: 1rem; */
    /* margin-top: 1rem; */
    text-align: center;
    order: -1
}

/* --- OPRAVA: Barva textu projektu --- */
#project-title {
    color: white;
    /* Nastavení barvy textu na bílou */
    font-size: 1.25rem;
    /* Upravil jsem velikost, aby lépe seděla */
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-img-frame {
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    width: 100%;
    height: 18rem;
    padding: 1rem;
    background-color: var(--background-color-lite);
}

.project-img-frame img {
    width: 100%;
    height: auto;

}

/* ------------------------------------ */


/* 5. Stylování tlačítka */

.project-button-play {
    position: absolute;
    right: 5%;
    bottom: 7%;
    transform: translate(-10%, -10%);
}

.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--color-dark-bg);
    background-color: var(--color-accent);
    transition: background-color 0.15s ease-in-out;
    outline: none;
    text-decoration: none;
    /* Pro odstranění podtržení */
}

.project-button:hover {
    background-color: #34d399;
}

.project-button:focus {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.5);
    position: relative;
}

.instructions-text {
    text-align: center;
    color: #9ca3af;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Styly pro aktivní loader */
.loader-overlay.active {
    visibility: visible;
    opacity: 1;
}

.loader-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 1fr;
    flex-direction: column;
    width: 30%;
    height: 30%;
    justify-items: center;
    align-content: center;
    text-align: center;
    font-size: 1.5rem;
}

.loader {
    width: 60px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: white;
    --_m:
        conic-gradient(#0000 10%, #000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
    margin: 2rem;
}

@keyframes l3 {
    to {
        transform: rotate(1turn)
    }
}


/* Zpráva pro uživatele */
.user-message {
    display: block;
    position: fixed;
    width: 100%;
    top: 0px;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.user-message.active {
    opacity: 1;
}

/* Styly pro samotné notifikační okno */
.notification-box {
    position: fixed;
    display: flex;
    align-items: center;
    bottom: 1rem;
    right: 1rem;
    width: 100%;
    max-width: 30rem;
    padding: 1rem;
    background-color: var(--card-bg-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    gap: 1rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.notification-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.notification-box.hidden {
    display: none;
    /* Skrýt element, když není viditelný */
}

/* Tlačítko pro zavření */
.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    margin-left: auto;
    /* Posune tlačítko doprava */
    padding: 0;
    color: var(--text-color-dark);
}

.close-btn:hover {
    color: var(--link-hover-color);
}

.gift-icon {
    font-size: 1.5em;
    line-height: 1;
}

@media (max-width: 1200px) {

    .workshop {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .workshop-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .workshop-text {
        text-align: justify;
    }

    .workshop-grid img {
        display: none;
    }

    .main-card {
        width: 100%;
        max-width: 30rem;
    }

    .projects-block {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        margin-top: 2rem;
    }

    #active-project-info {
        order: -1;
    }

    .slot-container {
        order: 1;
    }

    .marketing-on-middle {
        display: none;
    }

    .marketing-on-side {
        display: contents;
    }

}

/* Responsivní design pro menší obrazovky */
@media (max-width: 768px) {
    .main-header {
        margin-bottom: unset;
    }

    .intro {
        flex-direction: column;
    }

    .main-header h1 {
        font-size: 2.5rem;
    }

    section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .feature-card {
        width: 100%;
        min-width: unset;
        max-width: unset;
        min-height: 10rem;
    }

    .why-me-img {
        display: none;
    }

    .why-me-text {
        text-align: justify;
    }

    .marketing-minigame-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1rem;
    }

    .marketing-minigame-text {
        text-align: justify;
        padding: 1rem;
    }

    #phaser-game-container {

        width: 400px;
        height: 400px;

    }
}

@media (max-width: 550px) {

    :root {
        --our-offer-card-size: 6rem;
        --section-padding: 1rem;
    }

    .main-header {
        min-height: 200px;
    }

    section {
        padding-left: var(--section-padding);
        padding-right: var(--section-padding);
    }

    .feature-grid {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        display: flex;
        font-size: medium;
    }

    .our-offer-list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .our-offer-card {
        min-width: 100%;
        min-height: var(--our-offer-card-size);
        max-width: 100%;
        max-height: var(--our-offer-card-size);
        gap: 0.5rem;
    }

    .our-offer-card i {
        font-size: 1.5rem;
    }

    .main-card {
        width: auto;
    }

    #phaser-game-container {
        width: 300px;
        height: 300px;
    }

    .contact-grid {
        width: 90%;
    }

    .form-group .submit-button {
        justify-self: center;
        width: 100%;
    }

    .notification-box {
        right: unset;
        left: 50%;
        max-width: 90%;
        opacity: 0;
        transform: translate(-50%, 1rem);
    }

    .notification-box.visible {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}