/* style */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgb(253, 247, 239);
    z-index: 1000;
    padding-left: 40px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
}

nav ul li {
    margin: 0 30px;
}

nav ul li a {
    color: rgb(133, 133, 242);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

nav ul li a:hover {
    color: rgb(240, 244, 113);
}

/* respond */
@media (max-width: 768px) {

    nav ul {
        flex-direction: row;
    }

    nav ul li {
        margin: 0 20px;
    }
}

h1 {
    font-family: "rotulo-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 1000, "wdth" 100;
    text-align: left;
    margin-left: 100px;
    margin-bottom: 0;
    font-size: 4em;
    color: #e95c43;
}



/* pages */
.container {
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: 80%;
}


.page {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 45px;
    flex-wrap: wrap;
}



/* card */
.card {
    flex: 1 1 calc(20% - 16px);
    min-width: 180px;
    max-width: 200px;
    height: 370px;
    perspective: 1000px;
    margin: 0px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.front,
.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.5s ease;
}

.front {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 2px solid #ddd;
    z-index: 1;
    /*on the top*/
}

.back {
    background-color: rgb(253, 247, 239);
    transform: rotateY(180deg);
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

.back p {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    max-width: 90%;
}


.card:hover .front {
    transform: rotateY(180deg);
    z-index: 2;

}

.card:hover .back {
    transform: rotateY(0);
    z-index: 2;
}

.card:hover {
    z-index: 9999;
    /* always on the top */
}



button {
    background-color: rgb(133, 133, 242);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 80px;
    border-radius: 5px;
}

button:hover {
    background-color: rgb(240, 244, 113);
}