@import url('https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Slab:wght@600&display=swap');
/* ====================        RESET STYLES ============================================================ */
 html, body{
    box-sizing: border-box;
    font-family: 'Goldman', cursive;
}

a{
    color: inherit;
    text-decoration: none;
}

button, input[type="submit"] {
    background: transparent;
    box-shadow: 0px 0px 0px transparent;
    border: 0px solid transparent;
    text-shadow: 0px 0px 0px transparent;
  }
  
  button:hover , input[type="submit"]:hover{
    background: transparent;
    box-shadow: 0px 0px 0px transparent;
    border: 0px solid transparent;
    text-shadow: 0px 0px 0px transparent;
  }
  
  button:active, input[type="submit"]:hover {
    outline: none;
    border: none;
  }
  
  button:focus, input[type="submit"]:focus {
    outline: 0;
  }

/* ============================                                             ======================================================== */

.container{
    width: 70vw;
    margin: auto;
    /* border: 1px solid black; */
    text-align: center;
}

.header{
    font-size: 2rem;
    margin :0.3em auto;
}

.copywrite{
    font-family: 'Josefin Slab', serif;
    font-size: 1.1rem;
 }

 .socials{
     text-align: center;
     margin: 0.2em auto;

 }
 .social-links{
    font-size: 2rem;
    margin: 0 1em;
    color: gray;
    transition: 0.5s color;
    animation: fadeIn; /* referring directly to the animation's @keyframe declaration */
    animation-duration: 5s; /* don't forget to set a duration! */
    animation-timing-function: ease-in-out;
 }

 .social-links:hover{
    color: black;
 }


 .my-element {
    display: inline-block;
    margin: 0 0.5rem;
  
    animation: bounce;
    animation-duration: 2s;
  }

.options{
    margin: 0 auto;
    text-align: center;
    padding: 0.5em;
}

.target-select{
    margin: 1em auto;
}

.btn-container{
    text-align: center
}

.generate{
    border: 1px solid black;
    padding:1em;
    font-family: 'Goldman', cursive;
    font-weight: 400;
    transition: 0.5s color, 0.5s background, 0.5s box-shadow;
    -webkit-box-shadow: -1px 6px 9px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    -1px 6px 9px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         -1px 6px 9px 0px rgba(50, 50, 50, 0.75);
}

.generate:hover{
    color: white;
    background-color: #282C35;
    cursor: pointer;
    border: 1px solid black;
    -webkit-box-shadow: -1px 6px 9px 0px rgba(50, 50, 50, 0.75);
    -moz-box-shadow:    -1px 6px 9px 0px rgba(50, 50, 50, 0.75);
    box-shadow:         -1px 6px 9px 0px rgba(50, 50, 50, 0.75);
}

.generate:active{
    box-shadow: none;
}

/* ======================== LOADING ANIMATION =========================================================== */

.myLoader{
    text-align: center;
    width: 50vw;
    margin: auto;
    display: none;
}


.spinner {
    margin: 25px auto;
    width: 40px;
    height: 40px;
    position: relative;
  }
  
  .cube1, .cube2 {
    background-color: #333;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 0;
    left: 0;
    
    -webkit-animation: sk-cubemove 1.8s infinite ease-in-out;
    animation: sk-cubemove 1.8s infinite ease-in-out;
  }
  
  .cube2 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
  }
  
  @-webkit-keyframes sk-cubemove {
    25% { -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5) }
    50% { -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg) }
    75% { -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5) }
    100% { -webkit-transform: rotate(-360deg) }
  }
  
  @keyframes sk-cubemove {
    25% { 
      transform: translateX(42px) rotate(-90deg) scale(0.5);
      -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);
    } 50% { 
      transform: translateX(42px) translateY(42px) rotate(-179deg);
      -webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);
    } 50.1% { 
      transform: translateX(42px) translateY(42px) rotate(-180deg);
      -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);
    } 75% { 
      transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
      -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
    } 100% { 
      transform: rotate(-360deg);
      -webkit-transform: rotate(-360deg);
    }
  }


/* ================================================================================================ */


.joke-section{
    border: 1px solid black;
    border-radius: 10px;
    padding: 1em;
    text-align: center;
    width: 50vw;
    margin: 2em auto;
    display: none;
}


.show{
    display: block;
}

/* =======================================          MEDIA QUERIES                       ============================================ */

@media screen and (max-width: 900px){
    .container{
        width: 100vw;
    }
    .social-links{
        cursor: none;
    }

    .cube1,.cube2{
        width: 10px;
        height: 10px;
    }

    .joke-section{
        width: 90vw;
    }
}

@media screen and (max-width: 600px) {

    .container{
        margin: 0 auto;
        width:90vw;
        border: none;
    }

    .social-links{
        cursor: none;
    }


    .generate:hover{
        cursor: none;
        border: 1px solid black;
        color: black;
        background: white;
    }

    .joke-section{
        width: 90vw;
        padding: 0.5em;
    }
    .cube1,.cube2{
    width: 10px;
    height: 10px;
    }
}




/* ===================================================                      ============================================================= */