/* hide the scroll bar */
::-webkit-scrollbar {
    width: 0 !important;
}

::-webkit-scrollbar {
    width: 0 !important;
    height: 0;
}

img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    --one-quarter-margin: calc((100vw - 21cm - 12rem) / 4);
}

body {
    height: 100vh;
    width: 100vw;
    overflow: auto;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(transparent 98%, #BDBDBD 98%),
    linear-gradient(to right, transparent 98%, #BDBDBD 98%);
    background-size: 2rem 2rem;
    background-repeat: repeat;
    font-size: 1rem;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

#weather-container {
    position: fixed;
    top: calc((100vh - 8rem) / 2);
    left: var(--one-quarter-margin);
    width: 12rem;
    height: 8rem;

    display: grid;
    grid-template-areas:
            "icon weather weather"
            "icon temperature temperature"
            "location location refresh";
    grid-template-rows: 2.5rem 2.5rem 3rem;
    grid-template-columns: 6rem 3.5rem 2.5rem;

    border: #BFCBD9 1px solid;
    border-radius: 0.5rem;
    background: #3498db;
    box-shadow: 11px 11px 22px #bebebe,
    -11px -11px 22px #ffffff;
}

#weather-container p {
    margin: auto;
    color: #ecf0f1;
    text-align: center;
}

.left {
    grid-area: icon;
    display: flex;
    justify-content: end;
    align-items: center;
}

.left img {
    visibility: hidden;
    width: 5rem;
}

.right-top {
    grid-area: weather;
    margin: auto auto 1px auto;
}

.right-bottom {
    grid-area: temperature;
    margin: 1px auto auto auto;
}

.bottom-left {
    grid-area: location;
    padding: 1rem 0;
    border-top: #bdc3c7 1px dashed;
    line-height: 1rem;
}

.bottom-right {
    grid-area: refresh;
    padding: 0.75rem 1rem 0.75rem 0;
    border-top: #bdc3c7 1px dashed;
}

.bottom-right img {
    pointer-events: none;
    width: 1.5rem;
    height: 1.5rem;
    filter: drop-shadow(calc(100vw + 100vh) 0 0 #ffffff);
    transform: translate(calc(-100vw - 100vh));
}

.A4-paper {
    width: 21cm;
    height: calc(29.7cm - 2px);
    border: #5A5E66 1px solid;
    margin: 4rem calc(var(--one-quarter-margin) * 2) calc(4rem - 1px - 29.7cm + 70rem) auto;
    background: #ffffff;
}

.black-bar {
    height: calc(1rem - 2px);
    background: #404040;
}

.content {
    margin: 0 auto;
    height: calc(29.7cm - 1rem);
    width: calc(21cm - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.basic-info {
    width: calc(21cm - 5rem);
    height: 7rem;
    display: grid;
    grid-template-columns: 7rem 15rem calc(21cm - 27rem);
}

.avatar {
    width: 7rem;
    border: #5A5E66 1px solid;
}

.name-and-position {
    padding: 2.6rem 1.5rem 0 2.5rem;
}

.name {
    font-size: 1.4rem;
    font-weight: bold;
    margin: auto;
}

.contact-me div {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

.contact-me p {
    margin: 0.3rem 0.6rem;
}

.contact-me img {
    width: 1.4rem;
}

.work-experience-container ul {
    padding: 0 0 0 1rem;
    margin: 0;
}

.work-experience-container li {
    margin: 0.5rem;
}

.title-container {
    display: flex;
    flex-direction: row;
    background: #f4f4f4;
}

.title-bar {
    width: 0.5rem;
    height: 2rem;
    background: #404040;
}

.title-p {
    font-weight: bold;
    margin: auto auto auto 1rem;
}

.three-part-container {
    display: grid;
    grid-template-columns: 14rem 16rem calc(21cm - 35rem);
    font-weight: bold;
}

.three-part-container p {
    margin: 1rem 0 0 0;
}

.self-assessment-content {
    margin-top: 1rem;
}

.blank {
    height: 1px;
}

.paragraph {
    margin: 0.5rem 0;
    text-indent: 2rem;
}

.highlight {
    background: yellow;
}

.none-indent {
    text-indent: 0;
}

@media screen and (max-width: calc(21cm + 12rem)) {
    #weather-container {
        display: none;
    }

    .A4-paper {
        margin: 4rem auto calc(4rem - 1px - 29.7cm + 70rem) auto;
    }
}

@media print {
    #weather-container {
        display: none;
    }

    .A4-paper {
        margin: auto;
        border: none;
    }

    .black-bar {
        height: 1rem;
    }

    .blank {
        display: none;
    }
}

