html, body{
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  /* background: linear-gradient(#7b4913, #d59046); */
  height: 100%;
}


.main {
    padding: 0px 0px;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    align-content: center;
    
}


#logo{
  width: 20%;
  margin-right: 10px;
}


#stat{
  align-self: center;
  /* left: 50%;
  top: 50%; */
  overflow: auto;
  width: auto;
  height:60%;
  border-radius: 10px;
  padding: 5px;
  font-weight: bold;
  
  background-color: rgba(146, 144, 144, 0);
}

#waitlist{
  padding: none;
  width: 20vw;
  height: 40px;
  border-radius: 5px;
  border: 2px solid #0000004f;
  display: flex;
  
}

#send {
  height: 100%;
  width: 50px;
}

#countdown{
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 5px;
  height: 80px;
  font-size: 70px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}



#reference{
  font-size: 20px;
  background-color:#bbbbbb ;
}
#emptygap{
  color: #58585800;
  background-color:#bbbbbb ;
}


#input {
  padding: 10px;
  width: 250px;
  height: 40px;
  background: none;
  /* border: 2px solid #0000004f; */
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: 'Courier New';
  font-size: 14px;
  color: #000000a0;
  outline: none;
  transition: .5s;
}

#loader-container {
  display: none;
  width: 20px;
  height: 20px;
  padding: 5px;
}

/* Laddar-animation */
.spinner {
  width: 100%;
  height: 100%;
  border: 6px solid lightgray;
  border-top: 6px solid black;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Rött kryss */
.cross {
  width: 5%;
  height: 5%;
  position: relative;
}

.cross::before,
.cross::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 1px;
  width: 30px;
  height: 6px;
  background-color: rgb(180, 0, 0);
}

.cross::before {
  transform: rotate(45deg);
}

.cross::after {
  transform: rotate(-45deg);
}

.check {
  width: 5%;
  height: 5%;
  position: relative;
}

.check::before,
.check::after {
  content: ' ';
  position: absolute;
  background-color: rgb(0, 180, 0); /* Grön färg */
  border-radius: 2px;
}

.check::before {
  top: 17px;
  left: 11px;
  width: 13px;
  height: 6px;
  transform: rotate(45deg);
}

.check::after {
  top: 14px;
  left: 16px;
  width: 20px;
  height: 6px;
  transform: rotate(-45deg);
}

.envelope {
  width: 5%;
  height: 5%;
  position: relative;
}

/* Själva kuvertet */
.envelope__topleft {
  content: '';
  position: absolute;
  top: 2px;
  left: 10px;
  width: 6px;
  height: 30px;
  background-color: rgb(0, 87, 0);
  border-radius: 2px;
}

.envelope__topleft::after{
  content: ' ';
  position: absolute;
  /* top: 2px; */
  /* left: 10px; */
  width: 40px;
  height: 6px;
  background-color: rgb(0, 87, 0);
  border-radius: 2px;
}

.envelope__bottomright{
  content: '';
  position: absolute;
  top: 2px;
  left: 45px;
  width: 6px;
  height: 30px;
  background-color: rgb(0, 87, 0);
  border-radius: 2px;
}

.envelope__bottomright::after{
  content: ' ';
  position: absolute;
  top: 24px;
  right: 0px;
  width: 40px;
  height: 6px;
  background-color: rgb(0, 87, 0);
  border-radius: 2px;
}

.envelope__fold::before{
  content: ' ';
  position: absolute;
  top: 9px;
  left: 10px;
  width: 24px;
  height: 6px;
  background-color: rgb(0, 87, 0);
  border-radius: 2px;
  transform: rotate(30deg);
}

.envelope__fold::after{
  content: ' ';
  position: absolute;
  top: 9px;
  left: 27px;
  width: 24px;
  height: 6px;
  background-color: rgb(0, 87, 0);
  border-radius: 2px;
  transform: rotate(-30deg);
}

.grecaptcha-badge {
  opacity: 0.3;
}



::-webkit-scrollbar{
  width: 1em;
}

::-webkit-scrollbar-track{
  opacity: 0;
  

}
::-webkit-scrollbar-thumb{
  background: hsl(205, 96%, 53%);
  border-radius: 100vw;
  
}

.form{
  margin-top: 12vh;
  background-color: #fcf3cd;
  padding: 2vw;
  border-radius: 10px;
}

@supports (scrollbar-color: rgba(83, 83, 83, 0.58) rgba(255, 255, 255, 0)){
  * {
    scrollbar-color: rgba(83, 83, 83, 0.58) rgba(255, 255, 255, 0);
    scrollbar-width: thin;
  }
}


@media (prefers-color-scheme: dark) {
  body {
    background-color: #343434;
  }

  /* Anpassa andra element */
  .main {
    background-color: #343434;
  }
  .form{
    background-color: #585858;
  }

  #input {
    /* background-color: #333; */
    color: #fff;
    /* border: 1px solid #555; */
  }

}


/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-width: 450px) {
  .main {
    padding: 10px;
    align-items: center;
    justify-content: flex-start;
  }

  #logo {
    margin-top: 15vh;
    width: 50%;
  }
  #countdown {
    font-size: 22px;
    height: auto;
    margin: 20px 0;
  }

  #input {
    width: 60vw;
    font-size: 16px;
  }

  #waitlist {
    width: 60vw;
    height: 40px;
    flex-direction: row;
  }

  #send {
    width: 50px;
    height: 40px;
  }

  #stat {
    height: 50%;
    font-size: 14px;
  }

  #reference,
  #emptygap {
    font-size: 14px;
  }

  #loader-container {
    width: 18px;
    height: 18px;
    padding: 5px;
    display: none;
    margin: 3px auto; 
  }

  .cross::before,
  .cross::after {
    top: 10px;
    left: 3px;
    width: 20px;
    height: 4px;
  }

  .cross {
    width: 30px;
    height: 30px;
  }
    
  
  .check{
    width: 30px;
    height: 30px;
  }

  .check::before {
    top: 17px;
    left: 11px;
    width: 13px;
    height: 6px;
    transform: rotate(45deg);
  }

  .check::after {
    top: 14px;
    left: 16px;
    width: 20px;
    height: 6px;
    transform: rotate(-45deg);
  }
  }