:root {
    --logo-size: 64px;
}

* {
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: white;
    user-select: none;
}

:focus {
    outline: none;
}

img {
    font-size: small;
    font-weight: normal;
}

html,
body,
#root,
#back {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: center;
}

#back {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    background-image: url('https://res.cloudinary.com/dhkwrjyxd/image/upload/v1652458521/sdidsa/back.png');
    background-size: cover;
    background-position: center;
}

body {
    background-color: #444;
}

#root {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.section {
    position: relative;
    padding: 20px;
    background-color: #222;
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.section+.section {
    margin-top: 20px;
}

.section>*+* {
    margin-top: 15px;
}

.section.loading>* {
    opacity: 0;
    pointer-events: none;
}

.section>.after {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    border-width: 5px;
    border-style: solid;
    border-color: white;
    border-top-color: transparent;
    border-bottom-color: transparent;
    opacity: 0;
    pointer-events: none;
}

.section.loading>.after {
    opacity: 1;
}

.section .header {
    display: block;
    color: #ccc;
}

.section>.info {
    display: flex;
    flex-direction: row;
}

.section .info .left {
    width: 250px;
    background: #111;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 15px;
}

.section .info .left>*+* {
    margin-top: 20px;
}

.section .info .right {
    width: calc(100% - 250px);
}

.section .info .left .pi {
    width: auto;
    height: 170px;
    margin-top: 20px;
    border-radius: 50%;
    background: #222;
    box-sizing: border-box;
}

.section .info .left .bio {
    display: block;
    font-size: 14px;
    text-align: left;
    color: #ddd;
    font-weight: normal;
}

.section .info .left .dets {
    display: flex;
    flex-direction: column;
}

.section .info .left .dets .det {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.section .info .left .dets .det+.det {
    margin-top: 15px;
}

.section .info .left .dets .det .icon {
    width: 20px;
    height: auto;
    filter: saturate(0.5);
}

.section .info .left .dets .det>label {
    font-size: 0.85em;
    margin-left: 15px;
    position: relative;
    height: 18px;
    text-align: left;
    width: 100%;
}

.section .info .left .dets .det label {
    font-weight: normal;
}

.section .info .left .dets .det>label>label {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.copiable {
    cursor: pointer;
}

.acc_row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.acc_row+.acc_row {
    margin-top: 15px;
}

.account {
    box-sizing: border-box;
    padding: 10px;
    border-radius: 50px;
    min-width: 0px;
    max-width: calc(var(--logo-size) + 20px);
    max-height: calc(var(--logo-size) + 20px);
    display: flex;
    overflow: hidden;
}

.account .logo_cont {
    width: var(--logo-size);
    height: var(--logo-size);
    min-width: var(--logo-size);
    min-height: var(--logo-size);
    display: block;
    background-size: contain;
    position: relative;
}

.account .logo_cont img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.account .logo_cont .logo {
    background-color: #111;
}

.account .acc_data {
    min-width: 200px;
    display: flex;
    padding: 5px 0 5px 15px;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    opacity: 0;
    pointer-events: none;
}

.account .acc_data .link_cont label {
    font-size: smaller;
    font-weight: normal;
}

.account .acc_data .link_cont a {
    margin-left: 5px;
    text-decoration: none;
    color: #7aa4ff;
}

.account .acc_data .link_cont a:hover {
    color: white;
}

.account .logo_cont .pfp {
    opacity: 0;
}

.account:hover {
    min-width: 300px;
    max-width: 300px;
    background-color: #444;
    color: white;
}

.account:hover .logo_cont .pfp {
    opacity: 1;
}

.account:hover .logo_cont .logo {
    opacity: 0;
}

.account:hover .acc_data {
    opacity: 1;
    pointer-events: auto;
}

#slide_head {
    height: 51px;
    padding: 15px;
    box-sizing: border-box;
}

.slide_title+.slide_title {
    margin-left: 15px;
}

.slide_title {
    font-size: smaller;
    opacity: 0.6;
    font-weight: normal;
    cursor: pointer;
}

.slide_title.selected {
    font-size: 1.1em;
    font-weight: bold;
    opacity: 1;
}

#slide_body {
    width: 100%;
    height: calc(100% - 51px);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0%;
    height: 100%;
    width: 100%;
    padding-left: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
}

.slide.profile {
    overflow-y: auto;
}

.slide.projects .projs {
    height: 100%;
    position: relative;
    z-index: 44;
}

.proj_nav {
    position: absolute;
    width: 32px;
    height: 32px;
    top: calc(50% - 16px);
    cursor: pointer;
    z-index: 45;
}

.proj_nav.next {
    right: 0;
    transform: rotate(-90deg);
}

.proj_nav.prev {
    left: 20px;
    transform: rotate(90deg);
}

.project_link {
    font-weight: normal;
    opacity: 0.6;
    text-decoration: none;
}

.project_link:hover {
    opacity: 1;
}

.slide.shown {
    opacity: 1;
    pointer-events: auto;
}

.slide.certifications {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide .cert_display {
    width: 100%;
    height: calc(100% - 70px);
    position: relative;
    overflow: hidden;
}

.slide .cert {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.7);
}

.slide .cert.shown {
    opacity: 1;
    transform: scale(1);
}

.cert_list {
    mask-image: linear-gradient( to right, transparent calc(50% - 200px), black calc(50% - 130px), black calc(50% + 130px), transparent calc(50% + 200px));
    display: flex;
    flex-direction: row;
    height: 70px;
    justify-content: left;
    align-items: end;
    position: relative;
    width: 100%;
}

.cert_list .cert_ent {
    height: 50px;
    min-width: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin: 0;
    transform-origin: bottom;
    filter: saturate(0);
    opacity: 0.7;
    position: relative;
    left: 0px;
    border-radius: 7px;
}

.cert_list .cert_ent+.cert_ent {
    margin-left: 10px;
}

.cert_list .cert_ent.selected {
    transform: scale(1.2);
    margin-right: 5px;
    margin-left: 15px;
    filter: none;
    opacity: 1;
}


/* UTILS */

.separator {
    background: linear-gradient(90deg, transparent, gray, transparent);
    display: block;
}

.separator.horizontal {
    height: 1px;
    width: 100%;
}


/* MOBILE */

@media only screen and (max-width: 750px) {
    .section {
        padding: 10px;
    }
    .section>.info {
        flex-direction: column;
        height: auto;
    }
    .section .info .left {
        width: 100%;
    }
    .section .info .right {
        width: 100%;
        margin-top: 15px;
        height: 500px;
    }
    .acc_row {
        margin-bottom: 5px;
        align-items: center;
    }
    .account .logo_cont {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    .account .acc_data {
        min-width: 160px;
    }
    .account .acc_data .link_cont label {
        font-size: small;
        font-weight: normal;
    }
    .account .acc_data .name,
    .account .acc_data .link_cont a {
        font-size: smaller;
    }
    .account:hover {
        min-width: 250px;
        max-width: 250px;
    }
    .slide {
        padding-left: 0;
    }
}