@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "Mattone";
    src: url("../res/fonts/Mattone-Regular.woff2") format("woff2"),
         url("../res/fonts/Mattone-Regular.woff") format("woff");
    font-weight: 400;
}

@font-face {
    font-family: "Mattone";
    src: url("../res/fonts/Mattone-Bold.woff2") format("woff2"),
         url("../res/fonts/Mattone-Bold.woff") format("woff");
    font-weight: 700;
}

@font-face {
    font-family: "Mattone";
    src: url("../res/fonts/Mattone-Black.woff2") format("woff2"),
         url("../res/fonts/Mattone-Black.woff") format("woff");
    font-weight: 900;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
}

body {
    background: #F2FCFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100vw;
    overflow-x: hidden;
}

.content {
    width: 21cm;
}

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

header .infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header img {
    margin: 20px 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.experiences, .certifications, #map {
    margin-bottom: 50px;
}

.experience, .certification {
    display: flex;
    flex-direction: row;
    margin-top: 40px;
}

.experience.banner-left, .certification.banner-left {
    flex-direction: row-reverse;
}

.experience .info p, .certification .info p{
    font-size: 13px;
    margin-bottom: 10px;
    margin-top: 2px;
}

h2 {
    margin: 10px 0;
}

.experience img, .certification img {
    width: 400px;
    height: 100%;
    margin-left: 20px;
    border-radius: 10px;
}
.experience.banner-left img, .certification.banner-left img{
    margin-left: 0;
    margin-right: 20px;
}

.emoji {
    font-family: "Noto Color Emoji", sans-serif;
}

#map {
    height: 400px;
    border-radius: 20px;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #c30b82;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

.custom-div-icon i {
    position: absolute;
    width: 22px;
    font-size: 22px;
    left: 0;
    right: 0;
    margin: 10px auto;
    text-align: center;
}

.socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.socials > a {
    margin: 20px 10px;
    margin-bottom: 0 !important;

}

.socials > a > span {
    font-size: 24px !important;
}

.socials > a > span {
    color: #000;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

footer > p {
    margin-top: 10px;
    font-size: 12px;
}

footer > p > a {
    color: inherit; !important;
}

h2 {
    font-family: 'Mattone', sans-serif;
    font-weight: 900;

    display: flex;
    align-items: center;
}

h2 > span.emoji {
    margin-top: -5px;
}

h2 > span:not(.emoji) {
    margin-left: 10px;
}

p.multilines {
    display: flex;
    flex-direction: column;
}

p.multilines > span {
    margin-bottom: 5px;
}

/* 
 * Loading
 */

 .loading {
    background: #F2FCFF;
    position: absolute;
    z-index: 999999;
    width: 100%;
    height: 100%;

    top: 0;
    bottom: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
 }

 body.isLoading, body.modalOpen {
    overflow: hidden;
 }

.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    color: #000;
}

.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}

.loader:after {
    color: #FF3D00;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {
    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}

.modal {
    display: none;
    justify-content: center;
    align-items: center;

    background: #00000099;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.modal > .container {
    background: #F2FCFF;
    width: 500px;
    border-radius: 10px;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 888888;
}

.modal .leaveContainer {
    position: absolute;
    z-index: 77777;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.modal li {
    list-style-type: none;
}

.modal .header {
    display: flex;
    flex-direction: row;
    width: calc(100% - (10px * 2));
    justify-content: space-between;
    position: relative;
    margin: 0 10px;
}

.modal .header .modalClose {
    cursor: pointer;
    position: absolute;
    top: -10px;
    right: -5px;
}

.modal h2 {
    margin: 0;
}

.modal.open {
    display: flex;
}

.modal.open .container {
    opacity: 1;
}

.modal .container ul li {
    margin-bottom: 5px;
}

.modal .liMargin {
    margin-bottom: 20px !important;
}

.handle {
    display: none;
}

.modal .container a {
    color:  #3498db;
    text-decoration: none;
}

@media screen and (min-width: 1000px) {
    .modal .container .header {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 1000px) {
    .content {
        width: 90% !important;
    }

    .experience, .certification {
        flex-direction: column-reverse !important;
        margin-bottom: 80px;
    }

    .experience img, .certification img {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }

    .socials img {
        width: 64px !important;
        height: 64px !important;
    }

    .socials > a > span {
        font-size: 64px !important;
    }

    .socials > a {
        margin: 20px !important;
        margin-bottom: 0 !important;
    }

    #infos {
        font-size: 32px;
    }

    header > img {
        width: 128px;
        height: 128px;
    }

    h3 {
        font-size: 40px;
    }

    h5 {
        font-size: 24px;
    }

    h2 {
        font-size: 50px;
    }

    footer > p {
        font-size: 32px;
    }

    .modal > .container > ul > li {
        font-size: 32px !important;
    }

    .modal .container {
        width: 100% !important;
        border-radius: 25px 25px 0 0 !important;
    }

    .modal {
        justify-content: end !important;
        align-items: end !important;
    }

    .modal .container .header h2.modalClose {
        display: none !important;
    }

    .modal .container .header {
        flex-direction: column-reverse;
    }

    .modal .handleContainer {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px;
        margin-top: 10px;
    }

    .modal .handle {
        display: block;
        width: 10%;
        height: 10px;
        background: rgba(128, 128, 128, 0.2);
        border-radius: 10px;
    }

    .modal .container ul {
        padding: 30px;
    }

    .modal .container .header h2:not(.handle):not(.modalClose) {
        padding: 0 20px;
    }

    .loader {
        width: 192px;
        height: 192px;
    }
}