body {
    background-color: #EDF2F8;
    font-size: 1rem;
    font-family: "Quicksand", sans-serif;
    color: #6d7f97;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


#main {
    width: 100%;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: row;
    background-color: white;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: visible;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
}

.img {
    width: 30%;
    line-height: 0;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem 0 0 0.5rem;
}

.preview {
    width: 70%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author {
    flex-grow: 1;
    font-size: 0.85rem;
}

h2 {
    font-size: 1.25rem;
    color: #48556a;
    margin-bottom: 1rem;
}

.button {
    position: relative;
    width: 10%;
    display: flex;
    justify-content: center;
}

.share-options {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: none;
    background-color: #48556a;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    width: max-content;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9eafc2;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.8rem;
}

.share-options::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #48556a transparent transparent transparent;
}

.share {
    background-color: #EDF2F8;
    border: none;
    color: #48556a;
    padding: 1rem;
    display: inline-block;
    border-radius: 50%;
    background-image: url('images/icon-share.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.share:hover,
.share:active {
    background-color: #6E809A;
    color: #fff;
    background-image: url('images/icon-share-active.png');
    background-repeat: no-repeat;
    background-position: center;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        width: 90%;
        max-width: 400px;
        height: auto;
        overflow: visible !important;
    }

    .img {
        width: 100%;
        height: 200px;
    }

    .preview {
        width: 100%;
        padding: 32px;
        box-sizing: border-box;
        height: auto;
    }

    .thumbnail {
        border-radius: 0.5rem 0.5rem 0 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    .share-options {
     bottom: 60px;
     left: 50%;
     transform: translateX(-50%);
    }
}

/* FOOTER */

.attribution {
    font-size: 11px;
    padding-top: 1rem;
    text-align: center;
    width: 100%;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}
