/* ===================================================================
   GLOBAL STYLES - General HTML elements and base styling
   ================================================================== */

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  text-align: center;
  font-family: "Roboto", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow-y: scroll;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.section {
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
}

/* Global scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}

#link {
  color: #57a3f5;
  font-weight: 700;
  margin-right: 1px;
}



/* ===================================================================
   ANIMATION KEYFRAMES - All animation definitions
   ================================================================== */

@keyframes btnbcolor {
  from {
    background-color: none;
  }
  to {
    background-color: #57a3f5;
  }
}

@keyframes Rbtnbcolor {
  from {
    background-color: #57a3f5;
  }
  to {
    background-color: none;
  }
}

@keyframes btncolor {
  from {
    color: black;
  }
  to {
    color: white;
  }
}

@keyframes bluec {
  from {
    color: white;
  }
  to {
    color: #57a3f5;
  }
}

@keyframes Rbluec {
  from {
    color: #57a3f5;
  }
  to {
    color: white;
  }
}



/* ===================================================================
   NAVIGATION - Navbar and contact button styling
   ================================================================== */

#navbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 50%;
  font-family: "Roboto", sans-serif;
  gap: 32px;
  z-index: 5;
}

.navknapper {
  float: none;
  display: inline-block;
  font-size: 14px;
  color: #1e293b;
  text-align: center;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 6px;
}

.navknapper:hover {
  color: #57a3f5;
  transform: translateY(-2px);
}

#kontaktknapp {
  background-color: white;
  position: absolute;
  right: 20px;
  top: 25px;
  font-size: 14px;
  color: #57a3f5;
  text-align: center;
  padding: 0px 16px;
  border: 2px solid #57a3f5;
  border-radius: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.5s, color 0.5s, transform 0.4s ease-in-out;
}

#kontaktknapp:hover {
  background-color: #57a3f5;
  color: white;
}



/* ===================================================================
   SECTION 1 - FAQ PAGE SECTION
   ================================================================== */

.faq {
  padding-top: 100px;
}

#title {
  font-weight: bold;
  font-family: "Roboto", sans-serif;
  font-size: 35px;
  margin-top: 15px;
  text-transform: uppercase;
}

#a {
  font-size: 18px;
  margin-bottom: 40px;
}

.faq-block {
  border: 3px solid #57a3f5;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 7px;
  height: 30px;
  transition: height 0.5s ease;
}

.question {
  font-size: 20px;
  text-align: left;
  margin-top: 3px;
  margin-bottom: 10px;
}

.plus {
  width: 3%;
  float: right;
  margin-top: -30px;
}

.answer {
  display: block;
  margin-top: 5px;
  text-align: left;
  font-size: 14.5px;
}



/* ===================================================================
   SECTION 2 - CONTACT FORM SECTION
   ================================================================== */

#section2 {
  height: 500px;
}

#tittel7 {
  font-size: 35px;
  font-weight: 400;
  font-style: italic;
  margin-top: 200px;
}

#tekst9 {
  font-size: 20px;
}

.contact-form {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.contact-form input,
#message {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 10px;
  display: block;
  box-sizing: border-box;
  font-size: 14px;
  height: 40px;
}

#message {
  width: 400px;
  height: 38px;
  font-family: "Roboto", sans-serif;
  resize: none;
}

.contact-form button {
  background-color: white;
  font-weight: 700;
  color: black;
  padding: 10px 20px;
  border: 2px solid #57a3f5;
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  width: 400px;
  animation: Rbtnbcolor 0.5s forwards, Rbtncolor 0.5s forwards;
}

.contact-form button[type="submit"]:hover {
  animation: btnbcolor 0.5s forwards, btncolor 0.5s forwards;
}

#alert {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 10px 20px;
  background: #79c879;
  color: #fff;
  margin-top: -43px;
  display: none;
  width: 360px;
  border-radius: 3px;
  z-index: 1;
  height: 24px;
}