/*start på header02 - slet hvis du ikke bruger den - stil til header02 (tre billeder)*/

.header {
  background-color: #411e60;
  border-radius: 20px;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.divOverlay {
  margin: 4em;
  position: relative;
  aspect-ratio: 2.6 / 1;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1em;
}

.flexBillede {
  flex: 1; /* Distributes space evenly */
  max-width: calc(33.33% - 1em); /* Ensures they fit with the gap */
}

.HeaderTitel {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titleBig {
  background-color: rgba(65, 30, 96, 0.65);
  padding: 30px;
}

.titleSmall {
  background-color: rgba(65, 30, 96, 0.65);
  padding: 20px;
}

.textHeader {
  color: #4ccb91;
}

/*slut header02*/

.barsGoo {
  color: #4ccb91;
}

.øvelseBoxElement {
  border-left: solid #411e60 0.2em;
}

.headerØv {
  color: #411e60;
}

.tooltip {
  border-bottom: 1.5px dotted #4ccb91;
}

.tooltip-text {
  color: #411e60;
}

.tooltipTip {
  color: #411e60;
}

.brug-sprog-instr {
  border-left: solid #411e60 0.2em;
}

/*a.01 */

.widd {
  max-width: 400px;
}

.a01MainFlex {
  display: flex;
  justify-content: center;
}

.a01MainContain {
  margin-bottom: 75px;
}

.a01Flex-container {
  border-radius: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 30px;
  height: auto;
  transition: 0.6s ease;
  background-color: white;
}

.a01Flex-element {
  border: solid grey 1px;
  font-size: 1.2em;
  margin: 5px;
  padding: 8px;
  height: 2em;
  border-radius: 15px;
  transition: 0.4s ease;
  color: #86868b;
  background-color: white;
}

.a01Flex-element:hover {
  box-shadow: 0px 8px 16px 0px;
  cursor: pointer;
}

/* a.02 */

.gridOversQ {
  display: grid;
  grid-template-columns: auto;
  gap: 2em;
}

@media (max-width: 1200px) {
  .gridOversQ {
    grid-template-columns: auto;
  }
}

.spanskQ {
  border: solid 1px #86868b;
  color: #86868b;
  position: relative;
}

.spanskQ {
  padding: 10px 20px;
}

.inputSpanOversQ {
  border: none;
  border-bottom: 1px solid #86868b;
  font-size: 1em;
  outline: none;
  padding: 5px;
  transition: 0.4s ease;
  background-color: #ebebec;
  position: relative;
}

.feedBQ {
  position: absolute;
  top: 0px;
  right: 0px;
  display: flex;
  justify-content: end;
}

.ikonSQ {
  color: green;
  font-size: 1.2em;
  position: absolute;
  top: 0px;
  right: 0px;
}

.ikonFQ {
  color: red;
  font-size: 1.2em;
  position: absolute;
  top: 0px;
  right: 0px;
}

.hideVisQ {
  visibility: hidden;
}

.tooltipBil {
  position: relative;
  display: inline-block;
}

.tooltipBilCont {
  position: absolute;
  bottom: 170%; /* du rykker den 170% væk fra bottom, så er den over tooltip men til højre for det*/
  left: 50%; /* du rykker den 50% mod venstre, så er den inde over tooltip */
  z-index: 2;
  background-color: white;
  visibility: hidden;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 2px 2px 2px #bbb;
  border: solid #bbb;
  font-family: arial;
  font-weight: normal;
  font-size: 14px;
  color: #86868b;
  line-height: 150%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 510px;
  margin-left: -255px;
}

@media (max-width: 799px) {
  .tooltipBilCont {
    width: 300px;
    margin-left: -150px;
  }
}

.tooltipBil:hover {
  cursor: pointer;
}

.tooltipBil:hover .tooltipBilCont {
  visibility: visible;
}

.bilToolT {
  width: 48%;
  height: auto;
}

.bilToolT:first-of-type {
  margin-right: 0.2rem;
  border-right: solid #bbb;
}

/* b.01 match */

/* match*/

.ekstraElem {
  transition: 0.3s ease;
  position: relative;
  background-color: white;
}

.a01Grid {
  display: grid;
  grid-template-columns: auto auto auto;
  margin: 50px 50px 100px 50px;
  gap: 20px;
  font-size: 1.3em;
  position: relative;
}

.a01GridElement {
  background-color: white;
  font-size: 1.8rem;
  border-radius: 7px;
  border: solid #86868b 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #86868b;
  transition: 0.3s ease;
  width: 332px;
  height: 221px;
  overflow: hidden;
}

.a01GridElement:hover {
  cursor: pointer;
  border: solid #411e60;
}

@media (max-width: 799px) {
  .a01GridElement {
    width: 100%;
    height: auto;
  }
  .a01Grid {
    grid-template-columns: auto auto;
    margin: 10px 10px 50px 10px;
    gap: 10px;
    font-size: 1rem;
  }
}

.bilMatch {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.bilMatch:hover {
  height: 102%;
  width: auto;
}

.testClass {
  color: red;
}

.blueBorderZ {
  background-color: rgba(0, 82, 150, 0.1); /* 10% opacity */
  border: solid #005296;
  box-shadow: 0 0 0 4px #4ccb91, 0 0 20px 10px rgba(76, 203, 145, 0.4);
}

.redBorderZ {
  border: solid red;
}

.greenBorderZ {
  border: solid green;
}

.slutZ {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  top: 0px;
}

.heroWrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dispZ {
  display: none;
}

.slutImgZ {
  width: 350px;
  height: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.slutImgZ:hover {
  border: solid #4ccb91 1px;
  cursor: pointer;
}

.slutHeadZ {
  color: #368542;
  font-size: 1.4em;
}

.slutPZ {
  border-bottom: solid #bbb;
  color: #86868b;
  padding: 10px;
  text-align: center;
}

.fade-in {
  display: block;
  animation: fade-in 2.3s ease-in forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    display: none;
  }

  100% {
    opacity: 1;
    display: block;
  }
}

.Instru {
  color: #86868b;
  font-size: 1.1rem;
  text-align: justify;
  line-height: 120%;
  padding: 0px;
  margin: 7px;
}

/* b.02 */

.item0x {
  margin: 5px;
}

.ordiX {
  /*width: 100px;*/
  color: #86868b;
  border: solid grey 1px;

  font-size: 1em;
  margin: 10px;
  padding: 10px;

  transition: 0.6s ease;
}

.ordConX {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 20px 30px 40px 30px;
}

.pencil-icon {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: auto;
}

.tTip {
  position: relative;
  display: inline-block;
  color: #411e60;
}

.tTip-text {
  position: absolute;
  bottom: 140%; /* du rykker den 100% væk fra bottom, så er den over tooltip men til højre for det*/
  left: 50%; /* du rykker den 50% mod venstre, så er den inde over tooltip */
  margin-left: -150px; /* du justerer med en negativ margen */
  z-index: 2;
  width: 300px;
  background-color: white;
  visibility: hidden;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 2px 2px 2px #bbb;
  border: solid #bbb;
  font-family: arial;
  font-weight: normal;
  font-size: 14px;
  color: black;
  text-align: center;
  line-height: 150%;
}

.tTip:hover {
  cursor: pointer;
}

.tTip:hover .tTip-text {
  visibility: visible;
}

/* b.02 */

.c04MainFlex {
  display: flex;
  justify-content: center;
}

.c04MainContain {
  margin-bottom: 75px;
}

.c04Flex-container {
  border-radius: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  /*padding: 30px;*/
  height: auto;
  transition: 0.6s ease;
  flex-direction: row-reverse;
}

.c04Flex-element {
  border: solid grey 1px;
  font-size: 1.2em;
  margin: 5px;
  padding: 8px;
  height: 2em;
  border-radius: 15px;
  transition: 0.6s ease;
  color: #86868b;
  background-color: white;
  /*text-align: center;*/
}

.danskAdj {
  color: white;
  background-color: #bbb;
}

.c04Flex-element:hover {
  box-shadow: 0px 8px 16px 0px;
  cursor: pointer;
}

.blueBorder {
  background-color: rgba(0, 82, 150, 0.2);
}

.redBorder {
  border: solid red;
}

.svarCss {
  /*omdøb den her ved lejlighed da den hedder b men skulle have hedet c*/
  background-color: white;
  color: #86868b;
  font-size: 1.2em;
  margin: 5px;
  padding: 8px;
  height: 2em;
  border: solid green;
  border-radius: 15px;
  transition: 0.4s ease;
  background-color: white;
}

.slut {
  display: flex;
  justify-content: center;
  align-items: center;
}

.disp {
  display: none;
}

.slutImg {
  width: 13rem;
  height: auto;
  border-radius: 50%;
  justify-self: left;
  margin-right: 10px;
}

.alignC {
  display: flex;
  align-items: center;
}

.slutHead {
  color: #368542;
  font-size: 1.4em;
}

.slutP {
  border-bottom: solid #bbb;
  color: #86868b;
  padding: 10px;
}

.fade-in {
  display: block;
  animation: fade-in 2.3s ease-in forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    display: none;
  }

  100% {
    opacity: 1;
    display: block;
  }
}

/* c.02 */
/* den her øvelse skal ændres da den ikke er responsiv - se tidligere moduler, hvor du har lavet responsiv sandt falsk*/
/* grid container til sandt falskt */
.grid-containerC02 {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  font-size: 1.2em;
  margin: 20px 30px 100px 30px;
}

.grid-headingC02 {
  grid-column: 1 / 4;
  /*text-align: center;*/
  /*font-weight: bold;*/
  color: black;
  margin-bottom: 20px;
  margin-top: 15px;
  border-bottom: solid #86868b;
  padding-bottom: 10px;
  text-align: center;
}

.spørgsmålC02 {
  grid-column: 1 / 2;
  margin-right: 20px;
  display: flex;
  align-items: center;
  color: #86868b;
}

.spørgsmålC02 p {
  /* den her klasse fjerner margin fra alle p-elementerne med spørgsmål i*/
  margin: 0px;
}

.sandtC02 {
  grid-column: 2 / 3;
}

.falsktC02 {
  grid-column: 3 / 4;
}

.falsktC02,
.sandtC02 {
  background-color: white;
  padding: 15px;
  border-radius: 10%;
  color: #bbb;
  width: 50px;
  height: 50px;
  display: flex;
  text-align: center;
  justify-content: center;
  transition: 0.6s ease;
}

.falsktC02:hover,
.sandtC02:hover {
  box-shadow: 0px 8px 16px 0px;
  cursor: pointer;
  color: #86868b;
}

.dispNone {
  display: none;
}

.fade-in {
  display: block;
  animation-delay: 0.5s;
  animation: fade-in 1.2s ease-in forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    display: none;
  }

  100% {
    opacity: 1;
    display: block;
  }
}

.fade-out-02 {
  /* to add effects on events use js. You simply add the css class to the element with the effect through an eventlistener */
  animation: fade-out-02 0.03s ease-out forwards;
}
@keyframes fade-out-02 {
  0% {
    opacity: 1;
    display: block;
    /* visibility: visible;*/
  }

  100% {
    opacity: 0;
    display: none;
    /*visibility: visible;*/
  }
}

.red {
  color: red;
}

.green {
  color: green;
}

.corr {
  position: absolute;
  top: -18px;
  left: 0px;
  font-size: 12px;
}

.rundImg02 {
  width: 150px;
  height: auto;
  border-radius: 50%;
  margin: 10px;
  border: solid white 3px;
}

/* c.03 */

.grid {
  display: grid;
  grid-template-areas: "header header" "laBoca puerto" "palermo svar";
  margin: 20px 75px 100px 75px;
  gap: 5px;
  transition: 0.6s ease;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-areas: "header" "svar" "laBoca" "puerto" "palermo";
    margin: 20px 0px 50px 0px;
  }
}

