:root{
    --text-color: #000000;
    --bkg-color: #FAFAFA;
    --hrt-color: #EE204D;
    --sun-color: #ffaa1d; 
    --moon-color: #425561;
    --c:translate(-50%,-50%);
  }
  
  html,
  body {
    padding:0;
    margin:0;
    height: 100%;
    width: 100%;
    background: var(--bkg-color);
  }

  body.dark-theme {
    --text-color: #FFFFFF;
    --bkg-color: #1E2326;
    --hrt-color: #EE204D;
    --sun-color: #ffaa1d;
    --moon-color: #425561;
    padding:0;
    margin:0;
    height: 100%;
    width: 100%;
    background: var(--bkg-color);
  }
  
  @media (prefers-color-scheme: dark) {
      body {
        --text-color: #9fc131;
        --bkg-color: #1E2326;
        --hrt-color: #EE204D;
        --sun-color: #ffaa1d;
        --moon-color: #425561;
        padding:0;
        margin:0;
        height: 100%;
        width: 100%;
        background: var(--bkg-color);        
      }
    
      body.light-theme {
        --text-color: #9fc131;
        --bkg-color: #FAFAFA;
        --hrt-color: #EE204D;
        --sun-color: #ffaa1d;
        --moon-color: #425561; 
    
        padding:0;
        margin:0;
        height: 100%;
        width: 100%;
        background: var(--bkg-color);        
      }
  }
  
  @font-face {
      font-family: 'BebasNeue';
      font-weight: 400;
      font-style: normal;
      src: url('./fonts/BebasNeue/BebasNeue-Regular.ttf') format('truetype');
  }
  
  p {
      position: relative;
      font-family: 'Bebas Neue', 'BebasNeue', sans-serif;
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    justify-content: center;
  }

  .message {
    height: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  h1 {
    padding-top: 25%;
    font-size: 36px;
    line-height: 1.2;
    font-family: 'BebasNeue', cursive;
  }

  h2 {
    color: var(--text-color);
    font-size: 24px;
    line-height: 0.5;
    font-family: 'BebasNeue', cursive;
    margin-top: 0.5em;
    text-align: center;
  }
  
  .loader {
    height: 66%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .loader > div:nth-child(1) {
    text-align: center; 
    position: relative;
    margin: 0 auto;
    height: 25%;
    max-width: 70%;
    max-height: 30%;
  }
  
  /* For devices 400px and larger: */
  @media only screen and (min-device-width: 400px) {
    .loader > div:nth-child(1) { 
      position: relative;
      text-align: center; 
      max-width: 70%;
      height: 25%;
      margin: 0 auto;
    }
  }
  
  .loader > div:nth-child(2) {
    width: 32px;
  }
  
  label {
    display: none;
    text-align: center;
    position: absolute;
    top: 15px; right:15px;
    width: 32px;
    height: 32px;
    margin: 0 auto;
  }
  
  .themeMode {
    position:relative;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index:5;
    opacity:0;
  }
  
  .switch {
    position:absolute;
    left: 0px; top: 0px;
    width: 32px;
    height: 32px;
  }
  
  img {
    height: 33%;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  h1,
  p {
      color: var(--text-color);
      text-align: center;
  }
  
  .switch span{
      display:block;
      position:absolute;
      left:50%;
      top:50%;
      transform:var(--c);
      border-radius:50%;
      width:70%;
      height:70%;
      background: var(--sun-color);
      border:5px solid var(--bkg-color);
      transition:all ease 0.15s;
  }
  
  .switch div{
      position:absolute;
      left:0;top:0;
      width:100%;
      height:100%;
  }
  
  .switch div::before, .switch div::after{
      content:" ";
      display:block;
      position:absolute;
      left:50%;
      top:50%;
      transform:var(--c);
      background:var(--sun-color);
      width:12%;
      height:130%;
      border-radius:10px;
      transition:all ease 0.15s;
  }
  
  .switch div:nth-child(1)::before{
      transform:var(--c) rotate(0deg);
  }
  
  .switch div:nth-child(1)::after{
      transform:var(--c) rotate(45deg); 
    /*45deg increment each time*/
  }
  
  .switch div:nth-child(2)::before{
      transform:var(--c) rotate(90deg);
  }
  
  .switch div:nth-child(2)::after{
      transform:var(--c) rotate(135deg);
  }
  
  .switch::before, .switch::after{
      content:" ";
      position:absolute;
      left:50%;
      top:50%;
      transform:var(--c);
      border-radius:50%;
      background: var(--bkg-color);
      transition:all ease 0.15s;
  }
  
  .switch::before{
      width:0%;
      height:0%;
      z-index:10;
  }
  
  .switch::after{
      width:50%;
      height:50%;
  }
  
  input:checked ~ .switch span{
      width:100%; /*width change*/
      height:100%; /*height change*/
      background:var(--moon-color);             /*color change*/  
      /*we get a full moon*/
  }
  
  input:checked ~ .switch div::before,
  input:checked ~ .switch div::after{
      height:50%; /*we hide the sun-rays*/
  }
  
  input:checked ~ .switch::before{ 
    /*we draw a white circle a left-top corner to show a half moon*/
      left:30%;
      top:30%;
      width:90%;
      height:90%;
  }
  
  input:checked ~ .switch::after{ 
    /*we hide the sun outline*/
      width:0%;
      height:0%;
  }
  
  input:not(:checked) ~ .switch{
      transform:rotate(180deg);
      transition:all ease 2.15s 0.1s;
  }
  
  input:checked ~ .switch{
    transform:rotate(0deg);
    transition:all ease 2.15s 0.1s;
  }  
  
  .lds-heart {
      margin: 0 auto;
      position: relative;
      top: -32px;
      width: 32px;
      height: 32px;
      transform: rotate(45deg);
      transform-origin: 0px 25px;
    }
  
    .lds-heart div {
      top: 32px;
      left: 32px;
      position: relative;
      width: 32px;
      height: 32px;
      background: var(--hrt-color);
      animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
      align-content: center;
    }
    .lds-heart div:after,
    .lds-heart div:before {
      content: " ";
      position: absolute;
      display: block;
      width: 32px;
      height: 32px;
      background: var(--hrt-color);
    }
    .lds-heart div:before {
      left: -24px;
      border-radius: 50% 0 0 50%;
    }
    .lds-heart div:after {
      top: -24px;
      border-radius: 50% 50% 0 0;
    }
    @keyframes lds-heart {
      0% {
        transform: scale(0.95);
      }
      5% {
        transform: scale(1.1);
      }
      39% {
        transform: scale(0.85);
      }
      45% {
        transform: scale(1);
      }
      60% {
        transform: scale(0.95);
      }
      100% {
        transform: scale(0.9);
      }
    }
    