/* Cookie banner styles */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Set height to 60px */
    background-color: #cda639;
    color: black;
    padding: 12px 20px; /* Add padding */
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align all items vertically in the middle */
    z-index: 999;
    overflow: hidden; /* Hide content that exceeds the maximum height */
}

#cookie-banner .cookie-banner-title {
    flex: 1;
    text-align: left;
    align-items: center; /* Align title vertically in the middle */
    white-space: nowrap; /* Prevent title from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    font-size: 1.3em;
    min-width: 170px;
}

#cookie-banner .cookie-banner-text {
    flex: 4;
    text-align: center;
    white-space: normal; /* Prevent text from wrapping */
    overflow: visible; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    font-size: 0.9em;
}

#cookie-banner .cookie-banner-buttons {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Align buttons vertically in the middle */
    gap: 10px;
}

#cookie-banner .cookie-button {
    padding: 10px 20px; /* Adjust button padding */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    min-width: 160px;
}

#cookie-banner .cookie-button.accept {
    background-color: #222;
    color: white;
}

#cookie-banner .cookie-button.more-info {
    background-color: rgba(255, 255, 255, 0.3); /* White background with 30% transparency */
    color: black;
}

/* settings-popup styles */
#settings-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #cda639;
    color: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.settings-content {
    text-align: left;
}

.section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section h3 {
    margin: 0;
    color: #fff;
}

.section-content {
    margin-top: 0.5em; /* Add margin between section header and content */
    max-height: 2.5em; /* Set max height for content */
    overflow-y: auto; /* Add vertical scrollbar if needed */
    margin-bottom: 8px;
    font-size: 0.8em;
    line-height: 1.4em;
}

.settings-content input[type="checkbox"] {
    margin-left: 10px; /* Add some spacing between the  header and the checkbox */
    position: relative; 
    width: 3em;
    height: 1.5em;
    -webkit-appearance: none;
    background: #c6c6c6;
    outline: none;
    border-radius: 20px;
    box-shadow: inset 0 0 5px rgba(0,0,0,.2);
    transition: .5s;
}

.settings-content input:checked[type="checkbox"] {
    background: green;
}

.settings-content input[type="checkbox"]:before {
    content: '';
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    border-radius: 20px;
    top: 0;
    left: 0;
    background: #fff;
    transform: scale(1.1);
    bax-shadow: 0 2px 5px rgba(0,0,0,.2);
    transition: .5s;
}

.settings-content input:checked[type="checkbox"]:before {
    left: 1.5em;
}

.settings-content input[type="checkbox"]:disabled {
    background-color: rgba(0, 128, 0, 0.3);
}


hr {
    background-color:#22222222;
    border: 0;
    margin: 20px 0;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#settings-popup button {
    background-color: #222;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 10px; /* Add margin between buttons */
    max-height: 46px;
    min-width:160px;
}

#settings-popup button:hover {
    background-color: #444;
}


/* Responsive styles */
@media (max-width: 1200px) {
    #cookie-banner {
        padding: 10px 20px; /* Increase padding */
        height: auto;
        display: block;
    }

    #cookie-banner .cookie-banner-title {
       text-align: center;
    }

    #cookie-banner .cookie-banner-text,
    #cookie-banner .cookie-banner-buttons {
        width: 100%; /* Set full width for smaller screens */
        text-align: center; /* Center-align text and buttons */
        display: inline-block;
        white-space: normal;
    }

    #cookie-banner .cookie-banner-buttons {
        justify-content: space-between; /* Add space between buttons */
    }

    #cookie-banner .cookie-button {
        padding: 12px 8px; /* Adjust button padding */
        min-width: 150px;
    }
    
    #settings-popup button {
        min-width:120px;
    }
}



