body {
    font-family: "Arial", sans-serif;
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: rgb(32, 32, 32);
    align-items: center;
}

h1 {
    font-size: 36px;
    color: #dfdfdf;
    margin-bottom: 20px;
}

div > div {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    margin: 20px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

div > div > div {
    height: 150px
}

div > div * {
    color: #bfbfbf;
}

div > div > img {
    height: 300px;
    border-radius: 10px;
}

#container {
    display: flex;
    justify-content: center;
    flex-direction: row;
}

.void {
    display: none;
}

.small {
    height: 150px
}

.contracting {
    animation: contract 0.5s ease-in-out forwards;
}

@keyframes expand {
    from {
        height: 150px;
        scale: 1;
    }

    to {
        height: 450px;
        scale: 1.1;
    }
}

@keyframes contract {
    from {
        height: 450px;
        scale: 1.1;
    }

    to {
        height: 150px;
        scale: 1;
    }
}

@media (orientation: portrait) {
    #container {
        flex-direction: column;
    }

    img {
        display: none;
    }

    #container > div {
        width: 80%;
    }
}

@media (orientation: landscape) {
    #container {
        flex-direction: row;
    }

    img {
        display: block;
    }

    #container > div {
        width: 30%;
    }

    div > div:hover {
        animation: expand 0.5s ease-in-out forwards;
    }
}
