
@import url('https://fonts.googleapis.com/css2?family=Crushed&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mea+Culpa&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Princess+Sofia&display=swap');


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
section,
h1,
h2,
h3,
h4,
p, 
figure,
blockquote,
dl,
dd { 
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.2;
  width: 100vw;
  font-weight:400;
}


/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}



/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



:root {
  --väri-tumma-400: hsla(0, 0%, 0%, 100%);
  --väri-vaalea-400: hsl(0, 0%, 100%);

    --väri-aksentti: rgba(255, 153, 0);

  --ff-cursive: 'Princess Sofia', cursive;	
  --ff-cursive-2: 'Dawning of a New Day', cursive;
  --ff-display: 'Crushed', cursive;
  --ff-ss: 'Dosis', sans-serif;

  --fs-xxl: clamp(4.4rem, .8rem + 9vw, 10rem);
  --fs-xl: 2.2rem;
  --fs-l: 1.5rem;
  --fs-m: 1.125rem;
  --fs-s: .9rem;
  --fs-xs: .8rem;
}


body {
    font-family: var(--ff-ss);
    color: var(--väri-vaalea-400);
    font-size: var(--fs-m);

}

main {
    background: url(img/patina.png) center / cover no-repeat;
    height:100dvh;
    overflow:scroll;
}

.sisalto {
    max-width: 65ch;
    padding: 2em 1em;

}

section {
    position:relative;
    max-width: 100vw;
    
}

p {
    word-wrap: break-word;
  }

h1,
h2,
h3 {
    font-family: var(--ff-display);
}

h1 {
    font-size: var(--fs-xxl)
}

h2 {
    font-size: var(--fs-xl);
}

h3 {
    font-size: var(--fs-xl);
}

h4 {
    font-size: var(--fs-l);
    font-weight: 200;
    line-height:1.2;
}

p {
    margin-bottom: 1em;
    max-width:50ch;
}

hr {
    position: relative;
    width: 90%;
    display: block;
    height: 3rem;
    background: url(img/ornament.png) center no-repeat;
    background-size: 7rem;
    border:transparent;

}

hr::before,
hr::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    width: 41%;
    border-top: 5px solid;
    border-image-slice: 1;
    border-width: 1px;

}

hr::before {
    border-image-source: linear-gradient(to left, #ffffff, #ffffff00);
}
hr::after {
    border-image-source: linear-gradient(to right, #ffffff, #ffffff00);
    right:0;
}

a,
a:visited,
a:link,
a:active {
    color: var(--väri-vaalea-400);
    text-decoration:none;

}

a:hover,
a:focus {
    text-decoration:underline;
}




a > i,
a > img,
a > svg {
  transform:scale(1,1);
  transition: transform 250ms ease-in-out;
}


a > i:hover,
a > img:hover {
  transform:scale(1.1,1.1);
  text-decoration:none;

}

button {
    display: block;
    border: 0;
    background: rgba(255, 153, 0, 0.4);
    padding: 0.5em 1.6em;
    margin: 1em;
    color: var(--väri-vaalea-400);
    text-transform: uppercase;
    border-radius: 35px;
    box-shadow: 1px 1px 5px #0002;
    transform:scale(1,1) translate(0,0);
    transition:all 300ms ease-in-out;
}

label {
    cursor:pointer;

}

button:hover,
button:focus {
    cursor:pointer;
    background: rgba(255, 153, 0, 0.5);
    transform: translate(-2px,-2px);
    box-shadow: 3px 3px 2px #0002;

}
section {
    width: 100%;
    min-height: 50vh;
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 1em ;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 12;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
  }
  .modal-content {
    align-self: center;
    background: radial-gradient(50% 50% at 50% 50%, hsla(36, 100%, 50%, .5) 0%, hsla(30, 81%, 44%, .5) 100%),
    url(img/patina.png) center / cover no-repeat;
    color: var(--väri-vaalea-400);
    width: 85vw;
    max-width: 27em;
    max-height: 90%;
    overflow-y: scroll;
    border-radius: 0.5rem;
    padding:1em;
  }
  .modal-content > div {
    padding:1em;
  }
  #toggle__varaus:checked ~ .modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
  }

  #toggle__varaus {
    display:none;
  }

#intro,
#hoidot,
#yhteys {
    background: radial-gradient(50% 50% at 50% 50%, hsla(36, 100%, 50%, .5) 0%, hsla(30, 81%, 44%, .5) 100%);
}

#hero,
#footer {
    position:relative;
}

#hero {
    z-index:5;
}

#footer {
    z-index:7;
}
/* HEADER / NAV */



    


header {
    position:fixed;
    bottom:0;
    height:5.5em;

    width:100vw;
    background:rgba(0, 0, 0, 0.5);
    display:flex;
    align-items: center;
    justify-content: right;
    padding:0 1em;
    z-index:2;

}



.scroll {

}


.header__logo {
    position:absolute;
    bottom:0;
    left:-6px; 
    color:var(--väri-vaalea-400);
    text-align:center;
    text-shadow: 2px 2px 6px #000;

    transform: scale(0.7,0.7) translate(-2.3em, 3em);
    z-index:6;

}

.scroll ~ .header__logo {
    transform: scale(0.7,0.7) translate(-2.3em, 3em);
}

.header__logo > p:first-child {
    font-family: var(--ff-cursive);
    font-size: 4rem;

}

