:root {
    --primary: #1A1488;
    --primary-light: #1A1488;
    --secondary: #FFFFFF;
    --accent: #6e2fc1;
    --light: #2596C0;
    --border: #0c0944;
}

* {
    box-sizing: border-box;
    font-size: small;
}
/* Two-column layout */
.content {
    display: grid;
    grid-template-columns: 2fr .75fr;
    gap: 32px;
}
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary) calc(50% - 600px), var(--secondary), var(--primary) calc(50% + 600px));
    line-height: 1.5;
}
footer {
    text-align: right;
    padding-right: 16px;
    margin-top: 24px;
    box-shadow: 0 0 24px 24px var(--primary);
}
header, footer {
    background-color: var(--border);
    color: var(--secondary);
}
header {
    box-shadow: 0 0 64px 64px var(--primary);
    padding: 16px 16px 0px 16px;
    margin:0px;
    margin-bottom:32px;
}
.header-links {
    justify-content: center;
    display:flex;
    flex-direction: row;
}
.hlink {
    padding:8px 16px 0px 16px;
    margin:0;
    margin-top:6px;
    border-radius: 16px 16px 0 0;
    background-color: var(--border);
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition-duration: .5s;
    display:flex;
    justify-content: center;
    align-items: center;
    height:30px;
    text-align: center;
    text-wrap: nowrap;
}
.hlink:hover, .hlink.active {
    font-size: 2rem;
    background-color: var(--primary);
    padding: 16px 32px 0px 32px;
}
.hlink.active:hover {
    font-size: 2rem;
}
.page-title {
    color: var(--secondary);
    text-decoration: none;
    font-size: 4rem;
    line-height: .6;
    text-align: center;
    margin:0;
    margin-top:24px;
    font-family: 'Sacramento', cursive;

}
.view-raw {
    justify-self: right;
}

.contents, .resume {
    flex:1;
}

.resume, .card, .welcome {
    max-width: 8.5in;
    margin: 0 auto;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 0 64px 16px var(--primary);
    border-radius: 8px;
}
.card {
    padding-bottom: 64px;
}
.resume {
    height:11in;
}

.welcome img {
    float:left;
    width:300px;
    height: auto;
    border-radius: 8px;
    margin: 0 16px 16px 0;
}
.welcome-text {
    overflow:hidden;
}
.resume-download {
    width:auto;
    display:flex;
    justify-content: center;
    padding-left: 50px;
    padding-bottom: 50px;
    align-items: center;
    background-color: var(--light);
    position: absolute;
    justify-self: right;
    width: 130px;
    height:130px;
    margin:-38px;
    border-radius:8px;
    /*x -y, each */
    clip-path: polygon(0% 0%, 100% 100%, 100% 0);
}
.resume-download:hover {
    width:150px;
    height:150px;
    padding-left: 60px;
    padding-bottom: 60px;
    transition: 0.5s;
}

/* Header */
.header, .header-left {
    margin-bottom: 12px;
    width:100%;
}
.header-left {
    width:55%;
}

.header h1, .header-left h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.contact {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
}

.contact span {
    margin-right: 16px;
}

.contact a {
    color: var(--accent);
    text-decoration: none;
}


section {
    margin-bottom: 24px;
}

section h2 {
    margin: 0;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0px;
}

h3 {
    margin: 0;
    font-size: 1.05rem;
}

.subheading {
    font-size: 0.9rem;
    color: var(--light);
    margin-bottom: 8px;
}
.portfolio-entry, .portfolio-entry2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:32px;
    max-height: 400px;
    
}
.portfolio-entry .portfolio-text, .portfolio-entry2 .portfolio-text{
    width:100%;
    display:flex;
    flex-direction: column;
    align-items: right;
    text-align: right;
}
.portfolio-entry2 .portfolio-text{
    text-align: left;
}
/* .portfolio-text {
    max-width:300px;
} */
.portfolio-text h1 {
    max-width:100%;
    margin:0;
    padding:0;
    border-bottom: 1px solid black;
}
iframe {
    border-radius: 16px;
}
.centered-row {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    gap:6px;
}
.site-link {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    justify-self: center;
    max-width:60px;
    border: 1px solid black;
    gap: 6px;
}
.portfolio-entry .centered-row {
    justify-content: right;
}
.entry-img-button {
    width: 50%;
    height: 300px;
    overflow:hidden;
    border-radius: 16px;
    box-shadow: 8px 8px 8px 8px rgba(0,0,0,0.5);
    transition: ease-in-out .5s;
}
.entry-img-button:hover {
    width: 650px;
}
.entry-img {
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: top;

}


