:root {
    --primary: #1aa78a;
    --accent: #104989;
    --muted: #666;
    --wave-bg: #015871;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Cascadia Code", "Lucida Console", monospace;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(255, 254, 234, 1) 0%, rgba(255, 254, 234, 1) 35%, #B7E8EB 100%);
    overflow: hidden;
}

#card {
    border-radius: 15px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 5rem;
    background-color: #fff;
    z-index: 100;

}

#image-container>img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 7px solid var(--primary)
}

@media screen and (max-width: 480px) {
    #card {
        padding: 3rem .8rem;
        margin-left: .7rem;
        margin-right: .7rem;
    }

    #image-container>img {
        width: 200px;
        height: 200px;
        border-width: 5px;
    }

    hgroup {
        margin-bottom: 2rem;
    }

    hgroup>h1 {
        font-size: 28px !important;
    }

    hgroup>h2 {
        font-size: 18px !important; 
    }
}

hgroup {
    text-align: center;
}

hgroup>h1 {
    font-weight: 900;
    font-size: 32px;
    margin-bottom: .4rem;
}

hgroup>h2 {
    margin-top: 0;
    font-weight: 500;
    font-size: 20px;
    color: var(--muted);
}

#presentation p {
    text-align: center;
}

#links {
    display: flex;
    flex-direction: row;
    gap: .7rem;
    justify-content: center;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    color: var(--accent);
}

.ocean {
    height: 5%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--wave-bg);
}

.wave {
    background: url(./wave.svg) repeat-x;
    position: absolute;
    top: -198px;
    width: 6400px;
    height: 198px;
    animation: wave 14s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    transform: translate3d(0, 0, 0);
}

.wave:nth-of-type(2) {
    top: -175px;
    animation: wave 17s cubic-bezier(0.36, 0.45, 0.63, 0.53) -2s infinite,
        swell 4s ease-in-out -1s infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    top: -155px;
    animation: wave 20s cubic-bezier(0.26, 0.75, 0.53, 0.43) -3s infinite,
        swell 6s ease-in-out -0.5s infinite;
    opacity: 1;
}

@keyframes wave {
    0% {
        margin-left: 0;
    }

    100% {
        margin-left: -1600px;
    }
}

@keyframes swell {

    0%,
    100% {
        transform: translate3d(0, -25px, 0);
    }

    50% {
        transform: translate3d(0, 10px, 0);
    }
}