

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: #fdf6e3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url('../animasjoner/Bakgrunnen.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
}

header {
  position: relative;
  background-color:  #bdd545;
}

.restart-button {
  position: absolute;
  top: 10px;
  right: 20px;
  background-color: #ef5350;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}


main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.story-box {
  flex: 0 0 25%;
  height: 80vh;
  padding: 24px;
  border-radius: 16px;
  background-color: #fff3e0;
  border: 4px solid  #468212;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame {
  flex: 1; 
  height: 80vh;
  padding: 24px;
  border-radius: 16px;
  background-color: #fff3e0;
  border: 4px solid  #468212;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  background-color: #bdd545;
}

nav a {
  text-decoration: none;
  background-color:  #468212;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
}


@media (max-width: 768px) {
  .content {
    flex-direction: column;
    gap: 20px;
  }

  .story-box, .image-frame {
    width: 90%;
    height: auto;
    min-height: 300px;
  }
}


h1{
  text-align: center;
  color: black;
  font-size: 30px;
}