@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@font-face { font-family: 'Helvetica'; src: url('./fonts/Helvetica.ttf'); } 

* > * {
    font-family: 'Helvetica', "Poppins", cursive;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


html, body {
    font-size: 62.5%;
}
/* variables */
body{
    --text-light: rgba(243, 244, 246,0.9);
    --primary-dark: rgba(55, 65, 81, 1);
    --secondary-dark: rgba(55, 65, 81, 0.7);
    --bg-light: rgba(243, 244, 246,0.3);
    --bg-btn: rgba(67, 56, 202, 0.8);
    --logo-dark: url("./images/logo.svg");
    --icon-dark: url("./images/icon.svg");

    /* css style */
    background-color: var(--text-light);
    font-size:1.4rem;
    line-height: 1.9rem;
}

body.dark{
    --text-light : rgb(0, 0, 0);
    --primary-dark:rgba(243, 244, 246,1);
    --secondary-dark: rgba(243, 244, 246,0.3);
    --bg-btn: rgba(219, 233, 29, 0.897);
    --bg-light: rgba(45, 49, 54, 0.5);
    --logo-dark: url("./images/logo_dark.svg");
    --icon-dark: url("./images/icon_dark.svg");
}

/* body > div > div > div.items{
    width: 33.3% !important;
    padding: 10px 20px;
} */

p{
    margin: 0;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;    
}

.text-center{
    text-align: center;
}

.grid{
    display: grid;
    grid-template-columns: repeat(1, minmax(auto, 320px));
    row-gap: 2em;
    column-gap: 3em;
    margin: 3em 0;
}

/* .grid .flex{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4em 0;
} */

.grid .icon > span{
    /* font-size: 4em; */
    color: var(--bg-btn);
}

.logo-dark{
    background-image: var(--logo-dark);
    width: 138px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.icon-dark{
    background-image: var(--icon-dark);
    width: 15px;
    height: 35px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin-left: 38px;
}

.primary-dark{
    color: var(--primary-dark);
}

.secondary-dark{
    color: var(--secondary-dark);
}

.bg-light{
    background-color: var(--bg-light);
    box-shadow: 1px 5px 20px rgba(55, 65, 81, 0.1);
}

.p-20{
    padding:10px 120px;
}

.mt-20{
    margin:40px 0px;
}
/* https://codepen.io/aliceyt/pen/qBObwpZ */

input[type="checkbox"]{
    -webkit-appearance: none;
    position: relative;
    width: 15px;
    height: 35px;
    margin-left: 38px;
    outline: none;
    background-image:  var(--icon-dark);
    background-size: cover;
    cursor: pointer;
}

input[type="checkbox"]::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 35px;
    /* background-color: var(--primary-dark); */
    /* border-radius: 50px; */
}

input[type="checkbox"]:checked:before{
    /* transform: translate(100%); */
}

input[type="checkbox"]:checked{
    /* background-image: url(https://i.postimg.cc/Hn0nstVK/Screenshot-2020-04-16-at-1-07-19-PM.png); */
}

  .grid-center{
      display: grid;
      place-items: center;
      padding: 25px 25px ;;
  }

  .grid-center p{
    text-align: center;
  }
  
  .grid-center img{
      width: 50%;
  }
  
  .flex{
      display: flex;
      padding: 0px 20px;
      position: relative;
      left: -30px;
  }  

  .flex > .w{
    justify-content: space-around;
    width: 100vw;  
    }

  .left{
      display: flex !important;
      justify-content: flex-start !important;
  }
  
  .right{
      display: flex !important;
      justify-content: flex-end;
  }

  .center{justify-content:center;     display: flex; }
  
  .item a{
      font-size:1.2rem;
  }
  
  .item p{
      font-size:1.4rem;
  }
  nav {
    /* background: #222; */
    /* padding: 5px 20px; */
  }
  ul {
    list-style-type: none;
  }
  a {
    color: black;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  .logo a img{
      width: 200px;
  }
  .logo a:hover {
    text-decoration: none;
  }
  .menu li {
    font-size: 16px;
    padding: 15px 5px;
    white-space: nowrap;
  }
  .logo a,
  .toggle a {
    font-size: 20px;
  }
  .button.secondary {
    border-bottom: 1px #444 solid;
  }
  /* Mobile menu */
  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .toggle {
    order: 1;
  }

  .footer { 
   position: absolute;
   bottom: 0;
   width: 100%;
   height: 50px;
  }

  .f-s{
    bottom: 0; 
    padding-bottom: 30px;
  }
    .icon-footer{
        position: relative;
        top: -40px;
        left: 12px;
    }
  
  .ml-5{
      margin-right: 20px;
  }
  /* Tablet menu */
  @media all and (min-width: 600px) {
    .menu {
      justify-content: center;
    }
    .logo {
      flex: 1;
    }
    .toggle {
      flex: 1;
      text-align: right;
    }
    .item.button {
      width: auto;
      order: 1;
      display: block;
    }
    .toggle {
      order: 2;
    }
    .button.secondary {
      border: 0;
    }
    .button a {
      padding: 7.5px 15px;
      background: teal;
      border: 1px #006d6d solid;
    }
    .button.secondary a {
      background: transparent;
    }
    .button a:hover {
      text-decoration: none;
    }
    .button:not(.secondary) a:hover {
      background: #006d6d;
      border-color: #005959;
    }
    .button.secondary a:hover {
      color: #ddd;
    }
  }
  /* Desktop menu */
  @media all and (min-width: 900px) {
    .item {
      display: block;
      width: auto;
    }
    .toggle {
      display: none;
    }
    .logo {
      order: 0;
    }
    .item {
      order: 1;
    }
    .button {
      order: 2;
    }
    .menu li {
      padding: 15px 10px;
    }
    .menu li.button {
      padding-right: 0;
    }
  }
  
  @media screen and (max-width: 700px) {
    body{
        --logo-dark: url("./images/logo_mobil.svg");
    }

    body.dark{
        --logo-dark: url("./images/logo_mobil_dark.svg")
    }

    .menu {
        justify-content: center !important;
    }

    .menu li:nth-child(2){
        position: relative;
        top: -73px;
    }
  
    .logo-dark{
        background-image: var(--logo-dark);
        width: 332px;
        height: 92px;
        padding: 20px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
    }

    .grid-center {
        display: grid;
        place-items: center;
        height: 50vh;
    }

    .grid-center img {
        width: 100%;
    }

    .flex {    
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: unset;
        position: unset;
    }

    #mode{
        position: unset;
        margin: auto;
    }

    .left{
        justify-content: center !important;
    }

    .right{
        justify-content: center !important;
    }

    .items{
    }
    .items:nth-child(1){
        padding: 25px 0px 10px 0;
        order: 2;
    }

    .items:nth-child(2){
        order: 1;
    }

    .items:nth-child(3){
        padding: 2px 0px;
        order: 4;
        margin-bottom: 40px;
    }

    .items:nth-child(4){
        padding: 2px 0px;
        order: 3;
    }

    input[type="checkbox"] {
        width: 25px;
        height: 50px;
    }

    .icon-footer{
        position:unset; top:unset; left:unset
    }

    .p-20{
        padding: 4px 30px;
    }

    .mb-100{
        margin-bottom: 100px;
    }

    .pr-1{
        margin-top:-100px;
    }

    .f-s{
        bottom: -340px !important; 
        padding-bottom: 30px;
    }
    .footer { 
        /* margin-top:-20px; */
        bottom: 85px;
        width: 100%;
        height: 90px;
        padding: 10px 10px;
    }

    body > div > div > div.items{
        width: 100% !important;
        padding: 10px 20px;
    }
  }