* {
    font-family: "figtree", sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4d04e;
}

#main-card {
    width: 80%;
    max-width: 280px;
    background-color: #ffffff;
    border-radius: 15px;
    margin: 50px auto;
    box-shadow: 9px 9px 1px rgba(0, 0, 0, 9);
    padding: 20px;
    border: 1px solid #000;
}

#img-section {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#img-section:hover {
    transform: scale(1.01);
}

#main-card #img-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

#bottom-section {
    color: #121212;
}

#bottom-section button {
    border: none;
    background-color: #f4d04e;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 10px;
}

#bottom-section button:hover {
    background-color: #000;
    cursor: pointer;
    color: #f4d04e;
}

#bottom-section #date {
    font-size: 0.65rem;
    font-weight: 500;
    margin-bottom: 15px;
}

#bottom-section h1 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    cursor: pointer;
}

#bottom-section h1:hover {
    color: #ad8904;
}

#bottom-section #text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 30px;
}

#img-name-section {
    display: flex;
    align-items: center;
}

#img-name-section img {
    width: 30px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

#img-name-section img:hover {
    transform: scale(1.01);
    border-radius: 50%;
    border: 1px solid #a8a5a5;
}

#img-name-section p {
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

#img-name-section h4:hover {
    color: #ad8904;
}

footer {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.attribution {
    font-size: 0.6rem;
}

.attribution a {
    font-size: 0.6rem;
}

@media (min-width: 400px) {
    #main-card {
        max-width: 320px;
        margin-top: 10%;
    }

    #img-section {
        height: 100%;
    }

}