@charset "UTF-8";

body {
  min-width:375px;
  background-color: #f1f1ef;
  &.loggedout {
    background-color:#f1f1ef;
  }
  margin:0;
  font-family: heletica, sans-serif;
  color:#F8F8F8;
  a {
    color:#2196f3;
    text-decoration:none;
    &:hover {
      text-decoration:underline;
    }
  }
}

#logo {
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.container {
  flex-direction: column;
  height:100vh;
}

.container-row {
  display:flex;
  flex-direction:row;
  width:100%;
  gap: clamp(1rem, 4vw, 3rem); /* min: 16px, max: 48px, scales in between */
  padding: clamp(10px, 3vw, 30px); /* fluid padding */
}

main {
  display:flex;
  flex-direction:column;
  align-items:center;
  height:100%;
  padding:5px 20px;
  &.dark {
    background-image: linear-gradient(rgba(0, 0, 0, 1), rgb(0 5 82 / 80%));
    color:#fff;
    flex-grow:1;
  }

  p {
    max-width:800px;
    font-size: 1.1rem;
    line-height:1.4rem;
  }
}

nav {
  display:flex;
  width:100%;
  border-bottom: 1px solid #2196f31f;
  justify-content:space-evenly;
  align-items:center;
  margin-bottom:10px;
  padding-bottom:13px;
  padding-top:13px;
  backdrop-filter: blur(10px);
  z-index:900;
  color:#fff;
  position:sticky;
  top:0;
  a {
    color: #fff;
    text-decoration:none;
    &:hover {
      text-decoration:underline;
    }
  }
}

@font-face {
  font-family: 'Lovely-Home';
  src: url('/assets/lovely-home-font/LovelyHome-9aBZ.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Parisienne';
  src: url('/assets/Parisienne/Parisienne-Regular.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Josefin Sans';
  src: url('/assets/Josefin_Sans/JosefinSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

h1, .fancy {
  /*font-family: 'Lovely-Home', serif;*/
  font-family: 'Parisienne', serif;
  font-weight:100;
}

h2, h3, h4, h5, h6 {
  font-weight:100;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight:bold;
  background-color: rgb(0 5 82);
}

h1 {
  font-size:3em;
}

h2 {
  font-size: 2.4em;
}

h3 {
  font-size:2.2em;
}

form {
  display:flex;
  flex-direction:column;
  align-items:center;
  input {
    font-size:1.1em;
    border-radius:0.3rem;
    border:1px solid #ccc;
    padding:10px 16px;
    margin-bottom:5px;
  }

  button[type=submit] {
    font-size:0.9em;
    background-color: #a881af;
    color: white;
    padding: 10px 16px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
}

.save-the-dates {
  justify-content:space-around;
  align-items:center;
  display:flex;
  flex-wrap: wrap;

}

#hero {
  position:relative;
  margin-top:-59px;
  width:100%;
  top:0;
  background-size:cover;
  height:400px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-bottom:4px solid black;
  display:flex;
  flex-direction:column;
  h1 {
    color: white;
    font-size:5rem;
    text-align:center;
    font-size: clamp(3.5rem, 5vw, 5rem);
  }
  p {
    color:white;
    font-size:1.5rem;
  }
  &.northern_lights {
    background-image: linear-gradient(rgba(0, 0, 0, 0.0), rgb(4 4 9)), url('/assets/images/northern-lights-hero.jpg');
  }

  &.starry-sky {
    width: 100%;
    background: linear-gradient(rgba(8, 6, 6, 0.82), rgb(4 4 9)), url('/images/stars.png') repeat;
    background-size: cover;
    background-blend-mode: screen;
  }
}

.split {
  display:grid;
  /*grid-template-columns: 0fr 1fr;*/
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-wrap when narrower than 300px */
  grid-gap: 16px;
}

.finland-image {
  background: url(/images/finland-outline-rovaniemi.png);
  width: 300px;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
  filter: invert(1);
}

.centered {
  display:flex;
  justify-content:center;
  flex-direction:column;
  align-items:center;
}

.rounded img {
    border-radius:0.6em;
}

p.caption {
  display:block;
  font-size:0.8em;
  text-align:center;
  margin-top:0;
}

.divider {
    display: block;
    width: 100%;
    margin: 0;
}


/* Stack when viewport is narrow OR when columns would become too narrow */
@media (max-width: 768px), (max-width: 520px) {
  .container-row {
    flex-direction: column;
  }
}
