* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --sidebar-color: #f2f1ee;
    --accent-light: rgba(233, 82, 58, 1);
    --accent-light-transparency: rgba(233, 82, 58, 0.6);
    --main-white: #f5f5f5;
    --accent-blue: #184e6b;
    --main-blue: #2f6e91;
    --smoke-color: #e9e9ed;
    --dark-smoke: #d0d0d7
}

html {
    font-size: 16px;
    /* background-color: rgb(52, 53, 58); */
}

body {
    font-size: 100%;
    font-family: "Lato", "Roboto", sans-serif;
    background-color: var(--main-white);
}

header {
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

#about-header {
    margin-bottom: 0;
}

.navbar {
    display: flex;
    max-height: 4rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    align-items: center;
    padding: 2rem 1.2rem;
    /* background-color: #f2f1ee; */
    justify-content: space-between;
    background-color: var(--main-white);
}

.desktop-layout {
    display: none;
}

.logo {
    max-height: 2.8rem;
    cursor: pointer;
}

/* .dropdown-icon-container {
    border-style: solid;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border-radius: 10px;
} */

.dropdown-icon {
    width: 40px;
}

.dropdown-button {
    border-style: none;
    background-color: var(--main-white);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: lightgrey;
    min-width: 8rem;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    overflow: auto;
}

.dropdown-content a {
    color: black;
    padding: .75rem;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: darkgrey;
}

.show {
    display: block;
}

.fade {
    display: hidden;
}

#desktop-pict {
    display: hidden;
}

/*.dropdown-content {
    display: flex;
    flex-direction: column;
    min-width: 8rem;
    background-color: lightgrey;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    position: absolute;
    overflow: auto;
    right: 0;
    z-index: 1;
}*/

.home-profile-section {
    /* border-style: solid; */
    margin-top: 2rem;
    word-spacing: 0.1rem;
    letter-spacing: 0.1rem;
}

.home-profile-frame {
    overflow: hidden;
    height: 13rem;
    width: 13rem;
    border-radius: 100%;
    margin: auto;
    align-items: center;
    justify-content: center;
}

.home-profile-pict {
    width: 100%;
    height: auto;
}

.profile-name {
    text-align: center;
    margin-top: 2.1rem;
}

.profile-intro {
    text-align: center;
    /* color: rgb(130, 130, 130); */
    padding: 0 4.5rem;
    font-size: 120%;
    margin-top: 1rem;
}

.selection-section {
    margin-top: 2rem;
    width: 100%;
}

.button-container {
    display: flex;
    justify-content: center;
    text-decoration: none;
    margin-top: 2rem;
    pointer-events: none;
}

.button-container button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 3.0rem;
    background-color: var(--smoke-color);
    border-radius: 50px;
    border-color: #000;
    border-style: none;
    width: 60vw;
    min-width: 180px;
    max-width: 350px;
    font-size: 110%;
    pointer-events: auto;
    max-height: 55px;
    white-space: nowrap;
}

.button-container button:hover {
    background-color: var(--main-blue);
    color: var(--main-white);
    transition: all 0.4s ease 0s;
    border: var(--main-blue);
}

.button-container button:hover .home-icon {
    filter: invert(1);
}

.button-icon-container {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: end;
}

.button-text {
    width: 66.6%;
    flex-grow: 1;
    text-align: left;
    font-size: 1.1rem;
    align-items: center;
    padding-left: 5px;
}

.home-icon {
    width: 32px;
    transition: filter .4s ease;
}

#cta-button {
    white-space: nowrap;
}

.skills {
    display: none;
}

hr {
    height: 1px;
    background-color: #000;
    width: 85vw;
    margin: auto;
    margin-top: 48px;
    border: none;
}

footer {
    display: flex;
    /* box-shadow: 0px 0px 8px 4px rgba(0, 0, 0, 0.2); */
    margin: 1rem 0;
    margin-left: 7vw;
    align-items: center;
}

.footer-profile-frame {
    overflow: hidden;
    width: 5rem;
    border-radius: 100%;
    display: flex;
}

.footer-profile-pict {
    width: 100%;
    transform: scale(1.3);
}

.footer-profile-text {
    display: block;
    padding-left: 1rem;
}

.footer-profile-name {
    font-size: 135%;
    color: #2f6e91;
    font-weight: bold;
}

.footer-profile-title {
    font-size: 100%;
}

.social-icons-container {
    display: flex;
    list-style: none;
    justify-content: flex-start;
    align-items: center;
    min-height: 100%;
    margin-top: .25rem;
}

.socmed-icon {
    width: 24px;
    margin-right: 7px;
}

/* styling for about.html */
.main-text {
    margin: 0 2.25rem;
}

