: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);

}

body {
    display: flex;
    flex-direction: column;


    height: 100vh;
    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 {
    height: 50px;
    flex-grow: 0;
    flex-shrink: 0;

    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);

}


/* #endregion */


/* #region Content */

.content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: scroll;
    z-index: 1;
    padding: 0 20%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;

}

.column {
    flex: 150px;
    padding: 0 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);
}


.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: 10px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-left {
        flex-grow: 1;
    }

    .footer-centre {
        display: none;
    }
}

.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: 10px;
}

.social>* {
    height: 30px;
}


/* #endregion */


/* #region Cookie Banner */
#tracking-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
}

#tracking-banner button {
    margin: 5px;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
}

/* #endregion */