@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Russo+One&display=swap');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #F2FADB;
    color: #333;
    font-family: "Lato", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.resume-container {
    max-width: 60%;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 12vh;
    position: relative;
}

#title {
    width: 100%;
    height: 20vh;
    position: relative;
    background-color: #E14631;
}

.icon-link {
    width: 20px;
    transform: translateY(20%);
}

#avatar {
    position: absolute;
    left: 4%;
    top: -20px;
    height: calc(100% + 40px);
    background-image: url('res/avatar.jpg');
    background-size: cover;
    background-position: center;
    width: 22%;
}

#title-text {
    position: absolute;
    left: 30%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

#downloadButton {
    position: absolute;
    top: 0;
    left: 0;
    background: none;
    width: 100%;
    padding: 15px;
    background-color: #fff7e8;
    border: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: black;
    font-size: 1.2vw;
    cursor: pointer;
}

#downloadButton:hover {
    background-color: #ffedcc;
}

h1,
h2 {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2.4vw;
    letter-spacing: 2.2px;
    color: white;
    font-weight: 500;
    font-family: "Russo One", sans-serif;
    font-style: normal;
}

h2 {
    font-size: 1.5vw;
    color: #2c2b2b;
    margin-top: 10px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: monospace;
}

#containers {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.left {
    padding: 2%;
    padding-left: 4%;
    font-size: 15px;
    background-color: #2c2b2b;
    color: white;
    border-bottom-left-radius: 10px;
    width: 26%;
}

.right {
    padding: 2%;
    padding-left: 4%;
    font-size: 15px;
    color: #333;
    padding: 2%;
    width: 74%;
    position: relative;
}

li {
    margin-top: 4px;
    list-style-type: square;
}

.title-underscore {
    background-color: #E14631;
    height: 3px;
    border: none;
}

.badge-title {
    display: block;
    margin: 8px 0;
}

.skills-title {
    text-align: center;
    border-top: 2px dashed #E14631;
    border-left: 2px solid #E14631;
    border-right: 2px solid #E14631;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    margin-top: 10px;
    padding: 3px;
}

.skills {
    display: flex;
    flex-direction: row;
    padding: 4px;
    border: 2px solid #E14631;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    border-top: none;
    font-weight: 700;
    font-family: monospace, sans-serif;
    text-align: left;
    display: block;
    min-height: 45%;
}

.project-desc {
    font-weight: 700;
    font-family: monospace, sans-serif;
    text-align: left;
    display: block;
    min-height: 45%;
}

.badge {
    display: inline-block;
    width: fit-content;
    padding: 5px 10px;
    margin: 5px;
    margin-left: 0;
    border-radius: 20px;
    background-color: #4A3030;
    color: #E14631;
    transition: 0.5s;
    cursor: default;
}

.badge:hover {
    color: white;
    border: 1px solid white;
}

.divide-h {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.container h3 {
    color: #E14631;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 0;
    font-weight: 500;
    font-family: "Russo One", sans-serif;
    font-style: normal;
}

.container ul {
    padding-left: 20px;
}

.left a {
    color: #ffa690;
    text-decoration: none;
    transition: color 0.3s ease;
}

.container a:hover {
    color: #E14631;
}

.right a:hover {
    color: #e62929;
}

.company {
    font-weight: 700;
    display: inline-block;
}

.dates {
    font-weight: 700;
}

.education div {
    font-weight: 700;
}

.color-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
}

.color-button {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 3px;
    border: #868686 solid 1px;
    display: none;
}

#button1 {
    background: linear-gradient(135deg, red, yellow);
}

#button2 {
    background: linear-gradient(135deg, blue, purple);
}

#button3 {
    background: linear-gradient(135deg, rgb(255, 85, 0), rgb(65, 65, 32));
}

#button4 {
    background: linear-gradient(135deg, rgb(67, 255, 15), rgb(0, 0, 0));
}

.icon {
    margin-right: 10px;
    width: 23px;
    transform: translateY(20%);
}

.large-icon {
    display: block;
    width: 40px;
}

#work {
    width: 100%;
}

.work-item {
    position: relative;
    background-color: #edecec;
    padding: 2%;
    border-radius: 10px;
    margin-top: 15px;
    width: 90%;
}

.job {
    font-weight: 800;
    font-style: normal;
    margin-top: 0;
}

.company-link {
    color: black;
    text-decoration: none;
}

.company-link:hover {
    color: #f42307;
}

.projects-container {
    display: flex;
    flex-direction: row;
    margin-top: 1vh;
}

.project-name {
    display: inline-block;
    margin: 0vh;
    width: 100%;
    text-align: center;
    font-size: 18px;
}

.git-icon {
    display: inline-block;
    width: 10%;
}

.divide-v {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.project {
    position: relative;
    background-color: #ffedeb;
    border: #e9d5d2 solid 1px;
    width: 30%;
    border-radius: 10px;
    min-height: 20vh;
    padding: 10px;
    margin-right: 10px;
    padding-bottom: 23px;
}

.git-link {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #edecec;
    text-decoration: none;
    color: #2c2b2b;
    padding: 2px;
    border-radius: 5px;
    border: #c2a6c8 solid 1px;
    width: 80%;
    text-align: center;
}

.git-link:hover {
    background-color: #f8dafe;
    transition: 0.5s;
}

.book {
    color: burlywood;
}

@media screen and (max-width: 1400px) {
    .work-item {
        width: 84%;
        margin: 10px auto;
    }

    .projects-container {
        flex-direction: column;
    }

    .project {
        width: 80%;
        margin: 10px auto;
    }

    h3 {
        text-align: center;
    }
}


@media screen and (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }

    .resume-container {
        margin: 0;
        width: 100%;
        max-width: 100%;
        padding-top: 8vh;
        box-sizing: border-box;
    }

    .left {
        overflow: hidden;
        padding: 5px;
        width: 35%;
        padding-top: 15px;
    }

    #title {
        height: 10vh;
    }

    .work-item {
        width: 90%;
        margin: 10px auto;
        padding: 10px;
    }

    h1 {
        font-size: 5vw;
    }

    h2 {
        font-size: 3.5vw;
    }

    h3 {
        text-align: center;
    }

    .left h3 {
        font-size: 3vw;
    }

    .job {
        text-align: center;
    }

    .projects-container {
        flex-direction: column;
    }

    .project {
        width: 80%;
        margin: 10px auto;
    }

    #downloadButton {
        font-size: 4vw;
        height: 8vh;
    }

    .left li {
        margin-left: -20%;
    }
}