.about-h1 {
    margin-top: 1.5rem;
}

.about-ul {
    padding-left: 2rem;
    padding-right: 2rem;
}

.about-ul-exp {
    list-style: none;
}

.about-ul-exp-technical {
    padding-left: 1.5rem;
}

.about-ul-exp-nontechnical {
    padding-left: 1.5rem;
}

.about-ul-exp-li {
    padding-top: .5rem;
}

.about-h2 {
    color: #184e6b;
    margin-top: 1rem;
}

.about-p {
    margin-top: 0.5rem;
}

.test-button button {
    padding: 0.7rem 3rem;
    border-radius: 50px;
    display: flex;
    text-decoration: none;
    display: flex;
    align-items: center;
    max-width: 60%;
}

.test-button p {
    margin-left: 2rem;
    text-wrap: nowrap;
}

.test-button {
    text-decoration: none;
}

/*about v2 start here*/
#profile-header {
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.about-content {
    margin: 0 20px;
}

.profile-banner {
    width: 100%;
    height: 85px;
    background-color: antiquewhite;
}

.profile-banner-picture {
    object-fit: cover;
    width: inherit;
    height: inherit;
}
.profile-picture-border {
    width: 125px;
    height: 125px;
    border-radius: 100%;
    background-color: #fff;
    position: absolute;
    margin-left: 20px;
    margin-top: -55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px 2px rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.profile-picture {
    object-fit: cover;
    width: 97.3%;
    border-radius: 100%;
}

#profile-name {
    font-size: 1.125rem;
    font-weight: bold;
    margin-top: 80px;
    margin-left: 20px;
}

#profile-headline {
    margin-left: 20px;
    margin-right: 20px;
}

.language-subheader {
    font-weight: bold;
    font-size: 1.125rem;
    margin-top: 15px;
}

.language-text {
    word-spacing: 1px;
    margin-top: 4px;
}

.language-each {
    margin-left: 20px;
}

.position {
    margin: 20px;
}

.position-entity {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.position-entity p {
    margin-left: 10px;
}

.position-logo {
    width: 35px;
    height: 35px;
}

.section-break {
    background-color: #ebebeb;
    width: 100%;
    margin: 35px 0;
    height: 2px;
}
.content-header {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--accent-blue);
}

.content-text {
    word-spacing: 1px;
}

.experience-timeline {
    margin-bottom: 30px;
}

.experience-entity {
    display: flex;
    margin-top: 10px;
}

.experience-entity-timeline {
    display: flex;
    margin-top: 15px;
}

.experience-entity-timeline-shape {
    display: flex;
    flex-direction: column;
    height: inherit;
    position: relative;
    align-items: center;
    margin-left: 20px;
}

.experience-entity-timeline-shape::before {
    content: "";
    width: 2px; 
    height: 83%;
    background-color: #dfdfdf;
    position: absolute;
    bottom: 0;
    justify-content: center;
}

.experience-entity-timeline-circle {
    background-color: #cccccc;
    height: 8px;
    width: 8px;
    border-radius: 100%;
    margin-top: 7px;
}

.experience-entity-timeline-rectangle {
    background-color: black;
    height: inherit;
    width: 10px;
}

.experience-entity-timeline-text {
    margin-left: 33px;
}

.experience-entity-text-timeline-position {
    font-weight: bold;
    font-size: 1.15rem;
}

.experience-entity-text-timeline-period {
    color: rgb(126, 126, 126);
    margin-bottom: 5px;
}

.experience-entity-text {
    margin-left: 10px;
}

.experience-entity-text h2 {
    font-size: 1.3rem;
}

.experience-entity-text-period {
    margin-top: 5px;
    color: rgb(126, 126, 126);
    margin-bottom: 5px;
}

.experience-logo {
    width: 50px;
    height: 50px;
}

.about-education {
    display: flex;
    margin-top: 10px;
}

.about-education-logo {
    width: 50px;
    height: 50px;
}

.about-education-text {
    margin-left: 18px;
}

.about-education-text h2 {
    font-size: 1.125rem;
    font-weight: bold;
}

.about-education-subtext {
    margin-top: 5px;
}

.gpa {
    color: rgb(126, 126, 126);
    margin-top: 2px;
}

.about-certification {
    margin-top: 10px;
}

.each-certification {
    list-style: none;
    margin-bottom: 30px;
}

.certification-header {
    display: flex;
}

.certification-text {
    margin-left: 15px;
}

.certification-text h2 {
    font-size: 1.125rem;
}

.certification-text p {
    color: rgb(126, 126, 126);
}

.certification-logo {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.certification-media {
    display: flex;
    justify-content: center;
}

.certification-media-file {
    width: 80%;
    margin-top: 15px;
    box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.2);
    outline-style: solid;
    outline-width: 5px;
    outline-color: #fff;
}

