/*
Theme Name: Inter-Mezzo
Theme URI: -
Author: Tine M. S. Petersen
Author URI: https://tinemspetersen.com
Description: Custom theme developed for Inter-mezzo.dk
Version: 1.0.1
License: No unauthorized use permitted.
License URI: -
Text Domain: inter-mezzo
Tags: custom-theme
*/

@font-face {
  font-family: "Inter";
  src: url("../intermezzo/assets/fonts/Inter-VariableFont.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
}

main {
    padding: 15px 15px;
}
    
    .frontpage_main .right {
  background: url("./assets/front-page_graphics.png") no-repeat;
  background-position: right;
  width: 100%;
  height: 85vh;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.site-identity {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-identity a {
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style-type: none;
  gap: 10px;
}

.main-nav a {
  text-decoration: none;
}

.cta ul {
  list-style-type: none;
}

.cta a {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

.frontpage_main2 {
  display: flex;
  flex-direction: column;
  align-content: center;
  gap: 50px;
}

.frontpage_main {
  display: flex;
  align-items: center;
}

.frontpage_main .left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 2%;
  width: 100%;
}

.frontpage_main .left .image_wrapper {
  display: flex;
  gap: 10px;
}

.frontpage_main .left img {
  max-width: 100%;
  max-height: 300px;
}

.frontpage_main .left h1 {
  font-weight: 800;
  text-transform: uppercase;
}



.frontpage_main .right img {
  max-width: 400px;
  border-radius: 100%;
  position: absolute;
  top: 20%;
  right: 10%;
}

#uddannelse {
  margin: 2% 10%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

#uddannelse h1,
#uddannelse h2 {
  text-align: center;
}

#uddannelse h1 {
    text-transform: uppercase;
    font-size: 52px;
}

#uddannelse h2 {
  margin-bottom: 40px;
  font-size: 26px;
}

#uddannelse #modulerne .row {
  display: flex;
}

#uddannelse #modulerne .modul {
  margin-bottom: 25px;
  
}

.modul a {
    background-color: red;
}

.modul .number {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  
}

.modul .title {
  font-weight: 600;
}

#kompas_sektion img {
  margin: auto auto;
  max-width: 100%;
  margin-bottom: 10px;
}

#kompas_sektion div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#kompas_sektion a {
  background-color: #e64f3b;
  width: fit-content;
  margin: auto;
  padding: 10px 20px;
  border-radius: 15px;
  color: white;
  text-decoration: none;
}

.ottetal {
    display: flex;
    gap: 20px;
}

.ottetal_img {
    max-width: 200px;
}

.underviser {
    display: flex;
    flex-direction: column;
    gap: 20px;
    }
    
.underviser_img {
    width: 200px;
}

#table_of_content {
  padding: 40px 40px;
  background-color: white;
  outline: 1px solid black;
  height: fit-content;
  border-radius: 15px;
  position: sticky;
  top: 20px;
  right: 20px;
  display: none;
}

#table_of_content #links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


@media (min-width: 1400px) {
    .underviser_img {
    width: 500px;
}
    
    
    #modulerne {
      position: relative;
      height: 500px;
      margin-bottom: 50px;
    }

    .modul {
      position: absolute;
      width: 300px;
      overflow-x: auto;
      text-align: center;
      font-size: 14px;
    }

    #modul_1, #modul_8 {
      top: 0px;
    }

    #modul_8 {
      right: 0;
    }

    #modul_2, #modul_7 {
      top: 120px;
    }

    #modul_2 {
      left: 100px;
    }

    #modul_7 {
      right: 100px;
    }

    #modul_3, #modul_6 {
      top: 240px;
    }

    #modul_3 {
      left: 150px;
    }

    #modul_6 {
      right: 150px;
    }

    #modul_4,
    #modul_5 {
      top: 360px;
    }

    #modul_4 {
      left: 250px;
    }

    #modul_5 {
      right: 250px;
    }
}

 @media (min-width:1100px)  {
     
    /*  #uddannelse #modulerne .grid {
  // display: grid;
  // grid-template-columns: 1fr 1fr;
  // justify-content: center;
  // gap: 40px; 
} */

.underviser {
        flex-direction: row;
    }
     
     #kompas_sektion {
  display: grid;
  grid-template-columns: 4fr 5fr;
  justify-content: center;
  gap: 50px;
  align-items: center;
}
     
     #table_of_content {
         display: block;
     }
     
     #indhold {
  display: grid;
  grid-template-columns: 1fr 4fr;
  position: relative;
  gap: 50px;
}

.toc_title {
    font-weight: 800;
    text-transform: uppercase;
}
     #table_of_content a {
  display: block;
  color: black;
  text-decoration: none;
  margin-top: 5px;
}

#table_of_content a:first-child {
    margin-top: 20px;
}
     }

/* 
----------------------------------- KOMPAS ---------------------------------------
*/

.popup {
  display: none;
  position: fixed;
  width: 600px;
  max-height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 200;
  padding: 40px;
  outline: 2px solid black;
  border-radius: 20px;
}

.popup_content {
  max-height: 350px;
  overflow-y: auto;
}

.popup.active {
  display: block;
}

.popup img {
  width: 100%;
  height: 100%;
}

.popup .intro {
  display: flex;
  gap: 20px;
  position: relative;
}

.popup .close {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 24px;
  cursor: pointer;
  background: white;
  border: 2px solid black;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup h5 {
  margin-bottom: 10px;
}

.popup hr {
  margin: 20px 0;
}

.popup_title {
  font-size: 18px;
  margin-top: 25px;
}

.accordion_item_title {
  display: block;
  width: 100%;
  background-color: #d4eef8;
  padding: 2% 5%;
}

.accordion_item p {
  padding: 2% 2%;
  background-color: azure;
}

#kompas_page h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 36px;
  color: white;
}