.form-section {
    width: 66%;
    display:grid;
    grid-template-columns: 1fr;
    justify-self: center;
    gap:8px;
    font-size:110%;
    padding:32px;
    border-radius: 16px;
    background-color: var(--primary);
    color: var(--secondary);
    font-weight: 600;
}
.form-section div, .email-section, .message-section{
    width: 100%;
    display:flex;
    justify-content: left;
}
.form-section textarea, .form-section input {
    padding:8px;
    font-size: 1.4rem;
    border-radius: 16px;
    font-size: 1.4rem;
    width: 100%;
    
}
.form-section button {
    font-size: 1.4rem;
    font-weight: 800;
    padding:8px 16px 8px 16px;
    margin-top:16px;
    border-radius:16px;
    background-color: var(--light);
    color: var(--secondary);
    display:inline-flex;
    align-items: center;
    width:100%;
    transition:0.5s;
    gap:0%;
}
.expanding-dots {
    transition:0.5s;
    display:inline-flex;
    width:24px;
}
.nice-button {
    font-size: 1.1em;
    border-radius: 16px;
    margin: 8px;
}
button:hover  {
    transition:0.5s;
    gap:6%;
}
.expanding-dots span {
    opacity: 0;
    padding-left:46%;
    padding-right:46%;
    transition: ease-in .4s;
    transition: ease-out .5s; 
    font-size: 10%;
}
.expanding-dots span:nth-child(1) { transition-delay: ease-in 0.00s; }
.expanding-dots span:nth-child(1) { transition-delay: ease-out 0.15s; }
.expanding-dots span:nth-child(2) { transition-delay: ease-in 0.1s; }
.expanding-dots span:nth-child(2) { transition-delay: ease-out 0.1s; }
.expanding-dots span:nth-child(3) { transition-delay: ease-in 0.20s; }
.expanding-dots span:nth-child(3) { transition-delay: ease-out 0.05s; }
.expanding-dots span:nth-child(4) { transition-delay: ease-in 0.3s; }
.expanding-dots span:nth-child(4) { transition-delay: ease-out 0.0s; }

button:hover .expanding-dots span {
    padding-left:100%;
    padding-right:100%;
    transition:0.5s;
    opacity: 1;
    font-size: 100%;
}

button:hover img{
    transition:0.5s;
    padding-left:55%;
}
button img{
    transition:0.5s;
}


ul {
    margin: 0 0 0 20px;
    padding: 0;
}

li {
    margin-bottom: 0px;
}

/* Skills */
.skills p {
    margin: 0px;
}

/* Experience items */
.job {
    margin-bottom: 8px;
}

.title {
    font-weight: 600;
}

.job-meta {
    font-size: 0.9rem;
    color: var(--light);
}

.job-header {
    display: flex;
    justify-content: space-between;
}


.timeline {
    background-color: var(--primary-light);
    display:flex;
    flex:1;
    color: var(--secondary);
    min-width:min-content;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    border: 1px solid black;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    border-radius: 16px;
    overflow:hidden;

    scrollbar-color: var(--light) var(--border);
    scrollbar-width: thick;
}
.timeline::-webkit-scrollbar {
    width:16px;
}
.timeline::-webkit-scrollbar-thumb {
    background-color: var(--light);
    border: 2px solid var(--border);
}
.timeline-entry {
    display: grid;
    grid-template-columns: 4fr 1fr 11fr;
    align-items: center;
    justify-items: center;
    align-self: center;
    gap:12px;
    padding-right:16px;

    min-width:100%;
    transform-origin: top center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-entry:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.timeline-date {
    text-align: right;
    width:100%;
}
.timeline-info {
    text-align: left;
    width:100%;
}
.timeline-info h4 {
    color: var(--light);
    padding:0;
    margin:0;
}
.timeline-info h2 {
    margin:0;
}
.line, .blank-line {
    width:4px;
    background-color: var(--border);
    height:30px;
    align-self: center;
    justify-self: center;
    z-index:900;
    transition: .5s;
}
.blank-line {
    background-color: var(--primary);
}
.timeline-shapes {
    width:40px;
    display:flex;
    flex-direction: column;
}
.circle {
    width:25px;
    height:25px;
    background-color: var(--light);
    border: 4px solid var(--border);
    border-radius: 50%;
    z-index: 1000;
    transition: .5s;
    align-self: center;
}
.timeline-entry:hover .circle {
    width:40px;
    height:40px;
    transition: .5s;
}
.timeline-entry:hover .line, .timeline-entry:hover .blank-line {
    height:23px;
    transition: .5s;
}

/* Footer spacing for print */
@media print {
    body {
    padding: 0;
    background: #ffffff;
    }

    .resume {
    border: none;
    border-radius: 0;
    padding: 0;
    }
}

/* Smaller Screens */
@media (max-width:740px) {
    header {
        height:fit-content;
        padding: 0px;
        margin: 0px;
        width:auto;
        overflow:auto;
    }
    .header-links {
        min-height:fit-content;
        overflow-x:auto;
        justify-content: start;
        align-items: center;
    }
    .hlink {
        height:64px;
        width:fit-content;
    }
    .hlink, .hlink:hover, .hlink.active:hover, .hlink.active {
        font-size: 1.2rem;
    }
    .resume {
        width: 100%;
        max-height:none;
        border-radius: 0;
    }
    .resume-download {
        padding:0;
        width: 64px;
        height:64px;
        border-radius:100%;
        /*x -y, each */
        clip-path: none;
    }
    .resume-download:hover {
        width:150px;
        height:150px;
        padding-left: 60px;
        padding-bottom: 60px;
        transition: 0.5s;
    }
    .content {
        display:flex;
        flex-direction: column;
    }
    .portfolio-entry {
        flex-direction: column;
        padding:16px;
    }
    .portfolio-entry2 {
        flex-direction: column-reverse;
        padding:16px;
    }
    .entry-img-button {
        width:100%;
    }
    .form-section {
        width: 100%;
    }
}