.card {
    max-width: inherit;
    height: auto;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.card h2 {
    font-size: 1.125rem;
    position: absolute;
    bottom: 15px;
    right: 10px;
    background-color: rgba(26, 26, 26, 0.5);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
}

.about-interest {
    margin-top: 10px;
}

.interest-picture {
    width: 100%;
    border-radius: 6px;
}

.show-more-certification {
    display: none;
}

.showMore {
    display: block;
}

.show-more-container {
    display: flex;
    justify-content: center;
}

.show-more {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    border-radius: 100px;
    border-style: none;
    background-color: #e9e9ed;
}

.show-more:hover {
    background-color: #d0d0d7;
}

.toggle-arrow {
    height: 6px;
    margin-left: .25rem;
}

/*Certification starts here*/
.page-container {
    margin: 0 5%;
}

@media screen and (min-width: 769px) {
    .button-icon-container {
        width: 42%;
        justify-content: end;
    }

    .button-text {
        width: 40%;
    }
}

@media screen and (min-width: 992px) {
    body {
        display: flex;
        width: 100%;
    }

    .desktop-index {
        background-color: #000;
        flex-wrap: wrap;
    }

    header {
        margin-bottom: 0;
        position: sticky;
    }

    .navbar {
        background-color: var(--sidebar-color);
        flex-direction: column;
        justify-content: flex-start;
        height: 100vh;
        max-height: 100vh;
        width: 60px;
        padding: 0;
        padding: 5px;
        position: sticky;
        top: 0;
    }

    .navbar-icon {
        height: 25px;
        margin: 10px 0;
        transition: filter 0.4 ease 0s;
    }

    .dropdown-icon-container {
        display: none;
    }

    .desktop-layout {
        display: flex;
        text-decoration: none;
        color: black;
        justify-content: space-evenly;
        width: 100%;
        margin-bottom: 15px;
    }

    .desktop-layout:hover {
        background-color: var(--main-blue);
        transition: all 0.4s ease;
        border-radius: 5px;
    }

    .desktop-layout:hover .navbar-icon {
        filter: invert(1);
    }

    .logo {
        margin-bottom: 30px;
    }

    .home-profile-section {
        margin-top: 0;
        background-color: #000;
        margin-bottom: 100px;
    }

    .home-profile-frame {
        width: fit-content;
        height: auto;
        border-radius: 0%;
        margin: 0;
        position: relative;
    }

    .home-profile-pict {
        display: none;
    }

    #desktop-pict {
        display: block;
        width: 60vw;
    }

    .button-container button {
        background-color: rgba(255, 255, 255, 0.4);
    }

    .profile-name {
        position: absolute;
        margin-top: 0;
        right: 8%;
        top: 7rem;
        color: #fff;
    }

    .profile-intro {
        position: absolute;
        padding: 0;
        margin-top: 0;
        top: 10rem;
        right: 8%;
        text-align: end;
        width: 35%;
        color: #fff;
    }

    .selection-section {
        position: absolute;
        top: 9.375rem;
        right: 6%;
        width: auto;
        margin-top: 64px;
        width: 350px;
    }
    
    .selection-section button {
        cursor: pointer;
        max-width: 300px;
    }

    dialog {
        translate: -50% -50%;
        top: 50%;
        left: 50%;
        border-radius: 5px;
        border-style: none;
        padding: 16px 24px;
        width: 320px;
        overflow: hidden;
    }

    dialog:focus {
        outline: none;
    }

    dialog button {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fff;
        border-style: none;
        margin-left: 95%;
    }

    #modalBox {
        background-color: var(--accent-blue);
        font-size: 24px;
        border-radius: 25px;
        width: 120px;
        margin-left: 78.5px;
        color: #fff;
        padding: 5px 20px;
        margin-top: 20px;
        box-shadow: 0 0 12px 3px rgba(0, 0, 0, 0.3);
    }

    dialog img {
        width: 112px;
        position: relative;
        margin-left: 82.5px;
    }

    dialog button img {
        width: 20px;
        padding: 2px;
        margin-left: 0;
    }

    dialog p {
        text-align: center;
        font-size: 16px;
    }

    ::backdrop {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
    }

    hr {
        display: none;
    }

    .footer-desktop {
        display: none;
    }

    .skills {
        margin-top: 70px;
        margin-left: -19px;
        display: flex;
        flex-wrap: wrap;
        width: 24.375rem;
    }

    .skills h1 {
        color: #fff;
        margin-bottom: 1.25rem;
        text-align: right;
        padding-right: 3.125rem;
    }

    .trans {
        background-color: rgba(255, 255, 255, 0.4);
        padding: 5px;
        min-width: 70px;
        height: 70px;
        margin: 0 20px 10px 0px;
        border-radius: 5px;
    }
    
    .trans-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trans-logo img {
        width: 45px;
    }

    .trans-text {
        display: flex;
        justify-content: center;
        align-items: center;
        color: #000;
        font-size: 0.8rem;
    }

    .black-space {
        height: 50px;
    }

    /* About.html here */
    #desktop-about {
        flex-grow: 1;
    }

    #profile-name {
        margin-top: 25px;
        font-size: 2rem;
    }

    #first-desktop-section p {
        margin-left: 360px;
    }

    #first-desktop-section .position {
        margin-left: 360px;
    }

    #first-desktop-section .position p {
        margin-left: 10px;
    }

    #second-desktop-section {
        margin-left: 360px;
        margin-right: 80px;
    }

    #second-desktop-section p {
        font-size: 1.25rem;
    }

    .profile-banner {
        height: 55px;
    }

    .profile-picture-border {
        margin-top: 20px;
        margin-left: 30px;
        width: 18.75rem;
        height: 18.75rem;
        border-radius: 15px;
    }

    .profile-picture-border img {
        border-radius: 10px;
    }

    .desktop-ordering {
        display: flex;
        margin-top: 90px;
        flex-wrap: wrap;
        row-gap: 30px;
        margin-left: 20px;
        justify-content: center;
    }

    #desktop-about-hr {
        display: block;
    }

    #desktop-language {
        order: 1;
        flex-basis: 35%;
    }

    #certificate-anchor { /* this is for education section because of how anchoring works */
        order: 2;
    }

    #desktop-experience {
        order: 3;
        border-radius: 10px;
        background-color: var(--smoke-color);
        margin-right: 40px;
        padding-top: 20px;
    }

    #desktop-experience h1 {
        text-align: center;
        margin-right: 50px;
        margin-bottom: 20px;
    }

    .experience-timeline {
        margin-left: 40px;
        margin-right: 60px;
    }

    #desktop-certification { /* this is for the actual certification*/
        order: 4;
    }

    #desktop-certification h1 {
        text-align: center;
        margin-right: 20px;
    }

    .about-certification {
        margin-top: 40px;
    }

    .each-certification {
        margin-bottom: 80px;
    }

    .certification-text {
        margin-top: 10px;
    }

    .certification-header {
        margin-bottom: 10px;
        margin-right: 20px;
        margin-top: 20px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .certification-issuer {
        text-align: center;
        margin-right: 20px;
    }

    .certification-media img {
        width: 75%;
    }

    #footer-desktop {
        margin-right: 7vw;
    }

    .footer-profile-title::after {
        content: '| Full Stack Developer | Associate Google Cloud Engineer | Undergraduate of Information System with 3.82 GPA';
        margin-left: 4px;
        text-wrap: wrap;
    }
}