#kompas_page h2 {
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
  color: white;
}

#kompas {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 50px auto;
}

#kompas_img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 400px;
  transform: translate(-50%, -50%);
  z-index: 1;
  
}

#kompas_img img {
  width: 50%;
  display: block;
  border-radius: 100%;
}

#kompas_helhed {
    position: relative;
    display: none;
}

#kompas_img2 {
  position: absolute;
  top: 65%;
  left: 50%;
  width: 400px;
  transform: translate(-50%, -50%);
  z-index: 1;
}

#kompas_img2 img {
  width: 100%;
  display: block;
  border-radius: 100%;
}



.felt {
  padding: 20px 20px;
  max-width: 350px;
  background-color: white;
  border-radius: 15px;
  outline: 2px solid black;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 1100px) {
  #kompas {
    height: auto;
  }

  #kompas_img {
    position: relative;
    transform: none;
    left: auto;
    top: 40px;
    margin: 0 auto 40px;
  }
  
  

  
}

@media (min-width:1100px)  {
    
    #kompas_img img {
  width: 100%;
}
    
    #kompas > div:not(#kompas_img) {
  position: absolute;
  width: 200px;
  font-size: 14px;
  line-height: 1.4;
}

/* 🔵 TOP (BLUE) */
#blue {
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background-color: #cae5fa;
}

/* 🔴 TOP RIGHT (RED) */
#red {
  top: 150px;
  right: -120px;
  z-index: 2;
  background-color: #f9d3e0;
}

/* 🟡 BOTTOM RIGHT (YELLOW) */
#yellow {
  bottom: 150px;
  right: -120px;
  z-index: 2;
  background-color: #fcf5c9;
}

/* 🟣 BOTTOM (PURPLE) */
#purple {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  background-color: #cfb7d7;
}

/* 🟢 BOTTOM LEFT (GREEN) */
#green {
  bottom: 150px;
  left: -120px;
  z-index: 2;
  background-color: #bcda9e;
}

/* 🟠 TOP LEFT (ORANGE) */
#orange {
  top: 150px;
  left: -120px;
  z-index: 2;
  background-color: #ffdebb;
}

#kompas_helhed {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 100px;
}

#kompas_helhed img {
  max-width: 600px;
}

#kompas_helhed .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 150px;
}

#kompas_helhed p {
  font-size: 14px;
}

#kompas_secondary {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 60px auto;
}

#kompas_secondary > .felt {
    position: absolute;
    width: 300px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 99;
  }

  /* 🔵 TOP */
  #felt1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #cae5fa;
  }

  /* 🔴 TOP RIGHT */
  #felt2 {
    top: 130px;
    right: -200px;
    background-color: #f9d3e0;
  }

  /* 🟡 BOTTOM RIGHT */
  #felt3 {
    bottom: 90px;
    right: -200px;
    background-color: #fcf5c9;
  }

  /* 🟣 BOTTOM */
  #felt4 {
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #cfb7d7;
  }

  /* 🟢 BOTTOM LEFT */
  #felt5 {
    bottom: 90px;
    left: -200px;
    background-color: #bcda9e;
  }

  /* 🟠 TOP LEFT */
  #felt6 {
    top: 130px;
    left: -200px;
    background-color: #ffdebb;
  }

.kompas_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
}

#kompas_secondary .felt {
  cursor: default;
}
} 

/* 
----------------------------------- BOGEN ---------------------------------------
*/


#bogen {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
  padding: 0;
}

     #bogen .wrapper {
  padding: 15px 15px;
  margin-top: 50px;
}

     #bogen .links {
  text-align: center;
  padding: 15px 15px;
}

#bogen .wrapper img {
  max-height: 400px;
}


#bogen .links h2 {
  text-transform: uppercase;
  font-weight: 800;
}

#bogen .buttons a {
  background-color: #e64f3b;
  width: fit-content;
  padding: 10px 20px;
  border-radius: 15px;
  color: white;
  text-decoration: none;
}

/* #bogen .other_books {
  width: 100vw;
  height: 400px;
  background-color: aqua;
  padding: 0 10%;
} */

#bogen .ratings {
  padding: 0 10%;
  margin-top: 40px;
}

#bogen .ratings div {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  
}

#bogen .ratings div .author {
  font-weight: 600;
  text-align: right;
  padding-right: 50px;
  margin-top: 20px;
}

#bogen .lector {
    padding: 0 10%;
  
}

#bogen .lector h2 {
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 800;
  text-align: center;
}

#bogen .buy {
    padding: 0 10%;
    margin-top: 40px;
    margin-bottom: 40px;
}

#bogen .buy h2 {
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
}

 @media (min-width:1100px)  {
     
     #bogen .links {
  text-align: center;
  padding: 0 10%;
}

     
     #bogen .wrapper {
  margin-top: 50px;
  
}
    
    #bogen .buttons {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 20px;
} 
     
        #bogen .wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-content: center;
  align-items: center;
  
}

#bogen .ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
    }


/* 
----------------------------------- KONTAKT ---------------------------------------
*/

#kontakt {
    margin-top: 50px;
    margin-left: 10%;
    margin-right: 10%;
    
}

#kontakt h1 {
    text-align: center;
    text-transform: uppercase;
}

/* 
----------------------------------- TILMELD ---------------------------------------
*/

#tilmeld {
    margin-top: 50px;
    margin-left: 10%;
    margin-right: 10%;
    
}

#tilmeld h1 {
    text-align: center;
    text-transform: uppercase;
}
