:root{
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;

    /* Color Constants */
    --sky: #BBE1FA;
    --mediumblue: #3282B8;
    --mydarkblue: #0F4C75;
    --dark: #1B262C;
}

body{
    margin: 0;
}

/* Header */
header:before{
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    background: url("icons/ucla-campus-night.jpg") no-repeat 35% 50%;
    -webkit-background-size: cover; /* Safari and Chrome */
    -moz-background-size: cover;    /* Firefox */
    -o-background-size: cover;      /* Opera */
    background-size: cover;         /* Standard */
}

header{
    width: 100%;
    height: 100vh;
    position: relative;
}
header article{
    position:absolute;
    right: 5rem;
    bottom: 6rem;
    color: white;
    font-size: 3rem;
    text-align: center;
}
header p{
    font-size: 1.5rem; 
    margin-top: 0.5rem;
}

/* All Main Sections*/
.main-section{
    padding: 2rem 20rem;
}

.fade-in{
    opacity: 0;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
    /* Start when top hits bottom of screen. 
       Finish when the element has entered 25% of the way. */
}

.main-section:nth-child(odd){
    background-color: white;
}

.main-section:nth-child(even){
    background-color: whitesmoke;
}

/* Profile */
#profile{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 1.5rem;
    text-align: center;
}

#abby-picture{
    border-radius: 5rem;
    height: 70vh;
}

#profile p{
    max-width: 60rem;
}

/* Education, Experience, Activities*/
.timeline{
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline article{
    background: var(--sky);
    overflow-wrap: anywhere;
}

.timeline ul::before{     /* Vertical Line in timeline*/
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    height: 100%;
    width: 1px;
    background: var(--sky);
}

.timeline li article{
    margin-left: 1rem;
    border-radius: 1rem;
    padding: 0.5rem;
}

.timeline li article::before{    /* Horizontal Line in timeline*/
    content: '';
    position: absolute;
    top: 1.15rem;
    left: -0.5rem;
    width: 1.5rem;
    height: 0.1rem;
    background: var(--sky);
}

.timeline li article > *{     /*All article elements have a margin of 0 (expect the first timeline-info as seen below*/
    margin: 0rem;
}
.timeline-important+.timeline-info{
    margin: 1rem 0 0 0;
}

.timeline li{
    position: relative;
}

.timeline li + li{
    margin-top: 1rem;
}

.timeline li::marker{
    content:"⬤";
    color: var(--sky);
}

/* Projects */
#projects-outer-flex-box{
    display: flex;
    justify-content: center;
}

#projects-flex-box{
    width: calc(3*16vw + 3*1rem + 3*1.5rem);   /*Adjusted to fit 3 project boxes (margin and padding too)*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.project{
    margin: 0.5rem;
    background-color: var(--mydarkblue);
    width: 16vw;
    color: white;
    border-radius: 1rem;
    padding: 0.75rem;
    cursor: pointer;
}

.project:hover{
    opacity: 0.8;
}

.project div{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.project h3{
    margin: 0 0.25rem 0 0;
}

.project img{
    margin: 0 0.25rem;
    width: 1rem;
}

.project p{
    margin: 1rem 0 0 0;
}

/* Footer */
footer{
    padding: 1rem 0rem;
    width: 100%;
    background-color: slategray;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.socials{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.socials::before, .socials::after{
    content:"";
    position: relative;
    top: 1.5rem;
    width: calc((99vw - 9rem - 2rem)/2);
    height: .1rem;
    background-color: white;
}

.social > img{
    width: 2rem;
    height: 2rem;
    margin: 0.5rem;
    transition: transform ease-in-out 100ms;
}

.social > img:hover{
    transform: scale(1.1);
}

#copyright > p{
    margin: 0.5rem;
}

#leah{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* Fade-in */
@keyframes fade-in{
    to{opacity: 1;}
}

@media (max-width: 1475px){
    .main-section{
        padding: 2rem 13rem;
    }
}

@media (max-width: 1125px){
    .main-section{
        padding: 2rem 10rem;
    }
}

@media (max-width: 1000px){
    .main-section{
        padding: 2rem 7rem;
    }
    header article{
        font-size: 2.5rem;
    }
    #abby-picture{
        border-radius: 4;
        height: 55vh; 
    }
}

@media (max-width: 805px){
    .main-section{
        padding: 2rem 2rem;
    }
    header article{
        right: 2rem;
        font-size: 2rem;
    }
    .project{
        width: 70vw;
    }
    #projects-flex-box{
        width: calc(70vw + 1rem + 1.5rem);
    }
}

@media (max-width: 500px){
    #abby-picture{
        border-radius: 3rem;
        height: 40vh;
    }
    header article{
        right: 1rem;
        left: 1rem;
        font-size: 1.5rem;
    }
    .project{
        width: 60vw;
    }
    #projects-flex-box{
        width: calc(60vw + 1rem + 1.5rem);
    }
}