:root {
    --bg-dark: #424242;
    --bg-light: #faf0e6;
    --text-color-dark: #dbd6d6;
    --text-color-light: #232726;
    --heading-color-dark: #dbd6d6;
    --heading-color-light: #232726;

    --bg: var(--bg-dark);
    --text-color: var(--text-color-dark);
    --heading-color: var(--heading-color-dark);
    --color-invert: 0;
    --full-height: 100lvh;
}

html {
    font-size: 18px;
    overflow-wrap: break-word;
    font-family: 'Quattrocento Sans';
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg);
}

/* Cover */
.cover {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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


img {
    object-fit: cover;
}


/* Navigation */

.navbar {
    font-size: 1.2em;
    font-family: 'Quattrocento Sans';
    text-decoration: none;
    color: #fff;
    padding: 20px;
    overflow: hidden;
}

/* Navbar links */
.navbar a {
    color: #f2f2f2;
    text-align: right;
    padding: 16px;
    text-decoration: none;
}

/*main */
main {
    position: relative;
    width: 100%;
    overflow: hidden;
}

main .content {
    position: relative;
    width: 97.5%;
    max-width: 1000px;
    margin: auto;
    padding: 2em 0;
}

main .logo {
    display: block;
    margin: 0 auto;
    width: 320px;
    max-width: 70%;
}

main .buzztext {
    font-size: 32px;
    font-style: italic;
    width: clamp(95%, 80%, 800px);
    margin: clamp(25px, 5vw, 50px) auto;
    color: var(--text-color-dark);
}

main section {
    padding: var(--header-height) 0;
}

main h1 {
    display: inline-block;
    margin: auto 0;
    padding: 20px;
    text-decoration: overline underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 0.3em;
}

main ul {
    margin-top: 0.5em;
    text-align: left;
    padding-left: 1em;
}

main li {
    padding: 0.3em 0;
}

main p {
    margin-bottom: 0;
    text-align: left;
}

main p:first-child {
    margin-top: 0;
}

main strong {
    text-transform: uppercase;
}

main section {
    display: block;
    text-align: center;
    background-color: var(--bg);
    position: relative;
}

main .buzztext p {
    text-align: center;
    margin: 0;
    filter: drop-shadow(0px 0px 5px black);
}

.ombre-wrapper {
    box-shadow: var(--bg) 0px 0px 100px 120px;
    position: relative;
}

#Etusivu .flex {
    display: flex;
}

#Esittely .content p {
    text-align: center;
}

#Palvelumme {
    padding-top: 0;
}

#Palvelumme .flex {
    display: flex;
}

#palvelutlogo {
    margin: auto;
    display: block;
    width: 320px;
    max-width: 95%;
    margin-top: 30px;
}

#Kuvat p {
    padding: 1em;
    text-align: center;
}

.flex.row {
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.flex.column {
    flex-direction: column;
    align-items: center;
}

#paketti {
    justify-content: space-between;
}

#paketti > div,
#paketti > img {
    width: 49%;
}

@media screen and (max-width: 700px) {
    #paketti > div {
        width: 100%;
    }

    #paketti > img {
        display: none;
    }
}

#gallery {
    padding: 0;
    max-width: 1400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    --gap: 10px;
    --img-height: 250px;
    --max-rows: 3;

    gap: var(--gap);
    max-height: calc(var(--max-rows)*var(--img-height) + calc(var(--max-rows) - 1)*var(--gap));
    overflow-y: hidden;
}

#gallery img {
    height: var(--img-height);
    aspect-ratio: 1;
}

#Riskienhallinta {
    padding: 0;
}

#Riskienhallinta p {
    font-size: 21px;
    font-style: italic;
    text-align: center;
    filter: drop-shadow(0px 0px 5px black);
}

#Yhteystiedot {
    display: block;
    padding-bottom: 1rem;
}

#Yhteystiedot .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.flex-wrapper {
    display: flex;
}

.contact {
    display: block;
    text-align: center;
    min-width: 33%;
    margin: 1rem 0;
}

.contact p,
.contact a {
    text-align: center;
    margin: 0.2em auto;
    display: block;
    overflow-wrap: break-word;
    color: var(--text-color);
    text-decoration: none;
}

.contact img {
    margin: auto;
    width: 125px;
    height: 135px;
    object-fit: cover;
    border-radius: 50%;
}

.email::before {
    display: inline-block;
    position: relative;
    bottom: -.2em;
    content: "";
    background-image: url(/images/email.svg);
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
    filter: invert(var(--color-invert));
}

.phone::before {
    display: inline-block;
    position: relative;
    bottom: -.2em;
    content: "";
    background-image: url(/images/phone_1.svg);
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
    filter: invert(var(--color-invert));
}

.website::before {
    display: inline-block;
    position: relative;
    bottom: -.2em;
    content: "";
    background-image: url(/images/website.svg);
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
    filter: invert(var(--color-invert));
}

.osoite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1800px;
    width: 97.5%;
    flex-wrap: wrap;
}

.osoite img {
    width: 300px;
    max-width: 95%;
}

.osoite p {
    text-align: center;
}

#calendar {
    margin: auto;
    width: 95%;
    max-width: 866px;
    height: clamp(400px, 60vw, 650px);
    overflow-y: hidden;
}

#calendar iframe {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* footer */
footer {
    position: relative;
    background-color: #bd9770;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer h1 {
    color: var(--heading-color);
}


footer #copyright {
    margin-bottom: 0;
    padding-bottom: 1em;
}

/* misc */
@media only screen and (max-width: 537px) {
    #calendar-wrapper {
        overflow: scroll;
    }
}

.heading {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: var(--highlight);
    color: var(--heading-color);
}

.parallax {
    height: 100%;
    min-height: calc(var(--full-height) - clamp(100px, 15vw, 400px));
    display: flex;
    padding: clamp(100px, 15vw, 400px) 0;
    position: relative;
    overflow: hidden;
}

.parallax #background {
    display: block;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.parallax:first-child {
    padding-top: 0px;
}

a {
    color: var(--text-color);
}