body, html {
    margin: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }


/* Bakgrundsbild som täcker hela fönstret */
body {
background: url('background.gif') no-repeat center center fixed;
background-size: cover;
z-index: -1;
background-position: bottom;

}

#wrapper {
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns:  1fr 1fr 1fr ;
  grid-template-rows: 100px 1fr 1fr 1fr 100px;
  align-items: center;     
  justify-content: space-between;

}

nav {
  display: flex;
  justify-content: space-around;
  grid-column: 1/6;
  grid-row: 1/6 ;
  
}

.header .Gabriel {
  position: absolute;
  font-size: 60px;
  top: 0;
  display: flex;
  height: 93px;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: black;
  color: wheat;
  opacity: 0.8;
}


.button {
  font-size: 44px;
  padding: 12px 30px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  border: 2px solid white;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: bold;
  font-family: monospace, pixelfont;
  cursor: pointer;
  display: inline-flex;         /* Flex för centrering */
  align-items: center;          /* Vertikal centrering (!) */
  justify-content: center;      /* Horisontell centrering (-) */
  transition: all 0.3s ease;
  border: 2px solid white;
  backdrop-filter: blur(5px);
    
}

.button:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #222;
  border-color: #ffdd57;
  transform: scale(1.1);
  box-shadow: 0 0 15px #ffdd57;
  z-index: 10;
}

nav a {
  text-decoration: none;
  color: black;
}
nav a:hover {
  text-decoration: underline;
}

.letter {
  animation: fadeIn 1s ease-in-out both;
}

.setting_icon {
  z-index: 100;
  top: 0;
  left: 0;
  position: absolute;
  height: 100px;
  display: flex;  
}

@media (max-width: 768px) {
  #wrapper {
    display: grid;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    grid-template-columns: 100px 1fr 1fr 1fr 100px;
    grid-template-rows: 100px 1fr 1fr 1fr 100px;
  }

  nav {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 90px; /* Jämnt mellanrum mellan knapparna */
    width: 100%;
  }

  .button {
    width: 80vw;
    height: 80px;
    font-size: 32px;
    margin: 0;
    
  }
  
  .header .Gabriel {
    position: absolute;
    font-size: 35px;
    margin-top: 0px;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  
  .setting_icon {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 60px;
    z-index: 101;
    grid-column: 1/6 ;
    grid-row: 1/5 ; 
  }

}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(1);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 430px) {
  .button {
    height: 40px;
  }
}
