:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #808080;

}

body {
  background-color: var(--white);
  margin: 0;
  padding: 0;

}

header li {
  margin: 20px;
  color: var(--black);
  font-size: 20px;
  float: left;
  display: flex;
}

a {
  text-decoration: none;
  color: var(--black);
}

.topnav a.active {
  background-color: var(--black);
  color: var(--white);
}

.topnav input[type=text] {
  float: right;
  padding: 6px;
  border: none;
  margin-top: 20px;
  margin-right: 20px;
  font-size: 16px;
  background-color: var(--grey);
  color: var(--white);
}

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

   .topnav a,
   .topnav input[type=text] {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 14px;
  }

   .topnav input[type=text] {
    border: 1px solid #ccc;
  }
}


a:hover {
  color: var(--black);
  background-color: var(--grey);
}
 
.container {
  padding: 20%;
  display: flex;
  column-gap: 60px;
  justify-content: center;
  background-color: var(--black);
}

footer {

  background-color: var(--white);
  color: var(--black);
  margin-top: 20px;
  text-align: center;
}


.container1 {

  height: 100vh;
  width: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper {
  width: 80%;
  height: fit-content;
}

.swiper-slide img {
  width: 100%;
}

.swiper .swiper-button-prev,.swiper .swiper-button-next {
 
 color: #ffffff;
}

.container4 {
  text-align: center;
  position: absolute;
  width: 80px;
  height: 30px;
  top: 50%;
  left:50%
}


/* /* <<<<<-----här är css för brightness slider---->>>>
switch {

  position: relative;
  display: inline-block;
  width: 110px;
  height: 60px;
  margin: 10px;


}

.slider {


  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;

}

.switch input {
  display: none;
}

.slider:before {

  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 5px;
  background-color: var(--grey);
  transition: 0, 4s;
  border-radius: 50px;
}

input:checked+.slider {

  background-color: black;



}

input:checked+.slider:before {

  transform: translateX(50px);



}

#range-slider {

  align-items: center;
  display: flex;
  justify-content: center;
  height: 10vh;
  float: left;

}


.main {
  width: 170px;
  background-color: var(--black);
  border-radius: 5px;
  padding: 10px;
  float: left;
}

#brightness-range {

  width: 100%;
  -webkit-appearance: none;
  background-color: #e4e4e4;
  height: 10px;
  outline: none;
  cursor: pointer;
  float: left;
}

#brightness-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #22438c;
  float: left;

}
*/

.splash {

  position: fixed;
  left: 0;
  width: 100%;
  height: 100vh;
  top: 0;
  background-color: #000000;
  z-index: 200;
  color: white;
  text-align: center;
  padding-top: 45vh;
}

.splash.display-none {
  position: fixed;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  z-index: -10;
  color: white;
  text-align: center;
  line-height: 90vh;
  transition: all 0, 5s;

}

@keyframes fadeIn {
  to {
    opacity: 0;


  }

}



.fade-in {
  opacity: 1;
  animation: forwards ease-in 1s;
  font-family: fantasy;

}

.textruta{
  text-align: center;
}

.drk{
  margin: 25px;
  float: right;
}

#darkmode1{
  background-color: #000;
  color: #ffffff;
  border: thick double #ffffff;

}


.button5 {
  background-color: #ffffff;
  color: black;
  height: 50px;
  width: 50%;
  font-size: larger;
  border: thick double #ffffff;
}

.button5:hover {
  background-color: var(--grey);

}

.box{
   background-color: #000000;
   display: flex;
   justify-content: center;
   column-gap: 20%; 
   padding: 100px;
}

#hours,#minutes,#seconds{
      margin-top: 10px;
      font-size: 20px;
      padding-top: 10px;
 }

.animate__animated.animate__bounce:hover{
  --animate-duration: 4s;
}

.child {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  transform-origin: top;
  
}
.bounce:hover {
  animation-name: bounce;
  animation-timing-function: ease;
  
}
.theImage {
  animation-duration: .3s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}

.theImage:hover {
  animation-name: jittery;
}

@keyframes jittery {
  10% {
      transform: translate(-2px, -3px) scale(1.01, 1.01);
  }
  20% {
      transform: translate(3px, 2px) scale(.99, .99);
  }
  30% {
      transform: translate(-4px, -5px) scale(1.01, 1.01);
  }
  40% {
      transform: translate(2px, 3px) scale(1, 1);
  }
  50% {
      transform: translate(-1px, -2px) scale(.98, .98);
  }
  60% {
      transform: translate(0px, 3px) scale(1.02, 1.02);
  }
  70% {
      transform: translate(-2px, -4px) scale(1, 1);
  }
  80% {
      transform: translate(3px, 5px) scale(.99, .99);
  }
  90% {
      transform: translate(-5px, -3px) scale(1.1, 1.1);
  }
  100% {
      transform: translate(3px, 1px) scale(.95, .95);
      transform: scale(1.5);

  }
}
.hvr-grow {
  display: inline-block;
  vertical-align: middle;
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  transition-duration: 0.3s;
  transition-property: transform;
}

.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
  transform: scale(1.5);
}

.link:hover{
  text-decoration: none;
  color: #000;
}

@-webkit-keyframes wobble-to-top-right-on-hover {
  16.65% {
    -webkit-transform: translate(8px, -8px);
    transform: translate(8px, -8px);
  }
  33.3% {
    -webkit-transform: translate(-6px, 6px);
    transform: translate(-6px, 6px);
  }
  49.95% {
    -webkit-transform: translate(4px, -4px);
    transform: translate(4px, -4px);
  }
  66.6% {
    -webkit-transform: translate(-2px, 2px);
    transform: translate(-2px, 2px);
  }
  83.25% {
    -webkit-transform: translate(1px, -1px);
    transform: translate(1px, -1px);
  }
  100% {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
}
@keyframes wobble-to-top-right-on-hover {
  16.65% {
    -webkit-transform: translate(8px, -8px);
    transform: translate(8px, -8px);
  }
  33.3% {
    -webkit-transform: translate(-6px, 6px);
    transform: translate(-6px, 6px);
  }
  49.95% {
    -webkit-transform: translate(4px, -4px);
    transform: translate(4px, -4px);
  }
  66.6% {
    -webkit-transform: translate(-2px, 2px);
    transform: translate(-2px, 2px);
  }
  83.25% {
    -webkit-transform: translate(1px, -1px);
    transform: translate(1px, -1px);
  }
  100% {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
}
.wobble-to-top-right-on-hover:hover, .wobble-to-top-right-on-hover:focus, .wobble-to-top-right-on-hover:active {
  -webkit-animation-name: wobble-to-top-right-on-hover;
  animation-name: wobble-to-top-right-on-hover;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

@media (max-width: 800px) {

  .box{
    flex-direction:column-reverse;
    align-items: center;
    padding: 7%;
  }

  .button5{
    height: 50px;
    width: 40%;
    margin: 20px;
  }

  .container1{
    height: 50vh;
    width: 100%;
  }
  
  .main{
    margin-left: 55px;
  }

  
  header li {
  margin: 2%;
  font-size: 18px; 
  } 

}


@media (max-width: 500px) {

  .drk{
    float: none;
    margin: 6px;
  }
  #darkmode1{
    background-color: #000;
    color: #ffffff;
    width: 50px;
    border-radius: 50%;
    height: 24px;
  }
}

@media (min-width: 500px) {
  .drk{
    margin: 13px;
  }
}

@media (min-width: 800px) {
  .drk{
    float: right;
    margin: 20px;
  }
}