body{
    font-family: myriad-pro, sans-serif;
    font-weight: 300;
    font-size:18px;
}
.pages{
    display:flex;
    justify-content: center; /* Horizontally center flex items */
    flex-wrap: wrap; /* This is the key change to allow wrapping */
    align-items: center;
    align-content: center;
    margin:auto;
    padding-bottom: 50px;
    min-width: 60vw;
    max-width: 80vw;
    margin:auto;
}
.cards{
    min-width:10vw;
    max-width:40vw;
    margin:20px;
    border-radius: 5px;
}
.cards img{
    max-height:300px;
    width:100%;
}
p{
    position:absolute;
    width:auto;
    word-wrap: break-word;
    font-size: 1em;
    padding:0px;
    color:rgb(255, 255, 255);
    text-decoration: none;
    background-color: rgb(80, 40, 240);
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
}
.year{
    font-size: 1.25em;
    position: relative;
    width: 70vw;
    padding-top:10px;
    padding-left:10px;
    border-radius: 5px;
    box-sizing: border-box;
    word-wrap: break-word;
    z-index: -1;
}
.bar{
    width:70vw;
    height: 2px;
    background-color: rgb(80, 40, 240);
}