@font-face {
    font-family: 'HorizonOutlined';
    src: url('fonts/horizon_outlined.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Horizon';
    src: url('fonts/horizon.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background: url('../images/bg_new.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: 'Horizon', sans-serif;
    line-height: 1.6;
}

/* Pozadí pro mobily a tablety */
@media (max-width: 1000px) {
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: url('../images/bg_new_phone.png');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        background-color: black;
        z-index: -1;
    }
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
}

.hero h1 {
    font-family: 'HorizonOutlined', sans-serif;
    font-size: 6rem;
    letter-spacing: 2px;
    line-height: 1.2;
    color: white;
}

.hero h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.hero {
    font-size: 1.3rem;
    margin-top: 1rem;
}

.motto {
    padding: 2.5rem 0 0 0;
}

.hero .motto {
    width: 40%;
}

.hero .dealer {
    margin-top: 5rem;
}

.dealer {
    font-size: 1.05rem;            /* menší písmo */
    text-align: right;          /* zarovnání doprava */
    width: 100%;                /* roztáhnout do šířky kontejneru */
    padding-right: 2rem;        /* trocha vnitřního odsazení zprava */
    color: white;              /* pro jistotu */
    margin-right: 40%;
}

.quote {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.6);
}

.quote .author {
    margin-top: 1rem;
    font-style: normal;
    font-weight: bold;
}

.about {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    font-size: 3rem;
    font-family: 'HorizonOutlined', sans-serif;
    margin-bottom: 2rem;
}

.about p {
    font-size: 0.9rem;
    text-align: center;
}

.about-split {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 2rem 0;
}

.about-text {
    flex: 1 1 50%;
}

.about-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
}

.author-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Responsivita */
@media (max-width: 768px) {
    .about-split {
        flex-direction: column;
    }

    .about-text, .about-image {
        flex: 1 1 100%;
    }
    .hero .motto {
        width: 80%;
    }
    .motto {
        width: 100%;
        padding: 2rem 0;
        font-size: 0.9rem !important;
    }
    .dealer {
        padding: 2rem 0 2rem 0;
        font-size: 0.73rem !important;
        margin-right: 12.5% !important;
    }
}

/* Responsivita */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem !important;
    }

    .hero h2 {
        font-size: 1.15rem !important;
    }

    .about p {
        font-size: 0.7rem;
    }

    .quote {
        font-size: 1rem;
    }

    #contact p {
        font-size: 0.65rem !important;
    }

    .footer p {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2,
    .hero .motto,
    .hero .dealer {
        font-size: 1rem;
    }
}

.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 1rem;
    margin-top: 4rem;
    border-top: 2px solid white;
    box-shadow: 0 -2px 10px white;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow:
        0 0 5px white,
        0 0 10px white;
}

.footer a:hover {
    color: black;
    text-shadow:
        0 0 5px white,
        0 0 10px white,
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.footer:hover {
    box-shadow:
        0 0 10px white,
        0 0 20px white,
        0 0 30px white;
    border-top: 2px solid white;
}

.contest-section {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 4rem auto;
    max-width: 600px;
    color: white;
    text-align: center;
    animation: ease-in-out infinite;
}

.contest-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.contest-section p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: white;
}

.contest-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
}

.contest-form label {
    text-align: left;
    font-size: 1rem;
    color: white;
}

.contest-form input[type="text"],
.contest-form input[type="email"] {
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    box-shadow: inset 0 0 5px white;
}

.contest-form input:focus {
    outline: none;
    box-shadow: 0 0 10px white;
}

.contest-form button {
    padding: 0.75rem;
    font-family: "Horizon", sans-serif;
    font-size: 1rem;
    background-color: black;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow:
        0 0 5px white,
        0 0 10px white;
    transition: all 0.3s ease;
}

.contest-form button:hover {
    background-color: white;
    color: black;
    box-shadow:
        0 0 10px white,
        0 0 20px white;
}

.center-button {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.collection button {
    padding: 1.5rem;
    font-family: "Horizon", sans-serif;
    font-size: 1.8rem;
    background-color: black;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow:
        0 0 5px white,
        0 0 10px white;
    transition: all 0.3s ease;
}

.collection button:hover {
    background-color: white;
    color: black;
    box-shadow:
        0 0 10px white,
        0 0 20px white;
}

.thanks-message {
    margin-top: 1rem;
    color: #78de20;
    font-weight: bold;
}

/* Responsivita */
@media (max-width: 768px) {
    .contest-section {
        padding: 2rem 0.5rem;
        width: 90%;
    }

    .contest-section h2 {
        font-size: 1rem;
    }
    .contest-section p, .contest-form label, .contest-form button {
        font-size: 0.8rem !important;
    }
    .collection button {
        font-size: 1.2rem !important;
    }

    .contest-form label,
    .contest-form input,
    .contest-form button {
        font-size: 1rem;
    }
}

.theme-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

table {
    width: 90%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow:
        0 0 10px white,
        0 0 20px white;
    border-radius: 10px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.register h1, .register h2 {
    text-align: center;
    margin: 1rem 0;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

th {
    background-color: rgba(234, 0, 0, 0.3);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

tr:hover {
    background-color: rgba(234, 0, 0, 0.1);
}

.admin-login {
    max-width: 400px;
    margin: 10vh auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    border: 2px solid white;
    box-shadow:
        0 0 8px white,
        0 0 20px white,
        inset 0 0 10px white;
    text-align: center;
}

.admin-login h1 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.admin-login form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-login label {
    color: white;
    text-align: left;
}

.admin-login input {
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    box-shadow: inset 0 0 5px white;
}

.admin-login input:focus {
    outline: none;
    box-shadow: 0 0 10px white;
}

.admin-login button {
    padding: 0.75rem;
    font-size: 1.1rem;
    font-family: "Horizon", sans-serif;
    background-color: white;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow:
        0 0 5px white,
        0 0 10px white;
}

.admin-login button:hover {
    background-color: #ff4444;
    color: white;
    box-shadow:
        0 0 10px #ff4444,
        0 0 20px #ff4444;
}

#popup {
    position: fixed;
    text-align: center;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 10px;
    z-index: 9999;
    box-shadow:
        0 0 5px white,
        0 0 10px white,
        0 0 20px white;
    transform: translateY(-200%);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#popup.popup-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

#popup.popup-hidden {
    transform: translate(-50%, -200%);
    opacity: 0;
}

.note a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow:
        0 0 5px white,
        0 0 10px white;
}

.note a:hover {
    color: black;
    text-shadow:
        0 0 5px white,
        0 0 10px white,
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.product-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.product-section h2 {
    font-family: 'HorizonOutlined', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 2rem 0;
}

.image-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-image {
  max-width: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px white;
}

.product-gallery button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
}

.product-gallery .prev {
    left: 0;
}

.product-gallery .next {
    right: 0;
}

.product-description {
    font-size: 0.9rem;
    color: white;
    text-align: justify;
    margin-top: 1rem;
}

/* Responsivita */
@media (max-width: 768px) {
    .product-section h2 {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.8rem;
    }

    .product-gallery button {
        font-size: 1.5rem;
    }
}
