/* Fonts */

@font-face {
    font-family: AltaLight;
    src: url(/static/fonts/alta-regular.otf);
}
@font-face {
    font-family: Signal;
    src: url(/static/fonts/signal-normal.otf)
}
@font-face {
    font-family: ChivoBlack;
    src: url(/static/fonts/chivo-black.otf)
}
@font-face {
    font-family: Hattori;
    src: url(/static/fonts/hattori.otf)
}
@font-face {
    font-family: BrooklynSemiBold;
    src: url(/static/fonts/brooklyn-semibold.ttf)
}

/* Main Styling */

html {
    scroll-behavior: smooth;
}

body {
    background-image: url(/static/imgs/background.gif);
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
    overflow-y: scroll;
    margin: 0;
    scrollbar-width: none; 
}

body::-webkit-scrollbar {
    display: none;
}

ul {
    display: inline-block;
    justify-content: center;
    width: 100vw;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: rgb(0, 0, 0);
}

li {
    display: inline;
    float: left;
    color: white;
    cursor: pointer;
}

li a {
    display: inline-block;
    font-family: AltaLight;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    padding: 14px 16px;
    transition-duration: 0.5s;
}

li a:visited {
    color: white;
    text-decoration: none;
}

li a:hover {
    background-color: rgb(206, 159, 159)
}

#search-bar-li {
    display: flex;
    position: relative;
    float: right;
}

form {
    margin-right: 0.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
}

.search {
    height: 2vw;
    border-radius: 3px;
    float: left;
}

#search-bar {
    width: 10vw;
    padding-left: 0.5vw;
    border: solid thin gray;
}

#search-bar::-webkit-calendar-picker-indicator {
    cursor: pointer;
  }

#submit-btn {
    width: 2.3vw;
    height: 2.1vw;
    border: none;
    background-image: url(/static/imgs/search-icon.png);
    background-repeat: no-repeat;
    background-position: center;
}

#submit-btn:hover {
    cursor: pointer;
}

#reset-btn {
    height: 2vw;
    border: none;
    margin-right: 0.3vw;
    font-family: Signal;
    cursor: pointer;
}

/* Top Page */

#top-page {
    display: grid;
    grid-template-rows: 20vh;
    grid-template-columns: 20vw 60vw 20vw;
    margin-bottom: 2vw;
}

.apod-info {
    font-family: Signal;
    color: white;
}

#top-apod-info {
    display: grid;
    height: 10vw;
    grid-template-rows: 1fr 1fr;
}

#top-apod-info div {
    display: flex;
    align-items: center;
}

#photographer {
    font-size: 1vw;
}

#camera-icon {
    max-width: 2.5vw;
    margin: 1vw 1vw 1vw 1vw;
    float: left;
}

#info-click {
    position: relative;
    bottom: 1.5vw;
}
#info-click h3 {
    font-size: 1vw;
}

#info-click:hover {
    cursor: pointer;
}

#info-icon {
    max-width: 3.5vw;
    margin: 0.5vw 0.5vw 0.5vw 0.5vw;
    float: left;
}

#title {
    text-align: center;
}

#title-text {
    color: white;
    font-family: AltaLight;
    font-size: 2.5em;
    letter-spacing: 0.4vw;
}

#sources h5 {
    float: right;
    margin-right: 1.5vw;
    margin-top: 0.5vw;
    font-size: 0.8vw;
}

/* Middle Page */

#middle-page {
    position: relative;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 4vw;
    margin-bottom: 3vw;
}

#heart-icon {
    position: relative;
    opacity: var(--heart-opacity);
    right: 4vw;
    max-width: 3vw;
    max-height: 2.5vw;
    padding: 1vw 0.5vw 0.5vw 0.5vw;
    margin-right: -5vw;
    z-index: 99;
    transition: opacity 0.5s ease-in-out;
}

#heart-icon:hover {
    cursor: pointer;
}

.apod-img {
    position: relative;
    border: solid 0.3vw white;
    box-shadow: 0 10px 21px 0 rgba(0, 0, 0, 0.434), 0 20px 30px 0 rgba(0, 0, 0, 0.379);
    bottom: 0;
}

