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

.main-header .automatus a {
    text-decoration: none;
    color: #ffffff;
}

@media (max-width: 768px) {
    .vending-heading h1 {
        margin-top: 130px;
        opacity: 0;
        font-size: 2rem !important;
    }

    .vending-heading h2 {;
        margin-top: 50px !important;
        transform: translateY(50px);
        opacity: 0;
        font-size: 1.2rem !important;
    }

    .scroll-down-indicator a img {
        scale: 0.6 !important
    }

    .machine p {
        font-size: 1.45rem !important;
    }

    .header-section-contents {
        display: none !important;
    }

    /* na mobilech skryjeme všechny SVG uvnitř .machine */
    .vending-machines .machine img {
        display: none !important;
    }
    .vending-machines .machine img {
        margin: auto;
    }
    .vending-machines .machine {
        flex-direction: column;    /* místo row-reverse apod. */
        align-items: center;       /* horizontální centrování */
        width: 100%;               /* nebo auto + padding, ne 100vw */
    }

    /* 2) správně cílit SVG, ne img */
    .vending-machines .machine svg {
        display: block;
        max-width: 80%;            /* volitelně zúžíte */
        height: auto;
    }

    .main-header {
        padding: 0 20px;
    }
}

.main-header {
    cursor: default;
}
.main-header.active {
    cursor: pointer;
}

:root {
    --neon-turquoise: #5CFEF8;
    --neon-pink:      #E41CE0;
    --neon-green:     #0C2D49;
    --neon-red:       #2D0839;
}

.wrapper {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
    margin-top: 60px;
}

.header-section {
    max-width: 100vw;
}

.main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: 1s ease;
    justify-content: space-between;
}

.main-header a:hover{
    scale: 1.2;
    transition: 0.5s ease;
}

.main-header a{
    transition: 0.5s ease;
}

.header-section-contents {
    transform: translateY(-100px);
}

.header-section-contents .contents {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.header-section-contents .contents a {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
}


.header-section-contents .contents a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.7s ease-out;
}

.header-section-contents .contents a:hover::after {
    width: 100%;
}

@media (max-width: 600px) {
    .header-section-contents .contents a {
        font-size: 1rem;
    }
}

.contacts {
    margin-left: auto;
}

.main-header a {
    text-decoration: none;
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    margin-left: 15px;
    margin-right: 15px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
}

.bg {
    width: 100vw;
    height: 160%;
    object-fit: cover;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    opacity: 1;
    z-index: -1;
}

.content {
    width: 90%;
    max-width: 100vw;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.vending-heading {
    font-size: 2rem;
    height: 800px;
}

.vending-heading h1 {
    margin-top: 130px;
    opacity: 0;
    font-size: 3rem;
}

.vending-heading h2 {;
    transform: translateY(50px);
    opacity: 0;
    font-size: 1.8rem;
}

.vending-heading p {
    margin-top: 200px;
    text-shadow:
            0 2px 5px rgba(0,0,0,0.8),
            0 0 10px rgba(0,0,0,0.6);
}

.scroll-down-indicator svg {
    cursor: pointer;
}

.scroll-down-indicator {
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: breathe 1s ease-in-out infinite;
}

@keyframes breathe {
    0% {
        transform: translateY(0px);
        opacity: 0.1;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0px);
        opacity: 0.1;
    }
}

.scroll-hidden {
    animation: none !important;
}

.vending-machines {
    display: flex;
    flex-direction: column;
    gap: 150px;
}

.machine:nth-child(1) {
    margin-top: 80px;
}

.machine {
    width: 100vw;
    opacity: 0;
    transform: translateX(30vw);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: left;
}

.machine:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(-30vw);
}

.machine ul li {
    text-align: left;
    font-size: 1.1rem;
    line-height: 2rem;
}

.machine p {
    text-align: justify;
    font-size: 1.4rem;
    margin: 0;
    max-width: 400px;
    color: white;
    text-shadow:
            0 2px 5px rgba(0,0,0,0.8),
            0 0 10px rgba(0,0,0,0.6);
}

.feature-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 20px;
    width: 350px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.feature-box h3 {
    font-size: 2rem;
}

.feature-box:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    @keyframes turquoise-pulse {
        0%   { box-shadow: 0 0 20px #00e5ff; }
        50%  { box-shadow: 0 0 40px #00e5ff; }
        100% { box-shadow: 0 0 20px #00e5ff; }
    }
    @keyframes pink-pulse {
        0%   { box-shadow: 0 0 20px #ff00ff; }
        50%  { box-shadow: 0 0 40px #ff00ff; }
        100% { box-shadow: 0 0 20px #ff00ff; }
    }
    @keyframes green-pulse {
        0%   { box-shadow: 0 0 20px #00ff00; }
        50%  { box-shadow: 0 0 40px #00ff00; }
        100% { box-shadow: 0 0 20px #00ff00; }
    }
    @keyframes red-pulse {
        0%   { box-shadow: 0 0 20px #ff073a; }
        50%  { box-shadow: 0 0 40px #ff073a; }
        100% { box-shadow: 0 0 20px #ff073a; }
    }

    /* Na mobilech přiřadíme animace jen tam */
    .feature-turquoise {
        animation: turquoise-pulse 2s infinite alternate ease-in-out;
    }
    .feature-pink {
        animation: pink-pulse      2s infinite alternate ease-in-out;
    }
    .feature-green {
        animation: green-pulse     2s infinite alternate ease-in-out;
    }
    .feature-red {
        animation: red-pulse       2s infinite alternate ease-in-out;
    }
}

.feature-turquoise {
    border-color: #00e5ff;
    box-shadow: 0 0 20px #00e5ff;
}

.feature-pink {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
}

.feature-green {
    border-color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
}

.feature-red {
    border-color: #ff073a;
    box-shadow: 0 0 20px #ff073a;
}

.interest-button {
    width: 175px;
    font-size: 1.5rem;
    background-color: #a32402;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: 1s ease;
}

.breathing {
    animation: button-breathe 2s ease-in-out infinite;
}

@keyframes button-breathe {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0px);
    }
}
@keyframes color-breathe {
    0% {
        background-color: #a32402;
    }
    50% {
        background-color: #c500a6;
    }
    100% {
        background-color: #a32402;
    }
}

.interest-button:hover {
    animation: color-breathe 2s ease-in-out infinite;
    scale: 1.15;
    transition: 1s ease;
}

@keyframes pulse {
    0% { stroke-opacity: 0.3; }
    100% { stroke-opacity: 1; }
}

.machine img {
    width: 350px;
    height: 350px;
}

.vending-footer-neon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.vending-footer-neon {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    height: auto;
}

.vending-footer {
    margin-top: 20vh;
    min-height: 100vh;
}

.vending-footer p {
    opacity: 0;
    font-size: 1.3rem;
    text-shadow:
            0 2px 5px rgba(0,0,0,0.8),
            0 0 10px rgba(0,0,0,0.6);
}

.footer-content {
    text-align: center;
    margin-top: 50px;
}

.footer-content p {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.social-media a svg {
    width: 40px;
    height: 40px;
    opacity: 0;
}

/* Barvy ikon */
.social-media a[aria-label="Facebook"] svg {
    fill: #1877F2; /* oficiální modrá Facebooku */
}

.social-media a[aria-label="Twitter"] svg {
    fill: #1DA1F2; /* oficiální modrá Twitteru */
}

.social-media a[aria-label="Instagram"] svg {
    fill: #E1306C; /* oficiální růžová Instagramu */
}

.split-text .word {
    display: inline-block;
    white-space: nowrap;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}
