﻿/* Overlay is invisible by default (but still blocks interaction) */

#cookie-consent-overlay {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0); /* Completely transparent at load, prevents visible flash */
    z-index: 2;
    cursor: pointer;
}

    #cookie-consent-overlay #cookie-consent-text {
        display: none; /* Hide the actual text of the cookie message until needed */
        position: absolute;
        top: 50%;
        left: 50%;
        color: white;
        background-color: inherit;
        padding: 3em;
        max-width: 40%;
        max-height: 50%;
        overflow: auto;
        transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
    }

#cookie-consent-text button {
    margin-right: 7px;
}

/* Make the overlay visible */

#cookie-consent-overlay.visible {
    background-color: rgba(0, 0, 0, 0.75);
}

    #cookie-consent-overlay.visible #cookie-consent-text {
        display: block;
    }

/* Make the overlay responsive */

@media only screen and (max-width: 1650px) {
    #cookie-consent-overlay #cookie-consent-text {
        width: 60%;
        max-width: 60%;
    }
}

@media only screen and (max-width: 1100px) {
    #cookie-consent-overlay #cookie-consent-text {
        width: 80%;
        max-width: 80%;
    }
}

@media only screen and (max-width: 920px) {
    #cookie-consent-overlay #cookie-consent-text {
        max-height: 90%;
    }
}

#cookie-consent-text h1 {
    margin-bottom: 1.4rem;
}

@media only screen and (max-width: 920px) {
    #cookie-consent-text h1 {
        font-size: 2.6rem;
    }
}

#cookie-consent-text p.cookies-terms {
    margin-bottom: 2rem;
}