html {
    -webkit-text-size-adjust: 100%; /* Prevent auto text scaling */
    text-size-adjust: 100%; /* Standard property for broader support */
}
p {
    font-size: 15px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5 {
  font-family: "Trebuchet MS", sans-serif;
  font-weight: bold;
}

.navbar-toggler-icon {
  background-image: url("https://doorsofsweden.com/cdn/images/hamburger.svg");
}

h3 {
  font-size: 18px;
}

h2 {
  font-size: 20px;
}

h1 {
  font-size: 26px;
}

div:fullscreen {
    background-color: #f5f5f5;
}

body {
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    margin: 0px;
    overflow-x: hidden !important;
    font-display: optional;
    font-size: 15px;
  
  }

  body:not(.darkmode) {
    background-color: white;
    color: black;
    }    


  h1,h2,h3,h4,h5 {
      font-family: "Trebuchet MS",sans-serif;
  }

h2.category {
    margin-block-end:10px;
    border-bottom: 1px solid #dddddd;
}

.imgMultilingual {
  width:20px;
  margin-bottom:15px;
}
  canvas {
    overflow: hidden;
  }

  .frontPageLink{

    padding-right:10px;
    float:left;
    line-height: 170%;
    overflow:hidden;

  }

.card-text {
  margin-top: 0px;
}

.linkDivCard img:hover {
    filter: brightness(1.02); /* Brighter on hover */
}

.linkDivCard a {
  text-decoration: none;
}

.textBox {
    background-color: #f8f6f3;
    border-radius:8px;  
    min-height:210px;
    padding: 20px;
    margin-top:10px;
    margin-left:0px;
    width:415px;
    float:left;
    margin-right:10px;
  }

  @media screen and (max-width: 500px) {
    .textBox {
      width: 100%;
    }
    
  }

.imgDiscord {
        padding-left:15px;
        width:100px;
        height:auto;
        float:right;
        opacity:0.7
}

  .infoBox {
    padding:3px;
    padding-left:10px;
    padding-right:10px;
    margin-top:10px;
    background-color:#fff4cd;
    border-radius:10px
  }
  
  a:link    {color:#2559a7;}  /* unvisited link  */
  a:visited {color:#4b4f9a;}  /* visited link    */ 
  a:active  {color:#2559a7;}  /* selected link   */ 
  
  a {
    text-decoration: none;
  }
  
img {
    overflow:hidden;
}
  
  
  .mainContent {
    max-width: 1100px;
    width:100%;
    margin: 0px auto;
    display: flex;
  }
  
  .leftCol {
    flex-grow: 1;
    flex-basis: 0;
    min-width: 0;
    padding-left: 15px;
    padding-right: 10px;
    overflow: hidden;
    max-width: calc(100% - 222px); /* Prevents overshooting when rightCol loads */
  }

  .rightCol {
    width: 212px; /* Fixed width */
    flex-shrink: 0; /* Prevents shrinking */
    margin-left: 10px;
    padding-top: 15px;
  }

  @media (max-width: 980px) {
    .rightCol {
      display: none;;
    }
    .leftCol {
      flex-grow: 1; /* Make it take all available space */
      width: 100%;
      max-width: none; /* Allow full width when in mobile */
    }

    .mainContent{
      max-width: none;
      width: 100%;
    }
  }




  .rightInner {
    border: #DDDDDD 1px solid;
    border-radius: 15px;
    padding: 10px;
    min-height: 600px;
  }
 

  
  ul {
    list-style: none;
    padding-left: 0;
  }
  

  
  .logo {
    width: 110px;
    height: 40px;
    margin-top:10px;
    margin-right:10px;
  }

  
  #logoDiv {
    width: 250px;
    float: left;
  }

  .subjectList {
      line-height: 120%;
      margin-top:5px;
    }

    .breadcrumb {
      padding-left: 0px !important;
      background:transparent !important;
    
    }
    .breadcrumb {
      display: flex;
      flex-wrap: nowrap !important;
      overflow: hidden !important;
      white-space: nowrap !important;
      gap: 0.1em;
      padding-left: 0;
      padding-right: 0;
      margin-top: 10px;
    }
    
    .breadcrumb-item {
      white-space: nowrap;
      flex-shrink: 0;
      padding-left: 0;
      padding-right: 0;
    }
    
    .breadcrumb-item.active {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex-shrink: 1;
      min-width: 0; /* viktigt för att ellips ska fungera i flex-container */
    }
  .linkDivCard {
    font-size:14px;
    width:100%;
    overflow: hidden;
    padding:5px;
    background-color: #F9F9F9;
    border-radius: 12px;
    border:1px solid #dddddd;
    float: left;
    margin-bottom: 8px;
    line-height: 110%;
  }

  .linkDivBody {
    height:60px;
    margin-top: 4px;
  }

  .linkDiv {
    font-size: 14px;
    width: 180px;
    height: 210px;
    overflow: hidden;
    padding: 5px;
    background-color: #F9F9F9;
    border-radius: 12px;
    border: 1px solid #dddddd;
    float: left;
    margin-right: 8px;
    margin-bottom: 8px;
    line-height: 110%;
}

.linkDivBlog {
  margin-top: 10px;
  font-size: 14px;
  width: 212px;
  min-height: 140px;
  overflow: hidden;
  padding: 10px;
  background-color: #F9F9F9;
  border-radius: 12px;
  border: 1px solid #dddddd;
  float: left;
  margin-right: 8px;
  margin-bottom: 8px;
  line-height: 130%;
}

.leftCol .linkDivBlog {
  min-height:170px;
  width: 205px;
}
.leftCol .imageLinkBlog {
  width: 183px;

}
    .subjectSymbol {
      height:20px;
      width: 26px;
      border:1px solid #DDDDDD;
  }
  
  .subjectSymbolSmall {
      height:10px;
      border:1px solid #DDDDDD;
  }
    .imageLinkCard {
      aspect-ratio: 18/13;
      object-fit: cover;
      border-radius: 10px;
      object-position: top;
    }

    .imageLink {
      width: 170px;
      height: 140px;
      object-fit: cover;
      border-radius: 10px;
      object-position: top;
      margin-bottom: 5px;
  }
  
    .subjectListItem {
      font-size:15px;
      padding-right:10px;
      float:left;
      background-color: #f1f1f1;
      border-radius: 5px;
      margin:2px;
      padding:5px;
      padding-bottom: 3px;
      width: 150px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow:hidden;
      height:24px;
    }
  
    .subjectList li {
      font-size:14px;
      padding-right:10px;
      border-radius: 5px;
      margin:2px;
      margin-left:0px;
      height: 20px;
      overflow:hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  
  .subjectListTitle {
      font-size:16px;
      margin-top:30px;
      margin-bottom: 5px;
      clear:both;
  }
  
  .showMore {
      font-weight: bold;
      padding-top:5px;
      margin-bottom: 20px;
      margin-top:10px;
      border-top: 1px solid #dddddd;
  }
  
  .list-container {
      display: flex;
      flex-direction: column;
  }
  
  .close-modal {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 40px;
      color: #999999;
      cursor: pointer;
      border: none;
      background: none;
      -webkit-user-select: none;
      user-select: none;
  }
  
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Don't show google ads if not visible */
  ins.adsbygoogle[data-ad-status="unfilled"] {
      display: none !important;
  }
  

 
  .dropdiv {
      width:200px;
      display: inline;
  }
  
 

/* from-to menu if this language has the same quiz as the page quiz */
#from-languages a.equivalent {
    font-weight: bold;
}
  /* End drop down */



.subjectList2 {
    float:left;
    background-color: #f8f6f3;
    padding:4px;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 3px;;
}

.subjectList2.focus {
    font-weight: bold;
}

.subjectList2 a {

}



#searchResults {
    background-color: white;
    border: 1px solid #ccc;
    padding:10px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 12px;
    top: 100%; 
    left: 0; 
    display: none; 
    min-width: 300px;
}

.divQuiz {
    font-size: 12px;
    opacity: 1;
    line-height: 100%;
    margin-top:4px;
}

.darkmodeDiv {
    padding-top:20px;
    padding-bottom:20px;
}
  

  
  
  
  @media (max-width: 980px) {
  
 
  
    .cookies-eu-banner {
      padding: 0px;
    }
  
    

  }

  @media (pointer: coarse) {
    .noMobile {
        display: none;
    }
  }

  @media (max-width: 750px) {


    #frontGlobe {
        display:none;
    }
  }
  
  @media (max-width: 550px) {
    h1 {
        font-size: 18px ;
    }

    .subjectSymbol {
        width:20px;
        height:16px;
    }

    .subjectList {
      line-height: 170%;
    }
  
    #languages {
      display:none;
    }
  

    #from-languages {
        left:170px;
    }


    #searchResults {
      left:-75px;
      width: 200px;
      max-width:200px;
      min-width: 200px;
    }

 
  
  }

  img.nav-item.dropdown.supported {
    width: 20px;
    height: auto;
    margin-right: 5px;
    vertical-align: middle;
}