@media screen and (min-width: 1550px) {
    html {
        font-size: 24px;
    }

    #desktop-experience {
        margin: 0 100px;
    }

    .logo {
        height: 1.8667rem;
    }

    .profile-picture-border {
        height: 15.6rem;
        width: 15.6rem;
    }

    #first-desktop-section p {
        margin-left: 18.25rem;
    }

    #first-desktop-section .position {
        margin-left: 18.25rem;
    }

    #second-desktop-section {
        margin-left: 18.25rem;
    }

    #footer-desktop {
        background-color: var(--smoke-color);
    }

    /* index.html for desktop */
    .profile-intro {
        width: 35%;
    }

    .home-icon {
        width: 2rem;
    }

    .selection-section {
        right: 8%;
    }

    .selection-section button {
        max-width: 18.75rem;
        max-height: 3rem;
    }

    .skills {
        margin-left: -135px;
    }

    .skills h1 {
        padding-right: 4.25rem;
    }

    .trans {
        min-width: 4.38rem;
        height: 4.38rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .trans-logo img {
        width: 2.8125rem;
    }
}

@media screen and (min-width: 2000px) {
    html {
        font-size: 32px;
    }

    .profile-name {
        right: 7.5%;
    }

    .profile-intro {
        right: 7.5%;
        margin-top: 1rem;
    }

    .selection-section {
        margin-top: 5rem;
        right: 7.5%;
        width: 15rem;
    }

    .button-container {
        margin-top: 2rem;
    }

    .skills {
        width: 24.375rem;
        margin-top: 4.375rem;
        margin-left: -4.2rem;
        justify-content: flex-start;
    }

    .skills h1 {
        margin-bottom: 1.5rem;
        text-align: right;
        padding-right: 5rem;
    }
}