body {
  background-color: #f7f5f8;
  margin: 0;
}

html, body {
  height: 100%;
}

#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#startScreen {
  text-align: center;
  margin-top: 50px;
}

#nameInput {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0px 20px;
}

#nav_top {
  background: linear-gradient(135deg, #f7f5f8, #efe7f3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#nav_bottom {
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #f7f5f8, #efe7f3);
  font-family: "berlin";
  color: #664980;
}

#nav_bunn_forside {
  margin-top: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 60px;
  margin: 0px;
  padding:0px;
}

nav ul li a {
  color: #664980;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 3px;

}

nav ul li a:hover {
  color: black;
}

#logo{
  width: 150px;
  padding: 10px 20px;
}

#boks {
  background-color: #ffffff;
  max-width: 800px;
  max-height: fit-content;
  margin: 50px auto; 
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#innhold {
  justify-content: center;
  display: flex;
}

#skrift_forside {
  line-height: 1.5;
  padding-bottom: 30px;
}

#boks{
  text-align: center;
}

h2 {
  display: flex;
  justify-content: center;
  padding-bottom: 50px;
  color: #664980;
}

.btn {
  background-color:#d57eb9;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
}

.btn:hover {
  background-color: #664980;
  color: white;
  cursor: pointer;
}

#button_forside {
  display: flex;
  justify-content: center;
  gap: 30px; 
}

#logo_grafisk {
  padding-top: 20px;
  padding-bottom: 40px;
}


#nav_bottom ul {
  display: flex;
  gap: 20px;
  justify-content: space-evenly;
  width: 100%;
  padding: 10px 0px;
}

#quiz_container {
 background-color: #ffffff;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 max-width: 80%;
 min-width: 50%;
 border-radius: 20px;
 padding-bottom: 20px;

 /* margin: 0px 200px; */
}

#quiz_container #buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.correct {
  background-color: rgb(86, 228, 86);
}

.wrong {
  background-color: rgb(255, 82, 82);
}



button {
  padding: 15px;
  border-radius: 20px;
  border: none;
  font-size: 16px;
  width: 100%;
  background-color: #d57eb9;
  color: white;
}

button:hover {
  background-color: #664980;
}

.correct:hover {
  background-color: rgb(86, 228, 86);
}

.wrong:hover{
  background-color: rgb(255, 82, 82) ;
}

#next button {
  background-color: #d57eb9;
  color: white;
  padding: 15px 30px;
  border-radius: 20px;
  font-size: 16px;
}

#next button:hover {
  background-color: #664980;
}

#next {
  padding: 20px;
}

h1 {
  color: #664980;
  text-align: center;
}

p {
  color: #333333;
}

#wrapper_quiz {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
}

#videoContainer {
  display: flex;
  justify-content: center;
  padding: 20px;
  padding-top: 40px;
  width: 500px;
  margin: 0 auto; 
}

.videoBox {
  display: flex;
  justify-content: center;
  background-color: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column; 
  gap: 10px;
}

.video video {
  max-width: 500px;
  border-radius: 12px;
  margin: 0px auto;
}

#quiz_container, #video {
  padding-bottom: 30px;
}

#lilla, #rosa {
  width: 70px;     
  height: 70px;    
  gap: 20px;
  border-radius: 12px;
  display: flex; 
  flex-direction: column;
}

.farge_og_tekst {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 12px;
}

.farge_og_tekst:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
}

.tekst_farge p {
  margin: 0;              
  line-height: 1.5; 
}

#lilla {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 70px;
  height: 70px;
  background-color: #664980;
  border-radius: 12px;
  flex-shrink: 0;        
}

#rosa {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: #d57eb9;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  flex-shrink: 0;      
}

#typografi {
  margin-top: 40px;
  padding-top: 20px;
}

#typografi + div {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
}

#grafisk_wrap {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

#boks_grafisk {
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

h1 {
  padding-top: 50px;
  font-size: 32px;
  
}

#boks_grafisk h1 {
  font-size: 24px;
  margin-top: 30px;
}

#prototype img, #logo_boks img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  display: block;
  margin: 20px auto;
}

#prototype{
  padding-bottom: 80px;
}

#prototype_boks {
  padding-top: 20px;
}

.logo_boks {
  margin-top: 30px;
  padding: 25px;
  border-radius: 12px;
  background-color:#f7f5f8;
}

#grafisk_wrap p {
  max-width: 700px;
  margin: 20px auto;
  text-align: center;
  line-height: 1.6;
}

#question {
  color: #664980;
}

#boks,
#quiz_container,
#boks_grafisk {
  border-top: 5px solid #d57eb9;
}

h1, h2 {
  font-family: "berlin";
}

ul li a {
  font-family: "berlin";
}

p {
  font-family: sans-serif;
}


@font-face {
  font-family: "berlin";
  src: url(../Fonts/berlin-sans-fb-demi/BRLNSDB.TTF);
}

#quiz_btn {
  width: 180px;
  border-radius: 50px;
}

#btn_quiz_boks {
  padding-top: 30px;
}

#h2_quiz {
  padding-bottom: 10px;
}

#typografi_boks {
  display: flex;
  justify-content: center;
}

#elephant  {
  padding-right: 150px;
  
}

#berlin {
  padding-left: 150px;
}

#tekst_1 {
  font-family:"elephant" ;
}

#tekst_2 {
  font-family:"berlin" ;
  padding-right: 50px;
}

@font-face {
  font-family: "elephant";
  src: url(../Fonts/berlin-sans-fb-demi/Elephant\ Regular/);
}

.highscore-box {
  background: linear-gradient(135deg, #f7f5f8, #efe7f3);
  padding: 20px;
  border-radius: 16px;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.highscore-box h3 {
  text-align: center;
  color: #664980;
  margin-bottom: 15px;
}

.highscore-box ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highscore-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 12px;
  transition: 0.2s;
}

.place {
  font-size: 20px;
  width: 40px;
}

.name {
  flex: 1;
  text-align: left;
  padding-left: 10px;
}