body,
html {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Roboto", serif;
  --hue: 210;
  --saturation: 90%;
  --lightnes: 40%;
  --core-color: hsl(var(--hue), var(--saturation), var(--lightnes));
}

p {
  font-size: 1.1rem;
  font-weight: 300;
  margin: 1rem;
}

#header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  color: black;
  justify-content: space-evenly;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  p {
    font-size: 1rem;
    margin: 1rem 0;
    cursor: pointer;
  }
  p:hover {
    text-decoration: underline;
  }
}

/* CSS */
.button-74 {
  background-color: hsl(var(--hue), var(--saturation), 90%);
  border: 2px solid #422800;
  box-shadow: #422800 4px 4px 0 0;
  border-radius: 30px;
  color: #422800;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: 18px;
  padding: 0 18px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-74:hover {
  background-color: #fff;
}

.button-74:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}

form {
  div {
    position: relative;
    padding: 15px 0 0;
    margin-top: 10px;
    width: 100%;
  }

  div.submit {
    display: flex;
    justify-content: center;
  }

  .text-input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #9b9b9b;
    outline: 0;
    font-size: 1rem;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
  }
  .text-input::placeholder {
    color: transparent;
  }
  .text-input:placeholder-shown ~ label {
    font-size: 1rem;
    cursor: text;
    top: 25px;
  }

  .text-label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: #9b9b9b;
    z-index: -1;
  }

  .text-input:focus {
    padding-bottom: 6px;
    border-width: 3px;
    border-image: linear-gradient(
      to right,
      var(--core-color),
      hsl(var(--hue), var(--saturation), 70%)
    );
    border-image-slice: 1;
  }
  .text-input:focus ~ .text-label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: var(--core-color);
    font-weight: 700;
  }

  /* reset .text-input */
  .text-input:required,
  .text-input:invalid {
    box-shadow: none;
  }

  div.select-container {
    position: relative;
    padding: 15px 0 0;
    margin-top: 10px;
    width: 100%;
  }

  select {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #9b9b9b;
    outline: 0;
    font-size: 1rem;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
    appearance: none; /* Tar bort standard utseende */
    cursor: pointer;
  }

  select:invalid {
    color: #9b9b9b;
  }

  select:invalid ~ label {
    color: transparent;
    top: 30px;
  }

  select:focus:invalid {
    color: transparent;
  }

  /* Stilisera pilen */
  .select-container:after {
    content: "\25BC";
    position: absolute;
    right: 0;
    bottom: 10px;
    font-size: 0.8rem;
    color: #9b9b9b;
    pointer-events: none;
  }

  select:focus {
    padding-bottom: 6px;
    border-width: 3px;
    border-image: linear-gradient(
      to right,
      var(--core-color),
      hsl(var(--hue), var(--saturation), 70%)
    );
    border-image-slice: 1;
  }

  select:focus ~ label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: var(--core-color);
    font-weight: 700;
  }

  select ~ label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: #9b9b9b;
  }
  #last_label {
    display: flex;
    justify-content: left;
    align-items: left;
    flex-direction: column;
  }
}

#hero-image {
  img {
    width: 100vw;
    height: 20rem;
    overflow: hidden;
    object-fit: cover;
    object-position: 50% 40%;
  }
}

#title {
  background: rgba(255, 255, 255, 100);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #cc3366;
  transform: translateY(-3rem);
  height: 0;
  h1 {
    font-weight: 400;
  }
}

#content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  .content-color {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 1rem;

    gap: 2rem 5rem;
    justify-content: center;
  }

  .content-card {
    background: hsla(var(--hue), var(--saturation), 80%, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 30px hsla(var(--hue), var(--saturation), 10%, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: -1;
    h3 {
      margin-bottom: 0;
    }
    .square {
      border-radius: 5%;
      margin: 1rem;
    }
    img {
      overflow: hidden;
      object-fit: cover;
      object-position: 60% 10%;
      margin: 1rem 3rem;
      border-radius: 50%;
      width: 12rem;
      height: 12rem;
      overflow: hidden;
    }
  }
}

.content-color {
  padding-bottom: 2em;
}

.content-part {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 820px;

  h2,
  button {
    scroll-margin-top: 5rem;
  }

  .content-image {
    width: calc(100% - 2rem);
  }
  @media screen and (max-width: 820px) {
    .content-image {
      width: 100%;
    }
  }
}

#osa-by-line > p {
  text-align: center;
}

#image-grid {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  width: calc(100vw - 1rem);
  flex-wrap: wrap;
  img {
    height: 200px;
    max-width: 100%;
    flex-grow: 1;
    object-fit: cover;
  }
}

h1,
h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.1rem;
}

#login {
  width: 100%;
  height: 100%;
  background-image: url("/static/hero.png");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-color: var(--core-color);
  display: flex;
  justify-content: center;
  align-items: center;

  .error {
    position: absolute;
    top: -0.5rem;
  }
}

.card {
  background: rgba(200, 200, 200, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 250px;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;

  form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
}
