* {
    box-sizing: border-box;
}

:root {
    --light-blue: #d5e1ef;
    --main-text: #121212;
    --secondary-text: #6b6b6b;
    --yellow: #f5d04e;
}


.figtree-text {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }

  a {
    text-decoration: none;
    color: var(--main-text)
  }

  a:hover, a:active, a:focus {
    color: var(--yellow);
    transition: ease 0.3s;
  }

  a:focus {
    outline: 2px dashed var(--yellows);
    outline-offset: 4px;
  }

body {
    background-color: var(--yellow);
    font-family: "Figtree", sans-serif;
    font-size: 1rem; /* 16px */
    color: var(--secondary-text);
    font-weight: 500;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90vh;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    width: 390px;
    border: 1px solid var(--main-text);
    box-shadow: 5px 5px 0px 2px var(--main-text);
    border-radius: 20px;
    padding: 1.25rem;
    margin: 1rem;
}

.image-container {
    background-color: #fff;
    border: 0;
}

.image-container img {
    display: flex;
    width: 340px;
    border-radius: 10px;
    border-color: transparent;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
}

nav button {
    z-index: 100;
    margin-top: -50px;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    background-color: #e2e2e2;
    height: 30px;
    cursor: pointer;
}

nav button:hover {
    background-color: #e9e9e9;
    transition: ease 0.5s;
    color: var(--secondary-text);
}

.meta {
    align-self: baseline;
    margin: 1.25rem 0rem 0rem 0rem;
    padding: 0;
    color: var(--main-text);
    font-size: 14px;
}

a.tag {
    background-color: var(--yellow);
    color: var(--main-text);
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    padding: 5px 10px;
}

h1 {
    color: var(--main-text);
    font-size: 24px;
    margin-block: 0.67em;
}

.text-container {
    margin: 0rem 0rem 1.5rem 0rem;
    text-align: left;
    height: 120px;
}

.author {
    width: 100%;
    align-items: center;
    gap: 1rem;
    margin: 0.6rem 0;
    display: flex;
    color: var(--main-text);
    font-weight: 800;
    font-size: 14px;
}

.author img {
    height: 45px;
}

.attribution { 
    font-size: 11px; 
    text-align: center; }

.attribution a,
.attribution a:hover { 
    color: #0800ff; 
}

@media (max-width: 375px) {
    body {
        font-size: 14px;
    }
    .wrapper {
        width: 330px;
    }

    .image-container img {
        width: 280px;
    }
}