@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i");

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

#app {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

.gift {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    cursor: pointer
}

.gift > img {
    width: 100%;
    max-width: 100px;
    height: auto;
}

.gifts {
display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.opening {
    animation: opening 2s ease-in-out;
}

@keyframes opening {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5000%);
    }
}

.gift.opened > img {
    /* DO NOT ANIMATE THIS */
    transform: translateY(45%);
}

.heart {
    color: red;
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}

.credits {
    font-size: 1.5rem;
    text-align: center;
    position: absolute;
    top: 1000px;
    left: 50%;
    transform: translateX(-50%);
}

.credits-animate {
    animation: credits 54s ease-in-out;
}

@keyframes credits {
    0% {
        top: 1000px;
    }
    100% {
        top: -1000px;

    }
}
