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

body {
    font-family: "Poppins", sans-serif;
}

.container {
    padding: 0 0.75em;
}

h1 {
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

p {
    font-size: 1rem;
    margin: 0;
}

i {
    width: 40px;
    padding-top: 20px;
}

i:nth-last-child(1) {
    padding-bottom: 1.5em;
}

footer {
    padding: 15px 0 10px 0;
    width: 100%;
    text-align: center;
}

span, i {
    color: #27ad64;
}

.flex   {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

header.flex  {
    margin-top: 0.75em;
    display: flex;
    flex-direction: row;
}

.flex:nth-child(3), .flex:nth-child(5) {
    flex-direction: column-reverse;
}

.flex > * {
    width: 100%;
}

.logo {
    width: 120px;
}

.btn {
    cursor: pointer;
    display: inline-block;
    background: #fd3c0b;
    color: #efefef;
    text-decoration: none;
    padding: 10px 30px;
    margin: 2em 0;
    border-radius: 2em;
}

.btn:hover {
    transition: .5s;
    background: #27ad64;
    color: #efefef;
}


@media (min-width: 900px) {

    div {
        align-items: center;
    }

    .container {
        padding: 0;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
        font-weight: 700;
        margin: 0.5rem 0;
    }

    .content {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card {
        width: 80%;
    }

    .flex {
        flex-direction: row;
    }

    .flex:nth-child(3), .flex:nth-child(5) {
        flex-direction: row;
    }

    form {
        display: none;
    }

    .logo {
        margin-left: 10%;
    }

    .first {
        margin-top: -2em;

    }

    .theme-switch {
        margin-right: 1.5em;
    }
}

@media (min-width: 1300px) {

    h1 {
        font-size: 2.75rem;
        line-height: 3rem;
        font-weight: 700;
        margin: 0.5rem 0;
    }

    p {
        font-size: 1.125em;
        margin: 0;
    }

    form {
        display: block;
    }

    .card {
        width: 64%;
    }

    .logo {
        margin-left: 18%;
    }
}


/* ------- mailform ------- */

form {
    max-width: 100%;
    background-color: #eee;
    padding: 1em;
    border-radius: 1em;
    margin-bottom: 1em;
  }
  
  form > label {
    display: inline-block;
    margin-bottom: 0.5em;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="phone"],
  textarea {
    font-family: "Poppins", sans-serif;
    font-size: 1em;
    min-height: 2em;
    width : 100%;
    border: 0;
    outline: 0;
    border-radius: 4px;
    margin-bottom: 0.5em;
  }

  input[type="submit"] {
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    background-color: #27ad64;
    color: #efefef;
    font-size: 1em;
    width: 100%;
    height: 3em;
    margin-top: 0.5em;
    border: 0;
    border-radius: 2em;
    text-decoration: none;
    -webkit-appearance: none;
    opacity: 1;
  }

input[type="submit"]:hover {
    transition: .5s;
    background: #fec150;
    color: #222;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="submit"]:focus {
    outline: 1px transparent;
  }

  textarea {
      resize: none;
  }
  
  input:invalid { 
    border: 1px solid #bdd4c7;
  }
  
  input:focus:invalid {
    box-shadow: none;
  }


/* ------- Theme ------- */

:root {
    --bg-color: #f7f6f2;
    --font-color: #222;
    --title-color: #222;
    --title-background: #f7f6f2;
    --main-bg: #f7f6f2;
  }
  
  [data-theme="dark"] {
    --bg-color: #222;
    --font-color: #efefef;
    --title-color: #fec150;
    --title-background: #222;
    --main-bg: rgba(25, 25, 25, 0.4);
  }
  
  body {
    color: var(--font-color);
    background-color: var(--bg-color);
    transition: background-color .25s ease;
  }

  form > label {
    color: #222;
  }
  
  main {
    border: var(--main-border);
    background: var(--main-bg);
  }
  
  section {
    background: var(--title-background);
  }
  
  h1 {
    color: var(--title-color);
  }
  
  /* ------- Theme Toggle ------- */

  .theme-switch-wrapper {
    display: flex;
    align-items: center;
    z-index: 10;
  }
  
  .theme-switch-wrapper em {
    margin-left: 10px;
    font-size: 1rem;
  }
  
  .theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
    margin-left: auto;
  }
  
  .theme-switch input {
    display: none;
  }
  
  .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    border-radius: 34px;
    z-index: 10;
  }
  
  .slide {
      display: flex;
      justify-content: flex-end;
      align-items: baseline;
  }
  
  .slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 26px;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #fec150;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  .slider svg {
    color: #222;
    position: absolute;
    transition: opacity 0.2s ease 0s, transform 0.35s ease 0s;
    pointer-events: none;
  }
  
  .feather-moon {
    opacity: 0;
    left: 9px;
    bottom: 9px;
    transform: translateX(4px);
  }
  
  .feather-sun {
    opacity: 1;
    right: 10px;
    bottom: 9px;
    transform: translateX(0px);
  }
  
  input:checked + .slider .feather-moon {
    opacity: 1;
    transform: translateX(0);
  }
  
  input:checked + .slider .feather-sun {
    opacity: 0;
    transform: translateX(-4px);
  }