.barrio {
  border: solid #bbb;
  align-items: center;
  min-width: 400px;
  min-height: 250px;
  transition: 0.6s ease;
  position: relative;
  min-height: 350px;
}

@media (max-width: 1200px) {
  .barrio {
    width: 100%;
    min-height: 250px;
  }
}

.barrio:hover {
  cursor: pointer;
  border: solid #005296 1px;
}

.headVocab {
  /* instruktion til opgaven */
  grid-area: header;
}

.laBoca {
  grid-area: laBoca;
  font-size: 1.3em;
  padding: 20px;
}

.puerto {
  grid-area: puerto;
  font-size: 1.3em;
  padding: 20px;
}

.palermo {
  grid-area: palermo;
  font-size: 1.3em;
  padding: 20px;
}

.vocab-col {
  grid-area: svar;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  height: auto;
  transition: 0.6s ease;
}

.vocab {
  border: solid grey 1px;
  font-size: 18px;
  margin: 5px;
  padding: 8px;
  height: 2em;
  border-radius: 15px;
  transition: 0.4s ease;
  color: #86868b;
  background-color: white;
}

.vocab:hover {
  box-shadow: 0px 8px 16px 0px;
  cursor: pointer;
}

.vocabX {
  display: none;
  border: solid grey 1px;
  font-size: 18px;
  margin: 5px;
  padding: 8px;
  height: 2em;
  border-radius: 15px;
  transition: 0.4s ease;
  color: #86868b;
  background-color: white;
  z-index: 99;
}