li.nav-item.dropdown {
  list-style: none;      
  line-height: 1.8em;     
}

  .content-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

  
  .list-container + .list-container {
    padding-top: 20px; /* Adjust the padding value as needed */
  }


  .video-container {
    position: relative;
    width: 100%;
    /* Aspect ratio for 16:9 videos */
    padding-top: 56.25%;
    overflow: hidden;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .searchResultLine {
    font-size: 14px;
    padding-bottom: 7px;;
  }

  .searchResultImg {
    width:16px;
  }


  footer {
    background-color: #f2f2f2;
    /* Same color for both light and dark mode */
    border-top: 8px solid #940f0f;
  }

  header {
    background-color: #f2f2f2;
    /* Same color for both light and dark mode */
    border-bottom: 5px solid #940f0f;
  }

  .rightBottom p a {
    margin-top: 5px;
    display: block;
    font-size: 13px;
}

.rightBottom {
  clear: both;
  margin-top: 20px;
  border: #DDDDDD 1px solid;
  border-radius: 15px;
  padding-left: 15px;
  padding-right: 10px;
  padding-top: 15px;
}


.imageLinkBlog {
  width: 190px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  object-position: top;
  margin-bottom: 5px;
}

#darkmodeDiv {
  padding-top: 20px;
  padding-bottom: 20px;
}

