body{
    text-align: center;
    margin: auto;
    font-family: sans-serif;
    background-image: url(images/greenbg.jpg);
    font-family: "Gentium Plus", serif;
    font-weight: 400;
    color: #322318;
    line-height: 1.5em;
}

header{
    margin-top: 60px;
    padding: 2% 0 ;
}

h1, h2{
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    color: #334035;
}

h1{
    font-size: 2.5em;
}

#polaroid-container{
    display: flex;
    justify-content: center;
    gap: 150px;
    padding: 20px 0;
}

img{
    display: block;
    border-radius: 15px;
}

#polaroid1{
    transform: rotate(-12deg);
    z-index: 2;
}

#polaroid2{
    transform: rotate(1deg);
    z-index: 2;
}

#polaroid3{
    transform: rotate(7deg);
    z-index: 2;
}

.polaroid{
    animation: 2s ease;

}

.shake{
    animation: develop .5s ease;
    animation-iteration-count: 6;
}

.no-shake{
    animation: none;

}

@keyframes develop {
    0% { transform:  rotate(0deg) }
    25% { transform:  rotate(5deg) }
    50% { transform:  rotate(0deg)}
    75% { transform:  rotate(-5deg)}
    100% { transform:  rotate(0deg)}
}

.black{
    position: absolute;
    z-index: 1;
    width: 250px;
    height: auto;

    opacity: 1;

    transition: ease-in-out 4s;
    
}

.fill{
    position: relative;
    width: 250px;
    height: auto;
    transition: ease-in-out 4s;
}

.grow{
    width: 350px;
}

.shrink{
    width: 150px;
}

#cover{
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #32231867;
    transition: ease-in-out 4s;
    opacity: 0;
    
}

button{
    background-color: transparent;
    border: none;
    font-size: 1.5em;
    padding: 10px;
    cursor: pointer;
    color: #322318;
}

#restart{
    padding: 4px 20px;
    background-color: #322318;
    color: white;
    border-radius: 100px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 100px;
    z-index: 3;
    transition: ease-in-out 200ms;
}

#restart:hover{
    background-color: #979789;
    /* color: #322318; */
}

section{
    background-color: white;
    max-width: 300px;
    border-radius: 25px;
    padding: 30px;
    text-align: left;
    align-items: flex-start;
    z-index: 2;
    transition: ease-in-out 2s;
    opacity: 0;
    display: flex;    
}

.caption{
    display: flex;
}

#caption-container{
    display: flex;
    gap: 40px;
    justify-content: center;
}

section h2{
    margin: 0;
}

#paper-top{
    background-image: url(images/paper-top.png);
    height: 90px;
    width: 100vw;
    position: fixed;
    top: -10px;
    background-repeat: no-repeat;
    z-index: 1;
}

#paper-bottom{
    background-image: url(images/paper-btm.png);
    height: 150px;
    width: 1200px;
    position: fixed;
    bottom: -30px;
    right: -30px;
    background-repeat: no-repeat;
    z-index: 1;
    transform: rotate(3deg);
}

