/* Styles for the whole consent banner */
.consent-banner {
    z-index: 100000; /* Ensure the overlay is above other elements */
    position: fixed;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%; /* Set the width to 95% of the viewport width */
    height: auto; /* Adjust the height as needed, or remove this property */
    max-width: none; /* Remove the maximum width restriction */
    background-color: #f0f0f0;
    padding: 1em; /* Adjust the padding as needed for mobile devices */
    border: 2px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 0; /* Remove margin to fit the screen width */
    min-height: auto; /* Adjust the minimum height as needed, or remove this property */
    min-width: 95%; /* Set the minimum width to 95% of the viewport width */
}

.cross {
    position: absolute;
    right: 1em;
    top: 1em;
    height: 4em;
    width: 4em;
    text-align: center;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    background-color: #FAFAFA;
    cursor: pointer;
}

.cross p {
    margin: 0;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    line-height: 4em;
    cursor: pointer;
}

/* Rest of your CSS remains the same */


/* Styles for the consent group */
.consent-group {
	position:inline-block;
	margin:0.5em;
	padding-top:1em;
    display: flex;
    align-items: center;
	overflow-wrap:break-word;
}

/* Styles for the consent text */
.consent-text {
	position:inline-block;
	height:1em;
	margin:0.5em;
	padding:0.3em 0.3em 0.3em 0.3em ;
    display:flex;
    align-items: center;
	overflow-wrap:break-word;
	text-align:left;
	line-height:1.5em;
	
}

/* Styles for the consent group */
.consent-heading {
	position:inline-block;
	margin:0.5em;
	padding:0.3em 0.3em 0.3em 0.3em ;
    display: flex;
    align-items: center;
	overflow-wrap:break-word;
}

/* Styles for the slider button */
.slider {
	position:inline-block;
    position: relative;
    display: inline-block;
    width: 3em;
    height: 1.5em;
    border-radius: 1em;
    background-color: #ccc;
	margin-right:0.5em;
	cursor:pointer;
}


.slider:before {
    content: '';
    position: absolute;
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    background-color: white;
    top: 1px;
    left: 1px;
    transition: 0.3s;
}



input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:required:checked + .slider  {

	    background-color: #21F396;
}


input[type="checkbox"]:checked + .slider {
    background-color: #2196F3;
}


input[type="checkbox"]:checked + .slider:before {
    transform: translateX(1.5em);
}

/* Styles for the accept button */
#accept-btn {
	position:inline-block;
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Styles for the accept button */
#decline-btn {
	position:inline-block;
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #EE2210;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Styles for the warning message */
.warning-message {
    display: none;
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Styles for other content (h2, p, etc.) */
h2, p {
    margin:0;

}

/* Styles for the background overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    backdrop-filter: blur(5px); /* Adjust the blur effect as needed */
    z-index: 1000; /* Ensure the overlay is above other elements */
    display: none; /* Initially hidden */
    pointer-events: none; /* Make the overlay non-clickable */
}

/* Styles for the navigation links when the consent banner is displayed */
.consent-banner.active + .background-overlay + nav ul li a {
    pointer-events: none; /* Disable pointer events on navigation links */
}
