@font-face {
    font-family: 'Congenial';
    src: url('../fonts/Congenial-Regular.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'Congenial-Bold';
    src: url('../fonts/Congenial-Bold.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'Lorrach';
    src: url('../fonts/Lorrach-Heavy.otf') format('opentype');
}

:root {
    --milka-purple: #3B2774;
    --milka-light-purple: #7D69AF;
    --milka-blue: #8BD1F0;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Congenial', sans-serif;
    background-color: var(--milka-purple);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url('../images/bg-dt.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    body {
        background-image: url('../images/bg-m.jpg');
        background-size: contain;
        background-repeat: repeat-y;
    }
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80vh;
}

.content {
    z-index: 2;
    position: relative;
    max-width: 600px;
    flex: 1;
    padding-right: 2rem;
    padding-top: 1rem;
}

.logo {
    max-width: 300px;
    margin-bottom: 1rem;
}

.main-title {
    font-family: 'Lorrach', sans-serif;
    font-size: 3.3rem;
    text-transform: uppercase;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.subtitle {
    display: block;
    font-family: 'Congenial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    text-transform: uppercase;
    color: var(--milka-blue);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.description {
    font-family: 'Congenial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.social-img {
    width: 100%;
    height: auto;
}

.social-icon:hover {
    transform: scale(1.1);
}

.language-selector {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    z-index: 300;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.language-selector.dropdown {
    flex-direction: column;
    gap: 8px;
}

.language-selector.dropdown .flag-container:not(.active) {
    display: none;
}

.language-selector.dropdown:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-selector.dropdown:hover .flag-container {
    display: flex;
    position: relative;
    z-index: 350;
}

.flag-container {
    cursor: pointer;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.flag-container.active {
    opacity: 0.5;
}

.flag-container:hover {
    border: 2px solid #fff;
}

.flag {
    width: 30px;
    height: auto;
}

.desktop-hero-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mobile-hero-container {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.hero-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 100;
    box-shadow: 0px 2px 4px 0px rgba(62, 52, 69, 0.04), 0px 24px 48px -8px rgba(62, 52, 69, 0.12);
    display: flex;
    justify-content: center;
    padding: 32px 25px 32px;
}

.cookie-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    margin: 0 auto; /* Center the content horizontally */
}

.cookie-logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cookie-logo {
    height: 40px;
    width: auto;
}

.cookie-text {
    color: var(--milka-light-purple);
    font-family: 'Congenial', sans-serif;
    font-size: 18px;
    line-height: 1.11;
    letter-spacing: -0.05em;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 42px;
    margin-top: 10px;
}

.cookie-accept, .cookie-settings {
    padding: 8px 8px 5px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Congenial-Bold', sans-serif;
    font-size: 18px;
    line-height: 1.11;
    text-transform: uppercase;
    color: var(--milka-light-purple);
    transition: all 0.3s ease;
}

.cookie-accept {
    background-color: var(--milka-blue);
    border: none;
}

.cookie-settings {
    background-color: transparent;
    border: 1.9px solid var(--milka-light-purple);
}

.cookie-accept:hover {
    background-color: #6ab8d8;
}

.cookie-settings:hover {
    background-color: rgba(125, 105, 175, 0.1);
}

/* Cookie Settings Modal Styles */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-settings-content {
    background-color: var(--white);
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-title {
    color: var(--milka-purple);
    font-family: 'Lorrach', sans-serif;
    font-size: 24px;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--milka-light-purple);
    cursor: pointer;
}

.cookie-settings-body {
    padding: 20px;
}

.cookie-settings-description {
    color: var(--milka-light-purple);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
}

.cookie-category {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    background-color: #f9f9f9;
}

.cookie-category-title-container {
    flex: 1;
}

.cookie-category-title {
    color: var(--milka-purple);
    margin: 0 0 5px 0;
    font-size: 18px;
}

.cookie-category-description {
    color: var(--milka-light-purple);
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-toggle-container {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
    background-color: var(--milka-blue);
}

input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-settings-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cookie-settings-save {
    background-color: var(--milka-blue);
    color: var(--milka-light-purple);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-family: 'Congenial-Bold', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-save:hover {
    background-color: #6ab8d8;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .main-wrapper {
        min-height: 70vh;
    }

    .hero-image {
        max-height: 70vh;
    }

    .cookie-banner {
        padding: 28px 20px 28px;
    }

    .cookie-content {
        gap: 20px;
    }

    .cookie-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .logo {
        max-width: 200px;
        margin: 0;
    }

    .main-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .desktop-hero-container {
        display: none;
    }

    .mobile-hero-container {
        display: flex;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .hero-image {
        max-height: 50vh;
    }

    .language-selector {
        top: 1rem;
        right: 1rem;
    }

    .flag {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }


    .hero-content {
        max-width: 90%;
    }

    .description {
        font-size: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-accept, .cookie-settings {
        font-size: 16px;
        padding: 6px 6px 4px;
    }
}