.blueBorder {
  border: solid #005296 1px;
}

.blueBack {
  background-color: rgba(0, 82, 150, 0.1);
}

.rundImg {
  width: 100px;
  height: auto;
  border-radius: 50%;
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.maxx {
  max-width: 375px;
}

/*en animation som fader et object ind*/

.fade-in {
  display: block;
  animation: fade-in 0.7s ease-in forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
    display: none;
  }

  100% {
    opacity: 1;
    display: block;
  }
}

.listIntro {
  padding-left: 10px;
  margin-top: 0px;
}

.listIntro > li {
  margin-bottom: 5px;
}

/* d.01 */

.brug-sprog-instr {
  background-color: white;
  border-radius: 2%;
  margin-top: 50px;
}

.dTekst-holder {
  width: 500px;
  margin: 0px 60px 100px 60px;
}

@media (max-width: 799px) {
  .dTekst-holder {
    width: 100%;
    margin: 0px 0rem 5rem 0rem;
    padding: 2rem;
  }
}

.tekstInstr {
  color: #86868b;
  font-size: 1.1em;
  text-align: justify;
  line-height: 150%;
}

.flexCenter {
  display: flex;
  align-items: center;
  padding: 8px 0px 8px 5px;
}

/* ordforråd d.01 */

/* opgave d brug sproget */

