/* Reset CSS */
/* (Include your reset CSS here) */

/* Fluid Typography CSS */

html {
    font-size: 100%;
}
@media (max-width:759px) {
    body {
        font-size: calc(2vh);
        width: 90%;
    }
    #caseStudy img {
        width: 100%;
        height: auto;
    }
    
    /* COOKIES */
    #cookie-declaration {
        display: none;
        position: fixed;
        bottom: 0;
        background-color: #f9f9f9;
        padding: 2vh;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #ddd;
        z-index: 1000;
        width: calc(100% - 4vh);
        color: #222;
        font-size: calc(var(--base-font-size)* 0.75);
        left: 0;
        right: 0;
    }
    #cookie-declaration h2{
        font-size: calc(var(--base-font-size)* 1);
    }
    #cookie-declaration p{
        font-size: calc(var(--base-font-size)* 1);
    }
    div#cookie-update {
        display: none;
        position: fixed;
        bottom: 2vh;
        background-color: rgba(0, 0, 0, .75);
        cursor: pointer;
        z-index: 1000;
        color: #ccc;
        font-size: calc(var(--base-font-size)* 0.75);
        padding: 0;
        left: 2vh;
        width: 7.5vh;
        height: 7.5vh;
        background: url(/assets/img/cookie.svg);
    }
    p#cookie-update-title{
        display: none;
    }
    
    .cookie-category-header label span {
        width: 90%;
    }

    .cookie-category {
        /* width: 30%; */
        margin: auto auto 1vh auto;
        /* min-width: 300px; */
        /* max-width: 600px; */
        display: none;
    }

    .cookie-category-header {
        display: block;
    }

    .cookie-category label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 10px;
        background-color: #e9e9e9;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .cookie-category label:hover {
        background-color: #dcdcdc;
    }

    .cookie-category .toggle-details {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        font-size: 0.9em;
        color: #333;
        font-weight: bold;
        text-decoration: underline;
    }

    .cookie-category .toggle-details:hover {
        color: #0056b3;
    }
    .cookies-details {
        display: none;
    }
    .cookie-category ul {
        list-style-type: none;
        padding: 10px 0 0;
        margin: 0;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 34px;
        height: 14px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 14px;
    }
    .slider.active {
        background-color: #2196F3;
    }

    .slider.active:before {
        transform: translateX(20px);
    }
    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 0;
        bottom: 0;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider {
        background-color: #2196F3;
    }

    input:checked + .slider:before {
        transform: translateX(20px);
    }

    .button-container {
        margin-top: 2vh;
        display: flex;
        justify-content: space-between;
    }
    div#cookie-declaration label {
        margin: 0 0 1vh 0;
        padding: 2vh;
    }
    .button-container button {
        padding: 1vh 2vh;
        font-size: calc(var(--base-font-size)* 0.75);
        border: none;
        border-radius: var(--base-corner);
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin: auto;
    }

    .btn {
        text-transform: uppercase;
    }

    .btn-primary {
        background-color: #333;
        color: white;
    }

    .btn-primary:hover {
        background-color: #0056b3;
    }

    .btn-secondary {
        background-color: #6c757d;
        color: white;
    }

    .btn-secondary:hover {
        background-color: #5a6268;
    }

    #status-message {
        display: none;
        margin-top: 10px;
        font-size: 0.9em;
        color: green;
        text-align: center;
    }

    /* END COOKIES */
    
    
    section#hero img {
        width: calc(100%);
        height: auto;
        margin: 0;
    }
    
}

