@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

*{
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: "JetBrains Mono", monospace;   
}

body{
    background-color: #f0f0f0;
}

header{
    background-color: #333;
    color: white;
    min-height: 100px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#header-title{
    padding-left: 55px;
}

#header-title h6{
    color: whitesmoke;
    font-weight: 100;
}

header h1{
    font-size: 2.0em;
}

#links{
    padding: 0px 20px 0px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#links a{
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

#links a:not(:last-child)::after {
    content: "|";
    margin-left: 0.75rem;
    opacity: 0.5;
    color: white;
}

#links a:hover{
    color: orange;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    z-index: 9999;
    bottom: 20px;
    left: 20px;
    width: min(380px, calc(100% - 48px));
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    
}

.cookie-content {
    width: 100%;
    max-width: 440px;
    padding: 22px;
    background: rgba(240, 245, 255, 0.64);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(20, 35, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    font-family: inherit;
    box-sizing: border-box;
    pointer-events: auto;
    position: relative;
}

#cookie-close {
    position: absolute;
    top: 4px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #0d131a;
    font-size: 24px;
    cursor: pointer;
}

.cookie-content h2 {
    font-size: 20px;
    margin: 0 0 16px;
    color: #243650;
}

.cookie-content p {
    color: #34465e;
    font-size: 14px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    margin: 22px 0 16px;
}

.cookie-actions button {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: #35445c;
    border: none;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-actions button:hover {
    background: #425571;
}

.cookie-actions button:focus-visible,
.cookie-content a:focus-visible {
    outline: 3px solid #a9c7ff;
    outline-offset: 3px;
}

.cookie-content a {
    color: #0e1625;
    font-size: 13px;
    text-decoration: none;
}

.policy h3{
    font-size: 17px;
}


.policy button, .return-to-previous{
    margin-top: 8px;
    border: none;
    padding: 5px 20px 5px 20px;
    border-radius: 20px;
    box-shadow: 0 0px 20px rgba(102, 93, 83, 0.17);
    background-color: inherit;
    transition: all ease-in-out 0.3s;
    font-size: 12px; 
    margin-bottom: 8px;
}

.policy button:hover, .return-to-previous:hover{
    color: orange;
    background-color: #242b36;
}


@media(max-width: 49em){
    header{
        display: flex;
        flex-direction: column;
    }

    #header-title{
        padding-left: 0px;
    }

    header h1{
        padding: 20px 0px 0px 0px;
    }

    header #links{
        padding: 0px 0px 20px 0px;
    }
    
    .cookie-banner {
        padding: 16px;
    }

    .cookie-actions button {
        padding: 9px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .cookie-content h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cookie-content p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    .cookie-content a {
        font-size: 12px;
    }

    .cookie-content {
        padding: 16px 18px;
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    .cookie-actions {
        flex-direction: column;
    }
}