.ordConiM {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  padding: 20px 30px 40px 30px;
}

.ordiM {
  color: #86868b;
  border: solid grey 1px;
  font-size: 1em;
  margin: 10px;
  padding: 10px;
  border-radius: 15px;
  transition: 0.6s ease;
}

.ordiM:hover {
  cursor: pointer;
}
.ordiM:hover .tooltipVoc-textM {
  visibility: visible;
}
.ordiM:hover .tooltipVocM {
  color: #008080;
}

.griddM {
  padding: 5px;
  background-color: #ebebec;
  display: flex;
  justify-content: center;
  align-items: center;
}

.griddM > div {
  background-color: white;
  width: 30%;
}

@media (max-width: 799px) {
  .griddM {
    flex-direction: column;
    width: 100%;
  }
  .griddM > div {
    background-color: white;
    width: 100%;
  }
}

.item01M {
  border: solid #228b22 1px;
  margin: 5px;
  border-radius: 8px;
}

.item01xM {
  border: solid #dc4e7b 1px;
  margin: 5px;
  border-radius: 8px;
  min-height: 307px;
}

.item02M {
  border: solid #bf00ff 1px;
  margin: 5px;
}

.item04M {
  border: solid #008080 1px;
  margin: 5px;
  border-radius: 8px;
}

.item04xM {
  border: solid #228b22 1px;
  margin: 5px;
  border-radius: 8px;
  min-height: 307px;
}

.head01M {
  color: #228b22;
  font-size: 1.2em;
  text-align: center;
  padding-top: 30px;
}

.head01xM {
  color: #dc4e7b;
  font-size: 1.2em;
  text-align: center;
  padding-top: 30px;
}

.head02M {
  color: #bf00ff;
  font-size: 1.2em;
  text-align: center;
  padding-top: 30px;
}

.head04M {
  color: #008080;
  font-size: 1.2em;
  text-align: center;
  padding-top: 30px;
}

.head04xM {
  color: #228b22;
  font-size: 1.2em;
  text-align: center;
  padding-top: 30px;
}

.tooltipVocM {
  position: relative;
  display: inline-block;
}

.tooltipVoc-textM {
  position: absolute;
  bottom: 170%;
  left: 50%;
  margin-left: -80px;
  z-index: 2;
  width: 160px;
  background-color: white;
  visibility: hidden;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 2px 2px 2px #bbb;
  border: solid #bbb;
  font-family: arial;
  font-weight: normal;
  font-size: 14px;
  color: #86868b;
  text-align: left;
  line-height: 150%;
  text-align: center;
}

.vocab-boxM {
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 500px;
  margin: 2rem auto;
  font-family: sans-serif;
}

.vocab-boxM table {
  width: 100%;
  border-collapse: collapse;
}

.vocab-boxM th,
.vocab-boxM td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.vocab-boxM thead {
  border-bottom: 2px solid #999;
}

.esM {
  color: #dc4e7b;
}

.vocab-headerM {
  font-family: sans-serif;
  font-size: 2.8rem;
  font-weight: bold;
  text-align: center;
  animation: colorShiftM 8s infinite linear;
}

@keyframes colorShiftM {
  0% {
    color: #bf00ff;
  }
  20% {
    color: #008080;
  }
  40% {
    color: #228b22;
  }
  60% {
    color: #f3d430;
  }
  80% {
    color: #dc4e7b;
  }
  100% {
    color: #228b22;
  }
}

.vocAndPencil {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.pencil-vocab {
  width: 2.2rem;
  height: auto;
  margin-left: 1rem;
}

/*gør at alle elementerne få 100% width for at tilpasse til mobil */

@media (max-width: 799px) {
  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }
}
