@font-face {
    font-family: 'CreatoDisplay-Regular';
    src: url(assets/CreatoDisplay-Regular.otf);
}

html {
    font-family: 'CreatoDisplay-Regular';
    letter-spacing: 1px;
}

.item {
    display: block;
    margin: 5vh auto;
    border: 2px solid black;
    width: 30vw;
    height: 30vw;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px gray;
}

@media screen and (max-width: 800px) {
    .item {
        width: 70vw !important;
        height: 70vw !important;
        margin: 3vw auto;
    }
}

@media screen and (max-width: 1600px) and (min-width: 800px) {
    .item {
        width: 50vmin !important;
        height: 50vmin !important;
    }
}

.image {
    height: 60%;
    /* todo change image rendering to be less shit? */
}

.textDiv {
    height: 40%;
    border-top: 2px solid black;
    overflow-y: auto;
}

img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: 0.1s;
}

img:hover {
    filter: brightness(60%);
}

.title {
    display: block;
    position: relative;
    color: black;
    width: fit-content;
    margin: 0 auto;
    font-size: min(2em, 4vw);
    margin: 3% auto;
    font-weight: bold;
    text-decoration: none;
}

.title::after {
    content: '';
    width: 100%;
    position: absolute;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: black;
    transition: transform 0.25s ease-out;
    transform-origin: bottom center;
}

.title:hover::after {
    transform: scaleX(1);
}

p {
    width: 70%;
    margin: 0 auto;
    font-size: min(1em, 3vw);
    text-align: center;
}