.footerContent {
  width:100%;
  align-items: left;
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom:70px;
}



  .nav-link {
    font-size: 15px;

}

/* Reserve space for bold */
.nav-link::before, .dropdown-item::before {

  content: attr(data-text);
  font-weight: 700;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  display: block;
}

.nav-item:hover > .nav-link {
  font-weight: 700;
}

  .carousel-inner {
    display: flex;
    overflow: hidden;
  }
  
  .carousel-item {
    flex: 0 0 calc(100% / 3); /* Ändra 3 till det antal slides du vill visa */
    max-width: calc(100% / 3);
    transition: transform 1s ease-in-out;
  }

  .gameModeText {
    float: right;
    max-width: 300px;
    margin: 10px;
    margin-top: 20px;
    margin-right: 0px;
    background-color: #f0eeeb;
    padding: 16px;
    border-radius: 15px;
    padding-bottom: 10px;
}

@media (max-width: 750px) {
  .gameModeText {
      float: unset;
      margin-left: 0px;
      margin-right: 0px;
      padding-bottom: 5px;
      max-width: unset;
  }
}

.expandable {
  max-height: 110px;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  box-shadow: inset 0 -10px 10px -5px rgba(0, 0, 0, 0.03);
}

.expanded {
  max-height: 1100px; /* Large enough to show full content */
}

.gameModeHeader {
  margin: 0px;
  font-size: 17px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  border: none;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 10px auto 0 auto;
}

.quizText {
  margin-top: 20px;
}

.instructionText {
  margin-top: 20px;
}

.expandable p {
  margin-bottom: 10px;
  margin-top: 10px;
}

.gameModeHeader {
  margin: 0px;
  font-size: 17px;
}

#searchInput {
  margin-left:9px;
  font-size:15px;
}

.emodal_start {
  height:200px;
  width:200px;
  
  border:1px solid lightgray;
  background-color:#eeeeee !important; 
  font-size:20px;
  color:#222222;
}