.header__logo > p:nth-child(2){
    position:absolute;
    font-family: var(--ff-display);
    font-size: 1.6rem;
    top: 81px;
    right: 0px;
}

nav {
    width:100vw;
    position:absolute;
    bottom:5.45em;
    right:0;
    background:rgba(0, 0, 0, 0.5);
    transform: scaleY(0);
    transition: transform 300ms ease-in-out;
    transform-origin:bottom;
    margin-bottom:1px;
    font-family: var(--ff-display);
    z-index:5;
}

nav ul,
nav li {
    list-style-type: none;

    margin: 0;
    padding: 0;

}
nav li {
    padding: .5em 1em;
}

.burger__container {
    cursor: pointer;
    border: 2px solid var(--väri-vaalea-400);
    width: 3em;
    height: 3em;

    display:flex;
    justify-content: center;
    align-items: center;
    gap:6px;
    flex-direction: column;

}

.burger__bar1,
.burger__bar2,
.burger__bar3 {
    width:70%;
    height:3px;
    background: var(--väri-vaalea-400);
    transform: rotate(0deg);
    transition:transform 300ms ease-in-out;
}

#toggle__burger:checked ~ label > div > .burger__bar1 {
    transform: rotate(135deg) translate(6px,-6px);
    transform-origin:center;
}

#toggle__burger:checked ~ label > div > .burger__bar3 {
    transform: rotate(-135deg) translate(6px,6px);
    transform-origin:center;
}

#toggle__burger:checked ~ label > div > .burger__bar2 {
    opacity:0;
}

#toggle__burger:checked ~ nav {
    transform: scaleY(1);
}


#toggle__burger {
    display:none;
}


@media only screen and (min-width: 50em) { 
    header {
        top:0;

        width:100vw;
        background:transparent;
        display:block;
        padding:0;

    }

    .scroll {

        width:100vw;
        background:rgba(0, 0, 0, 0.5);
        display:flex;
        align-items: center;
        justify-content: right;
        padding:0 1em;

    }

    .header__logo {
        top:0;
        transform: scale(1,1) translate(2em,1em);
        transition: transform 500ms ease-in-out;
        bottom:auto;
    }

    .scroll ~ .header__logo {
        transform: scale(0.7,0.7) translate(-2.3em, -0.5em);
    }
    nav {
        position:relative;
        background:transparent;
        transform:scale(1,1);
        top:0;
    }

    nav ul {
        display:flex;
        align-items:center;
        margin-left:300px;
    }

    .burger__container {
        display:none;
    }
}

/* HERO */

#hero {
    background: url(img/saara_tausta_uusi.jpg) center bottom / cover no-repeat;
    height:100vh;
}



/* INTRO */

.banneri {
    background: url(img/saara_malja-banneri.jpeg) center 70% / cover no-repeat;
    height: 50vh;
    width:100vw;

}



/* HOIDOT */

#hoidot {
    padding:0;
}

.hoidot__teksti > p {
    max-width:40ch;
}

#hoidot > .sisalto {
    display:flex;
    flex-direction: column;
    max-width:100vw;
    padding:0;
}

#hoidot > .sisalto > div {
    width:100vw;
    min-height: 30vh;
}

.hoidot__teksti {

    display:flex;
    align-items:center;
    justify-content: center;
    flex-direction: column;

    padding:4em 2em;
    text-align:center;
}

.hoidot__kuva > div {
    width: 100vw;
    height: 40vh;
    background-size: cover;
    background-repeat: no-repeat;
}




 


@media only screen and (min-width: 50em) { 
    
    .sisalto:nth-child(even) > div.hoidot__kuva {
        order:3;
    }

    #hoidot > .sisalto {
        flex-direction: row;
    }

    #hoidot > .sisalto > div {
        max-width:60ch;
    }

    .hoidot__kuva {
        display: flex;
        align-items: center;
        justify-content: center;

    }
    .hoidot__kuva > div {
        height: 40vw;
        width: 40vw;
        max-height: 22em;
        background-size: cover;
        background-repeat: no-repeat;
        border-radius: 50%;
        max-width: 22em;
        overflow:hidden;
    }





}




/* YHTEYS */

#yhteys {
    padding-top:3em;
    padding-bottom:3em;
}
.yhteys__card {
    width:90%;
    min-height:22em;
    padding:1em;
    margin:2em;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align:center;
    gap:1em;
    background: rgba(255, 153, 0, 0.4);
    box-shadow: 0px 30px 18px -15px rgba(0, 0, 0, 0.25); 
}


#yhteys > .sisalto {
    display:flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

@media only screen and (min-width: 50em) { 

    #yhteys > .sisalto {

        flex-direction: row;
        max-width:100vw;
    }

    #yhteys > s {
        width:100vw;
    }
}

/* FOOTER */

#footer {
    background: url(img/saara_malja-footer.jpeg) right top / cover no-repeat;
    /* height: calc(100vh - 7.8em); */
    justify-content: flex-end;
    font-size: var(--fs-s);
}

#footer > div {
    width: 100vw;
    padding:1em;

}

#footer > div > p {
    margin:0;
    text-shadow: 0px 0px 10px #000;
}

#footer > div > p:first-child {
    margin:0 0 .5em 0;
}


/* UTILITIES */

.fs-xl {
    font-size: var(--fs-xl);
}


.no-mobile {
    display:none;
}


.parallax-window {
    min-height: 400px;
    background: transparent;
}

@media only screen and (min-width: 50em) { 
    .no-mobile {
        display:block;
    }