@font-face {
    font-family: 'Lexend Mega';
    src: url('../fonts/LexendMega.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --font-family: 'Lexend Mega', sans-serif;
    --font-size: 16px;

    --title-font-multiplier: 3;
    --person-font-multiplier: 2;
    --button-font-multiplier: 1;

    --body-bg-clr: #FFF388;
    --title-font-clr: #0D1821;
    --person-font-clr: #344966;

    --circles-primary-clr: #F8A2A2;
    --circles-secondary-clr: #BA7777;
    --content-primary-clr: #54FFD6;
    --content-secondary-clr: #2E8A74;
    --link-primary-clr: #000000;
    --link-secondary-clr: #FFFFFF;
}

.hyphenate {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

html {
    font-family: var(--font-family);
    font-size: var(--font-size);
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    background-color: var(--body-bg-clr);
}

.container {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
}

.wrapper {
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 6rem);
    justify-content: space-between;
    position: relative;
    gap: 3rem;
}

.circles, .circles::before, .circles::after {
    position: absolute;
    display: inline-block;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--circles-primary-clr);
    border: 3px solid var(--circles-secondary-clr);
    box-shadow: 4px 4px var(--circles-secondary-clr);
}

.circles {
    width: 8rem;
    top: 4rem;
    right: 5rem;
    animation: bounce 3s ease-in-out infinite;
}

.circles::before {
    content: '';
    width: 3.5rem;
    top: 5rem;
    right: 20rem;
}

.circles::after {
    content: '';
    width: 5.5rem;
    top: 15rem;
    right: 5rem;
}

.content {
    background-color: var(--content-primary-clr);
    box-shadow: 8px 8px var(--content-secondary-clr);
    border: 3px solid var(--content-secondary-clr);
    padding: 1rem;
    padding-top: 8rem; 
    width: fit-content;
}

.title {
    font-size: calc(var(--title-font-multiplier) * 1rem);
    font-weight: 700;
    margin: 0;
    color: var(--title-font-clr);
    z-index: 1;
    position: relative;
}

.person {
    font-size: calc(var(--person-font-multiplier) * 1rem);
    margin: 0;
    color: var(--person-font-clr);
    z-index: 1;
    position: relative;
}

.nav ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    gap: 3em;
    justify-content: flex-end;
}

.nav ul li {
    z-index: 1;
}

.link {
    text-decoration: none;
    font-size: calc(var(--button-font-multiplier) * 1rem);
    color: var(--link-primary-clr);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border: 3px solid var(--link-primary-clr);
    border-radius: 2px;
    box-shadow: 4px 4px var(--link-primary-clr);
    min-width: 6rem;
    display: inline-block;
    text-align: center;
    background-color: var(--link-secondary-clr);
    transition: box-shadow 300ms;
}

.link:hover {
    box-shadow: 8px 8px var(--link-primary-clr);
}

@media only screen and (max-width: 768px) {
    .content {
        width: auto;
        padding-top: 1rem;
    }
}

@media only screen and (max-width: 576px) {
    .circles {
        width: 4rem;
        top: 20rem;
        right: 1rem;
    }

    .circles::before {
      width: 2rem;
      right: 10rem;
    }

    .circles::after {
      width: 3rem;
    }

    .title {
        --title-font-multiplier: 2;
        text-align: center;
    }

    .person {
        --person-font-multiplier: 1.5;
        text-align: center;
    }

    .nav ul {
        justify-content: flex-start;
        flex-direction: column;
    }
}

@keyframes bounce {
    50% {
        transform: translateY(1rem);
    }
}
