/* Import custom font */
@font-face {
    font-family: 'Bicyclette';
    src: url('../lib/assets/fonts/Bicyclette-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    /* Prevent horizontal overscroll */
    overscroll-behavior-x: none;
    margin: 0;
    background-size: 100% 100%;
}

.center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.contain {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stretch {
    display: block;
    width: 100%;
    height: 100%;
}

.cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

.bottomLeft {
    position: absolute;
    bottom: 0;
    left: 0;
}

.bottomRight {
    position: absolute;
    bottom: 0;
    right: 0;
}

.hidden {
    display: none;
    visibility: hidden;
}

.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    /* High z-index */
    display: flex;
    justify-content: center;
    align-items: center;
}

.consent-div {
    position: fixed;
    width: 85%;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #eee;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    top: auto;
    font-family: 'Bicyclette', Arial, Helvetica, sans-serif;
}

.row-div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.row-div h3 {
    margin-right: auto;
}

#accept-btn,
#save-btn {
    background-color: #103900;
}

#essential-btn {
    background-color: #FF8C00;
}

#cancel-btn {
    background-color: #ff0000;
}

.btn-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
}

.btn {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    font-size: 16px;
    background-color: #777;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.inline {
    display: block;
    margin-right: 0;
}

h2 {
    margin-block-start: 0.5em;
    margin-block-end: 0em;
}

h3 {
    margin-block-start: 0.5em;
    margin-block-end: 0em;
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
}

input:checked+.slider {
    background-color: #2196f3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Make detailed popup stay in center (override for details popup only) */
#consent-popup-details {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    bottom: auto;
}

/* Keep main consent popup centered */
#consent-popup {
    top: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
}

/* Media query for larger screens if needed */
@media (min-width: 768px) {
    .consent-div {
        width: 400px;
        padding: 25px;
    }
}