@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
    justify-content: center;
    align-items: center;
    background: #dedede;
}

.container {
    position: relative;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px;
}

.container .card {
    position: relative;
    max-width: 300px;
    height: 385px;
    background: #fff;
    margin: 20px 15px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: 0.3 ease-in-out;
}

.container .card:hover {
    height: 385px;
    text-overflow: ellipsis;
}

.container .card .imgBox {
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 260px;
    height: 160px;
    top: -40px;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    border-radius: 8px;
}

.container .card:hover .imgBox {
    overflow: visible;
    max-width: 300px;
    max-height: 300px;
}

.container .card .imgBox img {
    overflow: visible;
    max-width: 200px;
    max-height: 250px;
    border-radius: 8px;
}

container .card:hover .imgBox img {
    overflow: visible;
    max-width: 250px;
    max-height: 300px;
}

.container .card .content {
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    margin-top: -100px;
    padding: 1px 1px;
    text-align: center;
    color: #000;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease-in-out;
    overflow-y: visible;
    text-overflow: ellipsis;
}

.container .card:hover .content {
    visibility: visible;
    opacity: 1;
    margin-top: 5px;
    transition-delay: 0.3s;
}

.header {
    background-image: url(headerbg.jpg);
    filter: grayscale(50%);
    background-position: bottom;
    background-size: 100%;
    height: 65vh;
}
.header-title {
    color: #fafafa;
    text-shadow: 2px 2px #ff0000;
    font-family: Poppins;
    font-size: 5rem;
    margin-bottom: 0px;
    text-shadow: 20px 2px 20px #000000;
    text-align: center;
}
.header-label {
    color: #fbfbfb;
    font-family: Poppins;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0px;
    text-shadow: 20px 2px 20px #000000;
}
.header-input {
    font-family: Poppins;
    font-size: 0.8rem;
    text-shadow: 2px 2px 5px #ffffff;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 4px;
    width: 40vw;
}

.header-button {
    cursor: pointer;
    color: #ececec;
    padding: 8px;
    margin-left: 10px;
    background-color: #121256;
    border-radius: 5px;
    font-size: 1.3em;
    text-align: center;
    align-self: last baseline;
    box-shadow: 5px 5px rgba(200, 200, 200, 0.2);;
}

.row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.column {
    padding: 10px 10px;
    margin: 0px 5px 1px 1px;
    text-align: center;
    background-color: rgba(200, 200, 200, 0.5);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;

}

.resultados {
    min-width: 20vw;
    font-family: Poppins;
    font-size: 2.2rem;
    margin: 1px 1px 1px 1px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2);
}

.flip {
    color: rgba(250,250,250,0.8);
    cursor: pointer;
}

.flip~p {
    display: none;
}

.footer {
    position: relative;
    display: block;
    background-image: url(headerbg.jpg);
    background-position: bottom;
    background-size: 100%;
    height: 20vh;
    margin-bottom: 0px;
    margin-top: 10%;
    clear: both;
}

.footer h2 {
    color: #aaaaaa;
    font-family: Poppins;
    font-size: 1.5rem;
    text-shadow: 2px 2px 2px #2525ab;
    text-align: center;
}


/****************************/


/** MEDIA QUERIES************/


/****************************/

@media screen and (max-width: 400px) {
    .header {
        background-image: url(headerbg.jpg);
        background-position: top;
        background-repeat: no-repeat;
        height: 50vh;
    }
    .header-title {
        font-size: 1.4rem;
    }
    .header-label {
        font-size: 0.7rem;
    }
    .legend {
        color: #222;
    }
    .header-button,
    .header-input {
        font-size: 0.9em;
        margin-top: 5px;
    }
    .row {
        width: 100vw;
        display: grid;
    }
    .nav {
        background-color: rgba(200, 200, 200, 0.5);
    }
    .column {
        display: inline-flex;
    }
    .column h4,
    p {
        font-size: 0.8rem;
        margin: 2px;
        padding: 2px;
    }
    .resultados {
        margin-top: 10px;
    }
    .row-resultados {
        margin-top: 130px;
        text-align: center;
    }
    .container .card {
        text-align: center;
        margin-right: auto;
    }
    .footer h2 {
        color: #fff;
        padding-top: 12%;
    }
}


/*************************/


/****    800   ***********/

@media screen and (max-width: 800px) and (min-width: 401px) {
    .header {
        background-image: url(headerbg.jpg);
        background-position: bottom;
        background-repeat: no-repeat;
        height: 33vh;
    }
    .header-title {
        font-size: 1.8rem;
        color: #fff;
    }
    .header-label {
        font-size: 0.9rem;
    }
    .legend {
        color: #fff;
    }
    .header-button,
    .header-input {
        font-size: 1.1em;
        margin-top: 2px;
    }
    .row {
        width: 100vw;
        display: flex;
    }
    .column {
        display: flex;
        flex-direction: column;
        margin: 1%;
    }
    .column h4,
    p {
        font-size: 0.8rem;
        margin: 2px;
        padding: 2px;
    }
    .resultados {
        margin-top: 1px;
    }
    .row-resultados {
        margin-top: 8px;
        text-align: center;
    }
    .footer h2 {
        color: #fff;
        padding-top: 12%;
    }
}


/*
img{
  border-radius: 5px;
  align-items: center;
  padding: 0.5%;
  background-color: rgba(200,200,200,0.3);
}
.nasa_img{
  width: 150px;
  height: 150px;
  padding: 1%;
}
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto;
  background-color: #2196F3;
  padding: 10px;
}
.grid-item {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
  padding: 20px;
  font-size: 30px;
  text-align: center;
}
*/