.middle-page-div {
    --heart-opacity: 0;
    position: relative;
    transition: bottom 0.5s ease-in-out;
    -webkit-transition: bottom 0.5s ease-in-out;
    bottom: 0;
}

.middle-page-div:hover {
    bottom: 2vw;
    --heart-opacity: 1;
}

.btn-div button {
    position: relative;
    float: right;
}

/* IFRAME */

#today-vid, #yesterday-vid, #tmrw-vid {
    position: absolute;
    opacity: 0;
}

#yesterday-vid, #tmrw-vid {
    pointer-events: none;
}

/* IFRAME */

#today-data {
    display: grid;
    width: 50vw;
    justify-content: center;
}

#today-img-div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vw;
}

#today-positioning-div {
    display: flex;
}

#today-img {
    max-width: 50vw;
    max-height: 40vw;
}
#today-vid {
    width: 40vw;
    height: 25vw;
    z-index: 3;
}

#yesterday-img, #tmrw-img {
    transition-duration: opacity 0.5s ease-in-out;
    max-width: 25vw;
    max-height: 20vw;
    margin-bottom: 8vw;
    float: right;
}  

#yesterday-vid, #tmrw-vid {
    width: 25vw;
    height: 20vw;
    float: right;
}

#yesterday-data {
    width: 25vw;
    opacity: 0.6;
}

#tmrw-data {
    display: flex;
    width: 25vw;
    opacity: 0.6;
}

#yesterday-data:hover, #tmrw-data:hover {
    opacity: 0.9;
}

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

.middle-inner-div h2 {
    text-align: center;
}

.calendar-icon {
    max-width: 2vw;
    max-height: 2vw;
    margin-right: 1vw;
}

#move-forward, #move-back {
    width: 12vw;
    height: 3vw;
    margin: auto 2vw auto 2vw;
    font-family: Signal;
    font-size: 1vw;
    cursor: pointer;
    z-index: 1;
    background-color: white;
    border-radius: 3px;
    border: none;
}

/* Bottom Page */


@keyframes fade-in {
    from {opacity: 0; right: 30vw;}
    to {opacity: 1; right: 0vw;}
}

#bottom-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    padding-top: 3vw;
    align-items: center;
}

.outer-bottom-div {
    position: relative;
}

#apod-stats-unique {
    width: 45vw;
    height: 25vw;
    animation: fade-in 1s linear;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1.3s);
}

#apod-stats-div {
    background-image: url(/static/imgs/red-gradient.gif);
    border: solid thin white;
    width: 45vw;
    border-radius: 3px;
}

#apod-stats-div div {
    display: flex;
    height: 4vw;
    align-items: center;
}

.apod-stats {
    font-size: 1.3em;
    font-family: AltaLight;
    text-align: center;
    color: white;
    float: left;
}

.apod-stats-img {
    position: relative;
    max-width: 4vw;
    max-height: 3vw;
    margin: auto 2vw auto 1vw;
    float: left;
}

#link-div {
    text-decoration: none;
}

#link-div:hover {
    cursor: pointer;
}

#apod-explanation {
    display: flex;
    flex-wrap: wrap;
    height: fit-content;
    bottom: 5vw;
    width: 60vw;
    padding: 1vw 1vw 1vw 1vw;
    border: solid thin white;
    background-image: linear-gradient(rgb(141, 12, 12), rgb(238, 156, 156));
    border-radius: 3px;
    animation: fade-in 1s linear;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
}

#apod-explanation h2 {
    display: block;
    width: 60vw;
    text-align: center;
    font-size: 2em;
    color: white;
    font-family: AltaLight;
    margin: 0 0 1vw 0;
}

#apod-explanation p {
    width: 60vw;
    color: white;
    text-align: center;
    font-family: Hattori;
    font-size: 1.2em;
    margin: 0.5vw 0 0.5vw 0;
}

#black-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 103vw;
    height: 10vw;
    background-color: black;
    border: none;
}

#black-bar h1 {
    color: white;
    font-family: BrooklynSemiBold;
    letter-spacing: 2.5vw;
}

#black-bar h6 {
    position: relative;
    color: white;
    font-family: BrooklynSemiBold;
    letter-spacing: 0.1vw;
    right: 1vw;
    margin-top: 0;
}

