@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Nunito;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fafafa;
}

header, footer {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 10px;
    box-shadow:
        0px 0px 2px 0px #0003,
        0px 0px 3px 0px #0002,
        0px 0px 5px 0px #0001;
}

header {
    justify-content: flex-start;
}

main {
    flex-grow: 1;
}

#pages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    /* grid-auto-rows: 360px; */
    grid-auto-rows: minmax(360px, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 10px;
    padding: 10px;
    background-color: #ffffff;
    /* box-shadow:
        0 1px 1px rgba(0,0,0,0.12),
        0 2px 2px rgba(0,0,0,0.12),
        0 4px 4px rgba(0,0,0,0.12); */
    box-shadow:
        0px 0px 2px 0px #0003,
        1px 3px 3px 0px #0002,
        3px 6px 5px 0px #0001;
}
.card img {
    /* min-width: 280px; */
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
}
/* .card img::after {
    content: 'a';
    height: 10px;
    width: 10px;
    background-color: red;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    z-index: 9999;
} */
.card p {
    flex-grow: 1;
}
.card button {
    width: 100%;
    padding: 5px 10px;
    cursor: pointer;
    background-color: lightgray;
    border-radius: 5px;
    border: 1px solid black;
}

#img-modal {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 100px;
    width: 100%;
    height: 100%;
    display: none;
    transition: all 1s;
}

footer {
    flex-direction: column;
    height: 60px;
}
