* {
  box-sizing: border-box;
}
body, html{
    margin: 0;
    padding: 0;

}
body{
    display: grid;
    grid-template-rows: 1fr 5fr 5fr 1fr;
    height: 1600px;
}

/*Header*/

#header-shrink{
    position: sticky;
    background-color: #445d63;
    width: 100%;
    height: auto;
    grid-row: 1/2;
    display: grid;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    transition: height 0.3s ease, font-size 1s ease;
    z-index: 2;
    top: 0;
}
#header-shrink.shrink{
    height: 70px;
    font-size: 0.9em;
    width: 100%;
}
#logo{
    align-self: center;
}
.logo{
    text-decoration: none;
    margin-left: 90px;
    font-family: 'Roboto', sans-serif;
    color: white;
}
nav{
    grid-column: 2/3;
    display: flex;
    justify-content: space-evenly; 
    align-self: center;
}
nav * {
    display: flex;
    justify-content: space-evenly;
    align-self: center;
    background-color: #445d63;
    border-style: none;
    font-size: larger;
    font-family: 'Roboto', sans-serif;
    transition: transform 1s ease;
    text-decoration: none;
    cursor: pointer;
    color: white;
}
nav button:hover{
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
#sök{
    font-size: 24px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin: 10px;
    transform: scale(1.5);
}
#sökruta{
    margin-top: 110px;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    position: fixed;
    right: 0;
    z-index: 3;
}
.sök-input{
    width: 250px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    outline: none;
    transition: all 0.3s ease;
}
#sök-input:focus {
    border-color: #209165;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/*Main*/

main{
    grid-row: 2/3;
    height: auto;
}
.bakgrund{
    height: 900px;
    width: 100%;
}

.Välkommstext *{    
    font-family: Georgia, serif;
    font-size: larger;
}
.Välkommstext{
    position:absolute;
    top: 125px;
    left: 75px;
    z-index: 1;
    background: radial-gradient(circle, rgba(68, 93, 99, 1) 0%, rgba(68, 93, 99, 0.9) 100%);
    width: 600px;
    height: 100px;
    border-style: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    color: white;
}
.Välkommstext h1{
    font-family: Arial, Helvetica, sans-serif;
    font-size: x-large;
    margin: auto;
}
.bild1{
    display: flex;
    position:absolute;
    top: 250px;
    left: 75px;
    z-index: 1;
    background: radial-gradient(circle, rgba(68, 93, 99, 1) 0%, rgba(68, 93, 99, 0.9) 100%);
    width: 600px;
    height: 450px;
    border-style: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.bild-container1{
    width: 90%;
    height: 90%;
    margin: auto;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#bild1{
    width: 100%;
    height: 100%;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-style: hidden;
    border-radius: 10px;
}
.bild2{
    display: flex;
    position:absolute;
    top: 125px;
    right: 75px;
    background: radial-gradient(circle, rgba(68, 93, 99, 1) 0%, rgba(68, 93, 99, 0.9) 100%);
    height: 575px;
    width: 1000px;
    border-style: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.bild-container2{
    width: 90%;
    height: 90%;
    margin: auto;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
#bild2{
    width: 100%;
    height: 100%;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-style: hidden;
    border-radius: 10px;
}
/*Mellan ruta som gör att bakgrundbilden går bättre ihop med den vita rutan längre ner*/
#mellan-ruta{
    width: 100%;
    height: 100px;
    background-color:#445d63;
    position: absolute;
    top: 925px;
    z-index: 100;
}

/*Den vita rutan*/

.main2 {
    background-color:white;
    width: 100%;    
    grid-row: 3/4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    height: 675px;
}
.textruta{
    background-color: #425c61;
    color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-family: 'Roboto', sans-serif;
    width: 900px;
    position: absolute;
    left: 75px;
    top: 1075px;
}
.textruta h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2em;
    margin-bottom: 20px;
}
.textruta p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25em;
    margin-bottom: 20px;
    line-height: 1.6;
}
.bild3 {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: absolute;
  top: 1075px;
  right: 75px;
  background-color:#445d63;
  height: 500px;
  width: 600px;
  display: flex;
}
.bild3 img{
    width: 90%;
    height: 90%;
    margin: auto;
    border-style: hidden;
    border-radius: 10px;
}

/*Footer*/

footer{
    margin: 0;
    grid-row: 4/5;
}
.footer {
    background-color: #425c61;
    color: #fff;
    text-align: center;
    padding: 20px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    line-height: 1.6;
    width: 100%;
    height: 100px;
}
.footer a {
    color: #b1e0d5;
    text-decoration: underline;
}
.footer a:hover {
    text-decoration: none;
    color: #ffffff;
}
.footer p {
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*Kontakt sida*/

.kontaktsida{
    height: 900px;
}
.kontakt {
  max-width: 800px;
  margin: 150px auto 100px;
  padding: 40px;
  background: radial-gradient(circle, rgba(68,93,99,1) 0%, rgba(68,93,99,0.9) 100%);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-family: 'Roboto', sans-serif;
  height: 700px;
}
.kontakt h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}
.kontakt p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
}
.kontakt form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.kontakt input, .kontakt textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
}
.kontakt textarea {
  min-height: 120px;
  resize: vertical;
}
.kontakt button[type="submit"] {
  background-color: #b1e0d5;
  color: #445d63;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.kontakt button[type="submit"]:hover {
  background-color: #90c9bb;
}
.popup {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #445d63;
  color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none;
  text-align: center;
  z-index: 2000;
}
.popup button {
  margin-top: 15px;
  background-color: #b1e0d5;
  color: #445d63;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

/*Mitt boende*/

.mittboendesida{
    height: 1000px;
}
.mittboende {
  padding: 60px 80px;
  background-color: white;
  color: #425c61;
  font-family: 'Roboto', sans-serif;
}
.mittboende h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}
.mittboende p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.boende-galleri {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.boende-galleri img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.dold-bild {
  display: none;
}
.visa-mer-btn {
  margin-top: 20px;
  background-color: #445d63;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}
.visa-mer-btn:hover {
  background-color: #2e4449;
}
.boende-info {
  background-color: #425c61;
  color: white;
  padding: 40px 80px;
  font-family: 'Roboto', sans-serif;
}
.boende-info h3 {
  font-size: 2em;
  margin-bottom: 20px;
}
.boende-info ul {
  list-style: disc inside;
  font-size: 1.2em;
  line-height: 1.6;
}

