
/* nav styling */
ul:nth-of-type(2) {
    width: 40vw;
    display: flex;
    justify-content: space-evenly;
}
* {
    margin: 0;
    padding: 0;
}
ul {
    display: flex;
}
li {
    display: inline-block;
    height: 80px;
    text-align: center;
    padding-top: 40px;
}
nav {
    background-color: #AA77FF;
    display: flex;
    justify-content: space-around;
}
@media all and (max-width: 1000px) {
    ul:nth-of-type(2) {
        flex-direction: column;
        align-items: center;
    }
}
@media all and (max-width: 500px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
}

/* main styling */
h1 {
    border: 2px solid black;
    border-radius: 5px;
    margin: 0 100px;
    background-color: #C9EEFF;
    font-size: 2rem;
    text-align: center;
    font-family: 'Rampart One', cursive;
    text-decoration: underline;
    transition-duration: 2s;
    transition-property: transform,background-color;
}
section {
    margin: 100px 0px 0px 0px;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #97DEFF;
}
body {
    background-color: #C9EEFF;
}
div {
    perspective: 1000px;
    width: 90vw;
    margin: 200px auto;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
figure {
    height: 300px;
    width: 330px;
    position: absolute;
    z-index: 2;
    backface-visibility: hidden;
    box-shadow: 6px 6px 5px grey;
}
figcaption {
    height: 300px;
    transform: rotateY(180deg);
}
img {
    height: 100%;
    width: 100%;
}
article {
    border: 2px solid black;
    background-color: #62CDFF;
    text-align: center;
    min-width: 100px;
    width: 330px;
    margin: 10px;
    transition-duration: 2s;
    transition-property: transform;
    transform-style: preserve-3d;
    border-radius: 5px;
}
h2 {
    font-family: 'Rampart One', cursive;
}
li {
    font-family: cursive;
}
button {
    background-color: yellow;
    font-size: 1.3rem;
    margin: 4px;
    padding: 2px;
    border-radius: 5px;
}
article:hover {
    transform: rotateY(-180deg);
    cursor: pointer;
}
h1:hover {
    transform: scale(1.1,1.1);
    background-color: #62CDFF;
    cursor: pointer;
}
