
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.nav {
  z-index: 99999;
  color: white;

  width: 100%;
  border-radius: 30px;
  position: fixed;

 background-color: var(--bg-color);

}



#h1text{
  font-size: 24px;
}

.footer-container {
  background-color:var(--text-color);
  color: var(--bg-color);
  text-align: center;
  padding: 20px 0;
}

.footer-container p {
  margin: 5px 0;
}
.navbar-nav {
  margin: 0 auto;
  display: flex;
  align-items: center;
  color: white;
}
.navbar-toggler-icon{
  background-color: black;
  border-radius: 5px;
}
.row{
  margin: 0;
padding: 0;
}
.sectiontext{ margin-left: 5%;
margin-right: 5%;}


.navbar-nav .nav-item .nav-link {
  transition: all 0.3s ease;
  font-size: 18px; 
  border-radius: 5px; 
  padding: 5px 10px; 
  border: 2px solid transparent; 
  background-color: var(--bg-color);
  border-color: var(--text-color-transparant);
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link:focus {
  color: #fff !important; 
  background-color: #004085; 
  border-color: var(--bg-color); 
}

h6{
  font-size: 28px;
  font-weight: 600;
  
}

img {
  width: 100%;
  height: auto;
}

#myCarousel{
  margin-top: 50px;
}

.carousel-caption{
  position: relative;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  left: 0%;
  bottom: 30%;

}

.btn-primary {
  transition: transform 0.3s;
  z-index: 1;
}

#settingsModalLabel{
  font-size: 25px;
}

.btn-primary:hover {
  transform: scale(1.1);
}
.margin-top-100px{
  margin-top: 200px;
}

:root {
  --text-color: black;
  --bg-color: white;
  --bg-color-transparant: rgb(255, 255, 255, 0.6);
  --text-color-transparant:  rgba(0, 0, 0, 0.3);
}

.dark-mode {
  --text-color: white;
  --bg-color: black;
  --bg-color-transparant: rgba(0, 0, 0, 0.4);
  --text-color-transparant:rgb(255, 255, 255, 0.3);
}

body {
  color: var(--text-color);
  background-color: var(--bg-color);
}
p{
  font-size: 15px;
  margin: 5%;
}
h1{
  font-size: 30px;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-color);
 font-weight: 600;
  letter-spacing: 2px;
  font-size: 25px;
}

.modal-content {
  background-color: var(--bg-color); 
}


.active {
  color: var(--text-color) !important;
  border-color: var(--bg-color) ;
}

.headertext{
  position: absolute;
  top: 10%;
width: 80%;

  margin: 10%;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
}


.close {
  color: var(--text-color) !important;
  transition: color 0.3s ease; 
  filter: brightness(150%);
}

.close:hover, .close:focus {
  color: rgb(0, 162, 255) !important;
}

.fa-cog {
  font-size: 30px;
  transition: transform 0.3s ease; 
 color:var(--text-color) ;
padding-right: 0 !important;
}
.btn-secondary{
 background-color: grey;
 transition: color 0.3s ease; 
 font-weight: 600;
}
.btn-secondary:hover, .btn-secondary:focus{
  background-color: rgb(0, 11, 165) !important;
  border-color: rgb(255, 255, 255) !important;
}

.fa-cog:hover,
.fa-cog:focus,
.fa-cog:focus-visible {
  animation: spin 1s  ease-in-out;
  outline: none; 
  color: rgba(0, 102, 161, 0.9);
  border-radius: 5px;
}




@keyframes spin {
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}
.form-check-input {
  transform: scale(2.5); 
  margin-top: 10px; 
  margin-right: 10px; 
  margin-bottom: 10px; 

}

.form-check-label {
  font-size: 1.5rem;
  margin-left: 20px;
}
.carousel-indicators{
  margin-bottom: 0px;
}



#bild2{
width: 80%;
border-radius: 15px;
margin-left: 10%;
margin-right: 10%;
}

@media only screen and (min-width: 992px) {
  .nav.scrolled {
    background-color: var(--bg-color); 
    transition: background-color 0.5s ease; 
  }

  .nav {
    max-width: 1000px;
    border-radius: 30px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  #myCarousel{
    margin-top: 0px;
  }
 
video{
  margin-top: 0%;
}


.sectiontext{ margin-left: 20%;
  margin-right: 20%;}

  .carousel-caption{
    position:absolute;
    top: 15%;
    left: 15%;
    bottom: 0%;
    
  }

}


@media only screen and (min-width: 1030px) {
 
  p{
    font-size: 25px;
    margin: 5%;
  }
  h1{
    font-size: 60px;
  }
}

@media only screen and (max-width: 590px) {
 


  .headertext{
    position: relative;

    color: var(--text-color) !important;
    background-color: var(--bg-color-transparant) !important;
  }
}


#languageLabel{
  font-size: 30px;
  grid-row: 1;
}
.language-selector-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); 
  z-index: 9999999;
}

.language-selector-modal-content {
  background-color:  var(--bg-color);
  padding: 50px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
  color: var(--text-color) ;
  min-width: 30%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
}

#lang-select {
  font-size: 26px;
  padding: 30px;
  border-radius: 5px;
  background-color:  var(--bg-color);
  color: var(--text-color) ;
  grid-row: 2;
}

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

.open-language-modal-btn {
  background-color: #5e5e5e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.open-language-modal-btn:hover {
  background-color: #242424;
}

.nav-link {
  font-size: 20px; 
  transition: font-size 0.3s ease; 
}
.nav-link:hover {
  font-size: 25px;
}



.epelespy-mode {
  filter: saturate(30%);
  
}



.epilepsy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.epilepsy-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(245, 245, 245);
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  color: rgb(0, 0, 0);
}

.epilepsy-popup-content h2 {
  margin-top: 0;
}

.epilepsy-popup-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #002042; 
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease; 
}

.epilepsy-popup-content button:hover,
.epilepsy-popup-content button:focus {
  background-color: #003366; 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(0, 21, 44, 0.774); 
}

.highlight-text {
  border: 2px solid yellow; 
}

.dyslexia-mode {

  font-family: 'opendyslexic'; 
 
}

@font-face {
  font-family: 'opendyslexic';
  src: url('../fonts/OpenDyslexic3-Regular.ttf');
  font-style: normal;
  font-weight: normal;
}



#closeModalButton {

  background-color: rgb(29, 29, 29); 
  color: white; 
  border: none; 
  padding: 10px 20px; 
  cursor: pointer; 
}
