:root {
    --primary-color: #588157;
    --secondary-color: #a3b18a;
    --dark-color: #344e41;
    --light-color: #dad7cd;
}

body {
    font-family: Verdana, sans-serif;
    user-select: none;
}

h2 {
    margin-bottom: 1em;
    letter-spacing: 0.125em;
    color: var(--dark-color);  
}

header {
    padding-top: 3.75em;
    padding-bottom: 3.75em;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;

    padding: 2em 1em;
    margin: 2em 0;
}

.card {
    background-color: #fff;
    border-radius: 0.5em;
    padding: 1.5em;
    margin: 1em auto;
    box-shadow: 0 0.125em 0.5em rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: row;
    overflow-wrap: break-word;
    gap: 1.5em;

    max-width: 43.75em;
    width: 90%; 

    perspective: 12.5em;
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
}

.card:active {
    transform: rotateY(20deg) scale(1.02);
}

.card-left {
    flex-basis: 12.5em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-right {
    flex-basis: 100%;
    list-style-type: disc;
    padding-left: 1.5em;
    margin: 0;
}

.card h3 {
    margin: 0;
    font-weight: 600;        
    color: var(--dark-color);
}

.card h4 {
    margin: 0.2em 0 0.5em 0;
    font-weight: 400;
    color: var(--primary-color);
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;              
    font-style: italic;
}

.card-left {
    flex-basis: 21.875em;
}

.card li {
    margin-bottom: 0.75em;   
    line-height: 1.4;        
}

#links {
    display: flex;         
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    margin-top: 1em;
}

#links a {
    color: var(--dark-color);  
    text-decoration: none;  
}
  
#links a:hover {
    color: var(--primary-color); 
}

#education .card-right ul li {
    margin-bottom: 0.3em;
    line-height: 1.3; 
} 

#headshot {
    border-radius: 50%;
    width: 18.75em;
    height: auto;
}

#aboutme {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

#aboutme h1 {
    font-weight: normal;
}

#aboutme h3 {
    font-weight: normal;
}

#aboutme-first {
    align-self: flex-start;
    text-align: left;
}

#aboutme-second {
    align-items: flex-end;
    flex-basis: 30em; 
}

.resume-download {
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
}

.resume-download:hover {
    color: var(--secondary-color);
}

#corgi {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-color);
}

#corgi::after {
    content: url("assets/dog.jpg");
    display: none;
    position: absolute;
    top: 110%;
    left: 75%;
    transform: translateX(-50%);
}

#corgi:hover::after {
    display: block;
}

.wiggle {
    cursor: pointer;
    display: inline-block;
    transform-origin: bottom center;
}

.wiggle:hover {
    animation: wiggle 0.5s infinite alternate ease-in-out;
}

/* Animations */
@keyframes wiggle {
    0% {
      transform: rotateZ(-15deg);
    }
    100% {
      transform: rotateZ(15deg);
    }
}

@media(max-width: 995px) {
    #aboutme {
        flex-direction: column;
    }
    
    #aboutme-first {
        align-self: center;
    }
    
    #aboutme-second {
        align-items: center;
        flex-basis: 30em;
    }
}

@media(max-width: 768px) {
    #aboutme-first {
        text-align: center;
    }

    header {
        padding-bottom: 1.25em;
        padding-top: 1.25em;
    }

    .professional-experience-entry {
        flex-direction: column;
    }

    .card {
        flex-direction: column;
        gap: 0.5em;
        padding: 0.75em;
    }

    .card-left {
        flex-basis: auto;
        flex: 1 1 auto; 
        min-width: 0; 
    }
}