/* --- */
/* Global styles */
/* --- */


:root {
    --background: #FDEECD;
    --content: #820029;
}

body {
    margin: 0;
    background-color: var(--background);
}

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


/* --- */
/* Typography styles */
/* --- */


h1 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 40px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    text-transform: uppercase;
}

h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 40px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    text-transform: uppercase;
}

h2:hover {
  text-decoration: underline;
}

p {
    font-family: "Adamina", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 14px;
    line-height: 24px;
    margin: 0;
    color: var(--content);
}

a:hover {
  text-decoration: underline;
}

.subtext{
    font-family: "Adamina", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 11px;
    line-height: auto;
    margin: 0;
    color: var(--content);
}

.subtext-title{
    font-family: "Adamina", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 11px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1200ms;
    transform: translateY(25px);
}

.emphasis{
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 32px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    text-transform: uppercase;
}

.up-title {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 32px;
    line-height: auto;
    margin: 0;
    color: var(--content);
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 800ms;
    transform: translateY(25px);
}

.front-title {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    color: var(--text);
    font-size: 100px;
    line-height: 80px;
    margin: 0;
    color: var(--content);
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1000ms;
    transform: translateY(25px);
}


/* --- */
/* Global components */
/* --- */


.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding-top: 40px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
}

.content-flex {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    margin: 0;
}

.main-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.otter-image {
    opacity: 0;
    margin-top: 40px;
    margin-bottom: 40px;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1200ms;
    transform: translateY(25px);
}

.bottom-content {
    width: 100%;
    display: flex;  
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1600ms;
    transform: translateY(25px);
}

.return-content {
    width: 100%;
    display: flex;  
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 600ms;
    transform: translateY(25px);
}

.line {
    width: 100%;
    height: 1px;
    background-color: var(--content);
}

.date-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.bottom-sign {
    display: flex;  
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1800ms;
    transform: translateY(25px);
}

.letter-title {
    text-align: justify;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 800ms;
    transform: translateY(25px);
}

.letter-paragraph {
    text-align: justify;
    display: flex;  
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 1500ms forwards;
    animation-delay: 1000ms;
    transform: translateY(25px);
}

.signature {
    display: flex;  
    flex-direction: column;
    margin-top: 24px;
}


/* --- */
/* Media querys */
/* --- */


@media screen and (min-width: 480px) and (max-width: 1023px) {

    .container {
    padding-top: 40px;
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 40px;
    }

    .up-title {
    font-size: 48px;
    }

    .front-title {
    font-size: 120px;
    line-height: 80px;
    }

    .subtext{
    font-size: 13px;
    }

    .subtext-title{
    font-size: 13px;
    }

    h1 {
    font-size: 48px;
    }

    h2 {
    font-size: 48px;
    }

    p {
    font-size: 16px;
    line-height: 28px;
    }

    .main-title {
    margin-top: 40px;
    }

    .return-content {
    margin-top: 40px;
    }

    .otter-image {
    width: 180px;
    }

    .bottom-sign {
    width: 12px;
    margin-top: 32px;
    margin-bottom: 32px;
    }

    .bottom-content {
    gap: 8px;
    }

}

@media screen and (min-width: 1024px) and (max-width: 1679px) {

    .container {
    padding-top: 40px;
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 40px;
    }

    .content-flex {
    max-width: 768px;
}

    .up-title {
    font-size: 72px;
    }

    .front-title {
    font-size: 240px;
    line-height: 200px;
    }

    .subtext{
    font-size: 18px;
    }

    .subtext-title{
    font-size: 18px;
    }

    h1 {
    font-size: 64px;
    }

    h2 {
    font-size: 64px;
    }

    p {
    font-size: 18px;
    line-height: 34px;
    }

    .main-title {
    margin-top: 40px;
    }

    .return-content {
    margin-top: 40px;
    }

    .otter-image {
    width: 200px;
    margin-top: 40px;
    margin-bottom: 40px;
    }

    .bottom-sign {
    width: 16px;
    margin-top: 52px;
    margin-bottom: 52px;
    }

    .bottom-content {
    gap: 8px;
    }

    .letter-paragraph {
    gap: 32px;
    }

}

@media screen and (min-width: 1680px) and (max-width: 4800px) {

    .container {
    padding-top: 40px;
    padding-left: 10vw;
    padding-right: 10vw;
    padding-bottom: 40px;
    }

    .up-title {
    font-size: 90px;
    }

    .front-title {
    font-size: 320px;
    line-height: 280px;
    }

    .subtext{
    font-size: 22px;
    }

    .subtext-title{
    font-size: 22px;
    }

    h1 {
    font-size: 80px;
    }

    h2 {
    font-size: 80px;
    }

    .main-title {
    margin-top: 40px;
    }

    .return-content {
    margin-top: 40px;
    }

    .otter-image {
    width: 280px;
    margin-top: 40px;
    margin-bottom: 40px;
    }

    .bottom-sign {
    width: 16px;
    margin-top: 52px;
    margin-bottom: 52px;
    }

    .bottom-content {
    gap: 12px;
    }

    .letter-paragraph {
    gap: 32px;
    }


}