:root {
    --bg-color: rgb(255, 255, 255);
    --dialogue-bg-color: rgb(220, 220, 220);
    --dialogue-text-color: rgb(60, 60, 60);
    --dialogue-button: rgb(100, 100, 100);
    --text-color: rgb(60, 60, 60);
    --text-color-hover: rgb(80, 80, 80);
    --text-color-active: rgb(100, 100, 100);

}

html {
    height: 100%;
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
    overflow: hidden;


    background-color: var(--bg-color);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;


}

/* #region Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: 50px;
    flex-grow: 0;
    flex-shrink: 0;
    overflow: visible;

    display: flex;
    flex-direction: row;

    background-color: var(--bg-color);
    /* background-color: red; */

    z-index: 1000;
}

header::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, transparent, var(--bg-color));
    z-index: -1;
}

nav {
    width: 25%;
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    /* background-color: rgb(120, 200, 120); */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: flex-end;

}

nav ul li {

    margin-right: 10px;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color);
    padding: 10px;
    font-size: 24px;
}

nav ul li a:hover {
    color: var(--text-color-hover);

}

#nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: auto 12px;
    flex-shrink: 0;
    z-index: 1001;
}

#nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-toggle.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

#nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#nav-toggle.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

#header-logo {
    flex-shrink: 0;
}


/* #endregion */


/* #region Content */

.content {
    display: flex;
    flex-direction: column;

    flex-grow: 1;
    overflow-y: auto;
    z-index: 1;
    padding: 75px 15%;


}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 4px;
}

.column {
    flex: 1;
    min-width: 250px;
    margin: 4px;
}

.column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;

}

.tile {
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
    opacity: 0.7;
}


.tile.loading {
    filter: blur(5px);
}


.tile:hover {
    opacity: 1;
}

a.tile {
    display: block;
    margin-top: 8px;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--text-color);
}

.tile>svg {
    width: 100%;
    height: auto;
    display: block;
    /* important for Safari */
}

.content>img {
    max-width: 80%;
    height: auto;

}

.breathing-space {
    min-height: 200px;
}

/* #endregion */


/* #region Newsletter */
.newsletter-form {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: 5px;
    padding: 20px;
    background-color: var(--dialogue-bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    margin-bottom: 12px;
}

.form-line label {
    flex: 1;
    font-weight: bold;
    color: var(--text-color);
    text-align: left;
}

.form-line input {
    flex: 2;
    padding: 8px;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
}

.form-line input[type="checkbox"] {
    flex: 1;
}

form>button {
    margin-top: 12px;
    justify-content: stretch;
    align-items: center;
    padding: 12px 16px;
    border: none;
    background-color: var(--dialogue-button);
    border-radius: 4px;
}

form>button:disabled {
    background-color: var(--dialogue-button);
    opacity: 0.5;
    cursor: not-allowed;
}

.form-line input:focus {
    outline: none;
    border-color: var(--text-color-active);
}

/* #endregion */


/* #region footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    height: 50px;
    flex-grow: 0;
    flex-shrink: 0;
    overflow: visible;

    background-color: var(--bg-color);
    z-index: 500;

    display: flex;
    flex-direction: row;

}

.footer::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 50px;

    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 499;
}

.footer-left {
    width: 25%;
    flex-grow: 0;
    display: flex;
    justify-content: flex-start;
}

.footer-centre {
    flex-grow: 1;
    width: 25%;


    align-items: center;
    text-align: center;
    padding: 2px;
    font-size: 8px;
}

.footer-right {
    right: 0;
    width: 25%;
    flex-grow: 0;
    
    display: flex;
    justify-content: flex-end;
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 8px;
    margin: 5px;
}

.social>* {
    height: 30px;
}


@media (max-width: 1024px) {
    .content {
        padding: 80px 10%;
    }

    .column {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 768px) {
    .content {
        padding: 100px 5%;
    }

    .column {
        flex: 0 0 100%;
    }

    .column img,
    a.tile {
        margin-top: 4px;
    }

    .social>* {
        width: 20px;
        height: 20px;
    }

    #header-logo>* {
        width: auto;
        height: 30px;
    }

    .footer-centre {
        font-size: 6px;
    }

    #nav-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        padding: 10px 0;
        transform-origin: top center;
        transform: scaleY(0.85);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
        z-index: 999;
    }

    nav.open ul {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0s;
    }

    nav ul li {
        margin-right: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
        font-size: 18px;
        min-height: 44px;
        box-sizing: border-box;
    }
}

/* #endregion */




/* #region Tracking Banner */

#tracking-banner {
    position: absolute;
    top: 60%;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 220, 220, 0.95);
    padding: 12px 20px;

    justify-content: center;
    align-items: center;
    z-index: 1000;

    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

#tracking-heading {
    font-size: 1.2rem;
    font-weight: bold;
    color: rgb(60, 60, 60);
    margin: 0;
}

#tracking-text {
    color: rgb(60, 60, 60);
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: rgba(60, 60, 60, 0.5) rgba(220, 220, 220, 0.95);
    flex-grow: 1;
    flex-shrink: 1;
    min-height: 0;
    padding: 10px;
}

#tracking-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-shrink: 0;
    flex-grow: 1;
}

#tracking-buttons button {
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    opacity: 0.7;
    color: rgb(60, 60, 60);
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
}

#tracking-buttons button:hover {
    opacity: 1;
}

#tracking-accept {
    background: rgb(150, 250, 150);
}

#tracking-decline {
    background: rgb(250, 150, 150);
}

#tracking-choose-again {
    position: fixed;
    bottom: 60px;
    right: 12px;
    z-index: 900;
    background: var(--dialogue-bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

#tracking-choose-again:hover {
    opacity: 1;
}


/* #endregion */