/* Grundläggande reset */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* Header med logga och titel */
header {
    background-color: #0a3d91;
    color: white;
    font-family: 'Amiri Quran', serif;
    text-align: center;
    padding-bottom: 40px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ändrat från flex-start till center */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

header .logo {
    height: 170px;
    margin-bottom: -40px;
    margin-right: 20%;
    /* Justera avståndet mellan logga och titel */
}

header h1 {
    font-size: 6rem;
    margin-right: 2rem;
    flex-shrink: 0;
    align-items: center;
    display: flex;
    padding-bottom: 1rem;
    justify-content: center;
    /* Lägg till för att centrera texten i flex */
}

/* Navigation */
nav {
    background-color: #318dd1;
    width: 100%;
    margin: 0;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #0a3d91;
}

/* Centrera navigationen */
header nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li:first-child {
    margin-left: 0;
}

body > *:not(.about-background) {
  position: relative;
  z-index: 1;
}

main {
    max-width: 500px;
    margin: 3rem auto;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrerar formuläret horisontellt */
}

h2 {
    font-size: 2rem;
    margin-bottom: 4rem;
    color: #222;
}
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrerar innehållet i formuläret */
}

form > * {
    width: 100%; /* Gör så att inputs och knappar fyller hela main */
    max-width: 400px;
    margin-right: -150%;
}

form label {
    font-size: 1.3rem;  
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form textarea {
    font-size: 1.2rem;      /* Större text i fälten */
    padding: 1rem;          /* Större textfält */
    border-radius: 8px;
}

form textarea {
    min-height: 120px;      /* Gör textarean större från start */
}

form button[type="submit"] {
    background: #318dd1;
    color: white;
    border: none;
    padding: 1.2rem 1.5rem; /* Högre knapp */
    border-radius: 4px;
    font-size: 1.4rem;      /* Större text på knappen */
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    width: 160px;             /* Mindre bredd */
    height: auto;
    transition: background 0.2s, transform 0.2s;
    align-self: center;       /* Centrerar knappen */
}

form p {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
    margin-top: 1.5rem;
    color: #222;
    text-align: left;
}

form ul {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    color: #222;
}

.form-background-main {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-background-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 90%;
  height: 80%;
  background: url('StarStable_2024-06-12_11-57-13.png') center center/cover no-repeat;
  z-index: 0;
  margin-top: 200px;
  margin-left: -200px;
}

.form-content {
  position: relative;
  z-index: 1;
  background: transparent;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  
}