@media (min-width:760px) {
    body {
        font-size: calc(0.75vw);
        width: 40%;
    }
    #caseStudy img {
        width: 100%;
        height: auto;
    }
    /* COOKIES */
    #cookie-declaration {
                display: none;
        position: fixed;
        bottom: 0;
        background-color: #f9f9f9;
        padding: 2vw;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
        border-top: 1px solid #ddd;
        z-index: 1000;
        width: calc(22vw);
        color: #222;
        font-size: calc(var(--base-font-size)* 0.75);
        left: 0;
        right: 0;
        margin: auto;
    }
    #cookie-declaration h2{
        font-size: calc(var(--base-font-size)* 0.5);
    }
    #cookie-declaration p{
        font-size: calc(var(--base-font-size)* 0.45);
        margin-bottom: calc(var(--base-font-size)* 1);
    }
    div#cookie-update {
        display: none;
        position: fixed;
        bottom: 2vw;
        cursor: pointer;
        z-index: 1000;
        color: #ccc;
        font-size: calc(var(--base-font-size)* .75);
        padding: 0;
        left: 2vw;
        width: 3vw;
        height: 3vw;
        background: url(/assets/img/cookie.svg);
        background-size: 3vw;
    }
    p#cookie-update-title{
        display: none;
    }
    
    .cookie-category-header label span {
        width: 90%;
    }

    .cookie-category {
        /* width: 30%; */
        margin: auto auto 0.5vw auto;
        font-size: calc(var(--base-font-size)* 0.35);
        display: none;

    }

    .cookie-category-header {
        display: block;
    }

    .cookie-category label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 10px;
        background-color: #e9e9e9;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }

    .cookie-category label:hover {
        background-color: #dcdcdc;
    }

    .cookie-category .toggle-details {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        font-size: 0.9em;
        color: #333;
        font-weight: bold;
        text-decoration: underline;
    }

    .cookie-category .toggle-details:hover {
        color: #0056b3;
    }
    .cookies-details {
        display: none;
    }
    .cookie-category ul {
        list-style-type: none;
        padding: 10px 0 0;
        margin: 0;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 34px;
        height: 14px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 14px;
    }
    .slider.active {
        background-color: #2196F3;
    }

    .slider.active:before {
        transform: translateX(20px);
    }
    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 0;
        bottom: 0;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider {
        background-color: #2196F3;
    }

    input:checked + .slider:before {
        transform: translateX(20px);
    }

    .button-container {
        margin-top: 2vw;
        display: flex;
        justify-content: space-between;
    }

    .button-container button {
        padding: 0.5vw 1vw;
        font-size: calc(var(--base-font-size)* 0.35);
        border: none;
        border-radius: var(--base-corner);
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin: auto;
    }

    .btn {
        text-transform: uppercase;
    }

    .btn-primary {
        background-color: #333;
        color: white;
    }

    .btn-primary:hover {
        background-color: #0056b3;
    }

    .btn-secondary {
        background-color: #6c757d;
        color: white;
    }

    .btn-secondary:hover {
        background-color: #5a6268;
    }

    #status-message {
        display: none;
        margin-top: 10px;
        font-size: 0.9em;
        color: green;
        text-align: center;
    }

    /* END COOKIES */
    
    section#hero img {
        width: calc(100%* 2);
        height: auto;
        margin: 0 -50%;
    }
    
}

body {
    line-height: 1.6;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    color: #666;
}

/* Headings */
h1 {
    font-size: 250%;
    line-height: 1.5;
    text-align: center;
}
h1 span {
    font-size: 28%;
}

h2 {
    font-size: 175%;
    line-height: 1.5;
    margin-top: 8%;
}

h3 {
    font-size: 150%;
    line-height: 1.5;
    color: #333;
}

/* Paragraphs and Lists */
p, li {
    font-size: 1;
}

ul {
    list-style-type: disc;
    margin-left: 1;
}

/* Emphasis */
em {
    color: #555;
}

/* Section scroll */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state of the section */
section.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Hero */
section#hero {
    padding: 20% 0;
}



/* Testimonials */
#carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 2% 12%;
    /* margin: 0 10px; */
    /* border-left: 5px solid #ccc; */
    min-width: 100%;
    box-sizing: border-box;
}

#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ccc;
    border: none;
    padding: 10px;
    cursor: pointer;
}

#prev { left: 10px; }
#next { right: 10px; }

/* Contact Section */
.contact {
    text-align: center;
    margin-top: 40px;
}

.contact a {
    color: #0066cc;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}