
:root {
    --text-color: #f1f0ea;
    --background-color: #2d232e;
    --link-color: #89dccb;
    --profile-bg-color: #7ac2b3;
    --profile-border-color: #f1f0ea;
    --primary-border-color: #8c8595;
    --hover-border-color: #89fae7;
}

/* Fonts */

@font-face {
    font-family: 'Roboto Mono';
    src: url('./assets/fonts/roboto_mono.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/roboto.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Serif';
    src: url('./assets/fonts/roboto_serif.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Color Emoji';
    src: url('./assets/fonts/noto_color_emoji.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}


/* Elements */

a {
    color: var(--link-color);
    text-decoration: underline dotted;
}

a:hover {
    text-decoration: underline dotted;
}

body {
    background: var(--background-color); 
    color: var(--text-color);
    font-family:'Roboto Serif', serif;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    font-size: 0.6rem;
    padding-bottom: 10px;
}

h1 {
    font-family:'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 24px;
    animation: fadein 0.8s ease-in forwards;
    animation-delay: 0s;
}

h2 {
    font-family:'Roboto', sans-serif;
    font-size: 1.25rem;
}

h3 {
    font-family:'Roboto', sans-serif;
    font-size: 1.0rem;
}

hr {
    width: 95%;
    height:2px; 
    background-color: var(--text-color);
    border: none;
}

section {
    width: 90%;
}

/* IDs */

#header {
    text-align:center;
}

#intro p {
    width: 100%;
}

#profile-pic {
    display: inline-block;
    margin: auto;
    transform-origin: center;
    animation: rocking 1s forwards;
    border: 8px solid var(--profile-border-color); 
    border-radius:10%; 
    margin-top: 20px;
    background-color: var(--profile-bg-color)
}

#resume-link {
    margin-top: 20px;
    text-align: center;
}

/* Classes */

.break-under-600{
    font-family: 'Noto Color Emoji';
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 95%;
    margin: auto;
}

.examples-area {
    width: 80%;
    margin: 0 auto;
}

.example-trio {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 2.25rem;
    text-align: center;
    font-size: 0.7rem;
}

.example-trio img{
    width: 250px;
    max-height: 150px;
    object-fit: cover; 
    padding: 0px;
    margin: 0px 20px;
    border: 3px solid var(--primary-border-color); 
    border-radius: 7%; 
    opacity: 75%;
    transform-origin: center;
    transition: transform 0.5s ease, border-color 0.3s ease, box-shadow 0.5s ease, opacity 0.3s ease;
    will-change: transform;
}

.example-trio img:hover{
    border-color: var(--hover-border-color); 
    opacity: 100%;
    transform: scale(1.05);
    transform-origin: center;
}

.example-trio p {
    margin: 0px;
    padding: 10px;
    text-align: center;
}

.hidden-link {
    color: var(--text-color); 
    text-decoration: none;
}

.hidden-link:hover {
    text-decoration: none;
}

.keyword {
    color: var(--link-color);
    font-weight: bold;
}

/* Animations */

@keyframes rocking {
    0% { transform: rotate(-10deg); transform: scale(0%);}
    50% { transform: rotate(-10deg); transform: scale(0%);}
    64% { transform: rotate(0deg); transform: scale(110%)}
    69% { transform: rotate(0deg); transform: scale(100%)}
    75% { transform: translateY(0px);}
    78% { transform: translateY(-5px);}
    79% { transform: translateY(0px);}
    80% { transform: rotate(0deg);}
    85% { transform: rotate(-5deg);}
    90% { transform: rotate(5deg);}
    95% { transform: rotate(-5deg);}
    100% { transform: rotate(0deg);}
}

@keyframes fadein {
    0% {opacity: 0;}
    99% {opacity: 0;}
    100% {opacity: 1;}
}

/* Media Queries */

@media (min-width: 2300px)
{
    .container {
        width: 55%;
    }

    .examples-area {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 2299px)
{
    #intro p {
        width: 100%;
    }

    .container {
        width: 60%;
    }

    .examples-area {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 1699px)
{
    .example-trio img{
        width: 200px;
        height: 120px;    
        margin: 0px 5px;
    }
}

@media (max-width: 1499px)
{
    .container {
        width: 70%;
    }
}

@media (max-width: 1279px)
{
    .container {
        width: 80%;
    }

    #intro p {
        width: 100%;
    }

    .example-trio {
        gap: 10px;
    }
}

@media (max-width: 1000px)
{
    h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    
    h3 { 
        font-size: 1.25rem;
        text-align: center;
    }

    #intro p {
        width: 100%;
        text-align: center;
        line-height: 1.4rem;
    }
   
    #resume-link {
        margin-top: -10px;
    }

    .example-trio {
        flex-direction: column;
        font-size: 0.85rem;
    }

    .example-trio div {
        margin-bottom: 20px;
    }

    .example-trio img{
        width: 250px;
        height: 150px;
        margin: 0px 20px;
    }
}

@media (max-width: 600px)
{
    .break-under-600::after{
        content: "\A\A";
        white-space: pre;
    }
}

@media (max-width: 450px)
{ 
    .example-trio div {
        margin-bottom: 10px;
    }

    .example-trio img{
        width: 200px;
        height: 120px;
        margin: auto;
    }
}