.custom-spacing > [class*="col-"] {
  margin-bottom: 1px; 
}

.bottom-margin {
    padding-bottom: 8px;
    margin-bottom: 15px;
    margin-top: 20px;
    border-bottom: 5px solid #e8a900;
    margin-right: 30px;
}

.dropdown a {
  text-decoration: none;

}



.dropdown-menu .dropdown-item:hover {
  background-color: #e5e4e1;
}

@media (max-width: 767.98px) {
  .navbar-nav .nav-item {
    margin-bottom: 4px; /* eller 2px för ännu tätare */
  }

  .linkDiv {
    width:170px;
  }
  .imageLink{
    width:160px;
  }

  .navbar-nav .nav-link {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 1rem; /* ev. lite mindre text om du vill */
  }

  .navbar-nav .li-quiz .dropdown-toggle::after {
    display: none;
  }

  .navbar-nav .quiz-dropdown {
    display: none !important;
  }

  .leftCol {

    padding-left: 10px;

  }
}
.navbar-nav .dropdown-menu {
    position: static;
    background-color: #f5f5f5;
}

@media (min-width: 768px) {
  .navbar-expand-md .navbar-nav .nav-link {
      padding-left: unset;
      padding-right:15px;
  }

}
@media (min-width: 1100px) {
.logo {
  width:150px;
  height:55px;
}
}

@media (max-width: 370px) {
  .logo {
    width:0px;
  }
}

.supported {
  font-weight: bold;
  }

  .nav-link.dropdown-toggle > .flagIconDrop  {
    margin-bottom: 3px;
    margin-right: 5px;
  }

  @media (max-width: 576px) {
  .nav-link.dropdown-toggle > .flagIconDrop  {
    margin-right: 0px;
  }
}

  .flagIconDrop  {
    width:20px;
    height:15px;
    margin-bottom: 0px;
    margin-right: 3px;
  }

.supported {
  font-weight: bold;
  }

  .blog-post {
    font-size: 16px;
    font-weight: bold;
    line-height: 170%;
}

.footerContent .nav-link {
  display: inline;   
}



/* Two-column dropdown using CSS Grid for consistency */
.dropdown-menu.two-columns {
  display: none;
  grid-template-columns: auto auto;
  width: auto;
  min-width: 0;
  max-width: 98vw;
  padding: 0.2rem 0.4rem; /* Tighter padding */
  white-space: normal;
  box-sizing: border-box;
  overflow-x: auto;
}

.dropdown-menu.two-columns.show {
  display: grid;
}

.dropdown-menu.two-columns > li {
  break-inside: avoid;
}

.dropdown-menu.two-columns .dropdown-item {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  white-space: nowrap;
  max-width: 32ch;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .dropdown-menu.two-columns {
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
  }
  .dropdown-menu.two-columns.show {
    display: block;
  }
  .dropdown-menu.two-columns > li {
    width: 100%;
  }
  .dropdown-menu.two-columns .dropdown-item {
    white-space: normal;
  }
}

/* Prevent any dropdown from overflowing the viewport horizontally */
.dropdown-menu {
  max-width: 98vw;
  box-sizing: border-box;
  overflow-x: auto;
}

.btn2 {
  min-width: 120px;
  padding: 8px 16px;
  border-radius: 999px; /* rundade */

  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn2:active {
  transform: scale(0.97);
}

#reviewButton {
   background-color: white;
  color: #444;
  border: 2px solid #ccc;
  font-weight: 300;
  min-width:90px;
}

#start_quiz {
  padding: 4px 16px;
  background-color: #2c9296;
  color: #ffffff;
  border: 2px solid #ccc;
}
#start_quiz:hover {
  background-color: #36a599;
}

#reviewButton:hover {
  background-color: #f5f5f5;
}

#playAgainButton {
  background-color: #26978b;
  color: #ffffff;
  border: 2px solid #ccc;
}
#playAgainButton:hover {
  background-color: #36a599;
}

  @media screen and (max-width: 800px) {
    #start_quiz {
      padding: 0px 16px;
        
      }
    }
