@font-face {
    font-family: 'NASA';
    src: url('./nasalization-rg.otf');
}

/* Layout */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 2rem;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.input {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

article {
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 3rem;
}

#apodDesc {
    height: 40%;
    width: 85vw;
    overflow: scroll;
    padding: 2px;
}

img {
    height: 35%;
}

iframe {
    width: 60vw;
    height: 35vw;
}

/* >>>>>>>>>>>>>>>>>
Media Queries (Landscape)
>>>>>>>>>>>>>>>>>>>> */
@media screen and (orientation: landscape) {
    article {
        height:60%;
        width: 80vw;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    img {
        width: 40%;
        height: auto;
        max-height: 100%;
    }

    #apodDesc {
        height: auto;
        width: auto;
        overflow: scroll;
        max-height: 100%;
    }
}
/* <<<<<<<<<<<<<<<<<
// Media Queries (Landscape)
<<<<<<<<<<<<<<<<< */


/* Styles */
h1 {
    font-size: 3rem;
}

img {
    border-radius: 0.5rem;
}

body {
    font-family: 'NASA', Helvetica, sans-serif;
    background: rgb(13,17,23);
    text-align: center;
}

.apd {
    font-size: 1.2rem;
    line-height: 1.8;
}

.unimp {
    font-size: 1rem;
}

#apodDesc {
    color: #a2facf;
    font-size: 1rem;
}

/* >>>>>>>>>>>>>>>>>
Header Color
>>>>>>>>>>>>>>>>>>>> */
header h1, header p{
  background: linear-gradient(271.72deg, rgb(255, 107, 233) 7.09%, #ff6b6bff 96.61%);
}

header h1, header p{
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

header div * {
    color: black;
}
/* <<<<<<<<<<<<<<<<<
// Header Color
<<<<<<<<<<<<<<<<< */


/* >>>>>>>>>>>>>>>>>
Scroll Bar
>>>>>>>>>>>>>>>>>>>> */
    #apodDesc::-webkit-scrollbar {
        width: 5px;
    }
    
    #apodDesc::-webkit-scrollbar-thumb {
        background-color: #f7fff7ff;
        border-radius: 30px;
    }

    #apodDesc::-webkit-scrollbar-corner {
        background: rgba(0,0,0,0);
    }

    header div * {
        color: black;
    }
/* <<<<<<<<<<<<<<<<<
// Scroll Bar
<<<<<<<<<<<<<<<<< */

/* >>>>>>>>>>>>>>>>>
Loading animation
>>>>>>>>>>>>>>>>>>>> */
.lds-ripple {
    margin-top: 15vh;

    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  .lds-ripple div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  }
  .lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
  }
  @keyframes lds-ripple {
    0% {
      top: 36px;
      left: 36px;
      width: 0;
      height: 0;
      opacity: 0;
    }
    4.9% {
      top: 36px;
      left: 36px;
      width: 0;
      height: 0;
      opacity: 0;
    }
    5% {
      top: 36px;
      left: 36px;
      width: 0;
      height: 0;
      opacity: 1;
    }
    100% {
      top: 0px;
      left: 0px;
      width: 72px;
      height: 72px;
      opacity: 0;
    }
  }
/* <<<<<<<<<<<<<<<<<
// Loading animation
<<<<<<<<<<<<<<<<< */



.hidden{
    display: none;
}
  