/*
Theme Name: Käänne - Onepage
*/

@font-face {
    font-family: "Lateral";
    font-style: normal;
    font-weight: 400;
    src:
        url("assets/fonts/Lateral-StandardRegular.woff2") format("woff2"),
        url("assets/fonts/Lateral-StandardRegular.woff") format("woff");
}

@font-face {
    font-family: "Lateral";
    font-style: normal;
    font-weight: 500;
    src:
        url("assets/fonts/Lateral-StandardMedium.woff2") format("woff2"),
        url("assets/fonts/Lateral-StandardMedium.woff") format("woff");
}

@font-face {
    font-family: "Lateral";
    font-style: normal;
    font-weight: 600;
    src:
        url("assets/fonts/Lateral-StandardBold.woff2") format("woff2"),
        url("assets/fonts/Lateral-StandardBold.woff") format("woff");
}

* { box-sizing: border-box; }

html, body {
    padding: 0;
    margin: 0;
    border-bottom: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 16px;
}

.wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    font-family: "Lateral", sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: #5E3521;
}

.img-container {
    width: 100%;
    height: 100%;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: center top; */
}

.img-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
}

.img-overlay img {
    width: 50vw;
    position: absolute;
    top: 0;
    left: 0;
    margin: 1em;
}

.text-container {
    display: flex;
    flex-direction: column;

    position: fixed;
    bottom: 0;
    right: 0;
    padding: 1em;
}

.text-date {
    font-size: 1.5em;
}

.text-header {
    font-size: 1.25em;
}

.text-regular {
    font-size: 1em;
}

.pt-1 {
    padding-top: 1em;
}

a {
    color: #5E3521;
}

a:hover {
    text-decoration: none;
}

@media only screen and (orientation: portrait) and (max-width: 700px) {
    .text-container {
        width: 100%;
    }

    html, body {
        font-size: 3vw;
    }
}

@media only screen and (orientation: landscape) {
    .img-overlay img {
        width: 30vw;
    }
}

@media screen and (resolution >= 2dppx) and (orientation: portrait) {
    .wrapper {
        font-size: 1.5rem;
    }
}

@media screen and (resolution >= 3dppx) and (orientation: landscape) {
    .wrapper {
        font-size: 1rem;
    }
}