/* ------- Animations ------- */

 /* svg one */
#exclaim {
    animation: exclaim 5s ease-in-out infinite alternate-reverse;
    animation-delay: 10s;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes exclaim {
    from{
        transform: rotateZ(0deg);
    }
    to{
        transform: rotateZ(360deg);
    }
}

#arm {
    animation: arm 1.5s ease-in-out infinite alternate;
    animation-delay: 8s;
    transform-origin: bottom;
    transform-box: fill-box;
}

@keyframes arm {
    from{
        transform: rotateZ(0deg);
    }
    to{
        transform: rotateZ(7deg);
    }
}

#leye {
    animation: leye 1.5s ease-in-out alternate;
    animation-delay: 12s;
    animation-iteration-count: 6;
    transform-origin: bottom;
    transform-box: fill-box;
}

@keyframes leye {
    from{
        transform: rotateZ(0deg);
    }
    to{
        transform: rotateZ(-15deg);
    }
}

#reye {
    animation: reye 1.5s ease-in-out alternate;
    animation-delay: 12s;
    animation-iteration-count: 6;
    transform-origin: bottom;
    transform-box: fill-box;
}

@keyframes reye {
    from{
        transform: rotateZ(0deg);
    }
    to{
        transform: rotateZ(15deg);
    }
}

#cloud2 {
    
    animation: cloud2 12s ease-in-out alternate-reverse;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes cloud2 {
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(350px);
    }
}

#sunray {
    animation: sunray 12s ease-in-out;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes sunray {
    from{
        transform: translateX(-90px) translateY(225px);
    }
    to{
        transform: translateX(0) translateY(0px);
    }
}


/* svg two */
#arm1 {
    animation: arm1 5s ease-in-out infinite alternate;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes arm1 {
    from{
        transform: rotateZ(-9.5deg);
    }
    to {
        transform: rotateZ(0);
    }
}

#arm2 {
    animation: arm2 5s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes arm2 {
    from{
        transform: rotateZ(0);
    }
    to {
        transform: rotateZ(9.5deg);
    }
}

#dot {
    animation: dot 5s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes dot {
    from{
        transform:scale(1,1);
    }
    to {
        transform: scale(1.9,1.9);
    }
}

#accents {
    animation: accents 10s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes accents {
    from{
        transform: rotateZ(0deg);
    }
    to{
        transform: rotateZ(360deg);
    }
}

#vertical {
    animation: vertical 5s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes vertical {
    from{
        transform: rotateZ(-5deg);
    }
    to{
        transform: rotateZ(5deg);
    }
}


/* svg three */
#man {
    animation: man 5s ease-in-out infinite alternate;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes man {
    from{
        transform: rotateZ(0deg);
    }
    to {
        transform: rotateZ(4deg);
    }
}

#woman {
    animation: woman 5s ease-in-out infinite alternate;
    transform-origin: bottom;
    transform-box: fill-box;
}

@keyframes woman {
    from {
        transform: rotateZ(0deg);
    }
   
    to {
        transform: rotateZ(-6deg);
    }

}

#sun {
    animation: sun 3s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes sun {
    from{
        transform:scale(1, 1);
    }
    to {
        transform: scale(1.25, 1.25);
    }
}


/* svg four */
#hand {
    animation: hand 3s ease-in-out infinite alternate-reverse;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes hand {
    from{
        transform: rotateZ(0deg);
    }
    to {
        transform: rotateZ(6deg);
    }
}

/* svg five */
#question {
    animation: question 5s ease-in-out;
    animation-delay: 5s;
    transform-origin: bottom;
    transform-box: fill-box;
}

@keyframes question {
 
    0% {
        transform: rotateZ(0);
    }
    33% {
        transform: rotateZ(-7deg);
    }
    66% {
        transform: rotateZ(7deg);
    }
    100% {
        transform: rotateZ(0);
    }
}

#glow {
    animation: glow 5s ease-in-out;
    transform-origin: top;
    transform-box: fill-box;
}

@keyframes glow {
    from{
        transform: scale(0, 0);
    }
    to {
        transform: scale(1, 1);
    }
}