@media only screen and (max-width: 600px) {

    li a {
        font-size: 2.5vw;
        padding: 1.8vh 1.5vh;
    }

    form {
        margin-right: 0.5vw;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5vh 0.6vh;
    }

    .search {
        height: 3%;
        border-radius: 3px;
        float: left;
    }

    #search-bar {
        width: 20vw;
        height: 100%;
        font-size: 2.2vw;
    }

    #submit-btn {
        width: 15%;
        height: 110%;
    }

    #reset-btn {
        height: 110%;
        font-size: 2vw;
        background-color: white;
    }

    /* Top Page */

    #top-page {
        position: relative;
        display: grid;
        bottom: 4vw;
        grid-template-rows: 0.1fr 0.1fr 0.1fr;
        grid-template-columns: 1fr;
        margin-bottom: 2vw;
    }
    
    #top-apod-info {
        height: 25%;
        width: 100%;
        grid-template-rows: 1fr 1fr;
        grid-row: 2;
        justify-content: center;
    }
    
    #photographer {
        font-size: 0.6em;
    }
    
    #camera-icon {
        max-width: 5vw;
        margin: 1vw 2.8vw 1vw 1vw;
        float: left;
    }

    #info-click h3 {
        font-size: 0.6em;
    }
    
    #info-icon {
        max-width: 6vw;
        margin: 2vw 2vw 0.5vw 0.5vw;
    }

    #title-text {
        font-size: 1.8em;
        grid-row: 1;
        margin-left: 6vw;
        margin-right: 6vw;
    }
    
    #sources {
        position: relative;
        display: flex;
        bottom: 1vw;
        height: 1vw;
        justify-content: center;
    }

    #sources h5 {
        font-size: 1.3vw;
    }

    /* Middle Page */

    #middle-page {
        grid-template-columns: 1fr;
    }
    
    #today-data {
        display: grid;
        width: 100vw;
        justify-content: center;
    }

    #today-img {
        max-width: 95vw;
        max-height: 70vw;
    }

    #today-vid {
        width: 90vw;
        height: 70vw;
    }
    
    #yesterday-data, #tmrw-data {
        position: absolute;
        opacity: 0;
    }

    .middle-inner-div {
        margin-top: 3vw;
    }

    #move-forward, #move-back {
        width: 23vw;
        height: 8vw;
        font-size: 0.5em;
    }

    #date-text {
        font-size: 1.1em;
    }

    .calendar-icon {
        max-width: 6vw;
        max-height: 6vw;
    }

    /* Bottom Page */

    @keyframes fade-in {
        from {opacity: 0}
        to {opacity: 1}
    }


    /* Positioning Divs */
    
    #bottom-page {
        display: flex;
    }

    #apod-stats-unique {
        width: 90vw;
        height: fit-content;
        margin-bottom: 5vw;
    }

    #apod-stats-div {
        width: 90vw;
    }

    #apod-explanation {
        width: 90vw;
        bottom: 0;
        margin-bottom: 10vw;
    }

    #black-bar {
        height: 15vw;
    }
    

    /* */
    

    #apod-stats-div div {
        height: 10vw;
    }
    
    .apod-stats {
        font-size: 0.9em;
    }
    
    .apod-stats-img {
        position: relative;
        max-width: 8vw;
        max-height: 6vw;
        margin: auto 2vw auto 2vw;
        float: left;
    }
    
    #apod-explanation h2 {
        display: block;
        width: 90vw;
        text-align: center;
        font-size: 2em;
        color: white;
        font-family: AltaLight;
        margin: 0 0 1vw 0;
    }
    
    #apod-explanation p {
        width: 90vw;
        color: white;
        text-align: center;
        font-family: Hattori;
        font-size: 4vw;
        margin: 0.5vw 0 0.5vw 0;
    }

    #black-bar h1 {
        color: white;
        font-family: BrooklynSemiBold;
        letter-spacing: 2.5vw;
    }
    
    #black-bar h6 {
        position: relative;
        color: white;
        font-family: BrooklynSemiBold;
        letter-spacing: 0.1vw;
        right: 1vw;
        margin-top: 0;
    }

}

@media only screen and (max-width: 815px) and (min-width: 600px) {

}