body {
    font-family: -apple-system, BlinkMacSystemFont, SF Pro Display, Helvetica Neue, HelveticaNeue, Helvetica, Arial, sans-serif;
}

#header {
    display: flex;
    flex-direction: row;
    padding: 12px 30px 0;
    justify-content: space-between;
}

#header>#home {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
}

#contact {
    text-align: right;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    width: 140px;
    justify-content: end;
}

#contact>img {
    height: 20px;
}

#contact>div>h1,
#contact>div>h2 {
    margin: 0;
    font-weight: 400;
    opacity: 0.7;
}

#contact>div>h1 {
    color: #08f;
    font-size: 14.7px;
}

#contact>div>h2 {
    color: #777;
    font-size: 12px;
}

#contact-details {
    position: absolute;
    right: 0;
    top: 0;
    margin: 20px;
    width: 100%;
    height: fit-content;
    max-width: 300px;
    max-height: 100%;
    background-color: #fff;
    box-shadow: 0 0 16px -4px #0004;
    display: none;
    z-index: 1;
    flex-direction: column;
}

#contact-details::after {
    content: '';
    width: 16px;
    height: 16px;
    position: absolute;
    right: 30%;
    top: -8px;
    transform: rotate(45deg);
    background-color: #fff;
    z-index: -1;
    display: block;
    box-shadow: 0 0 12px 4px #0001;
}

#contact-details.visible {
    display: flex;
}

#contact-header {
    background-color: #fff;
    min-height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#contact-header>img {
    width: 50px;
    height: 50px;
    margin: 20px;
    border-radius: 30px;
    border: unset;
    background-color: #d5d5d5;
    margin-left: 20px;
}

#contact-header>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    padding-right: 20px;
    font-size: 14px;
}

#contact-header>div>div {
    padding: 2px 0;
}

#contact-header>div>div:first-child {
    /* color: #08f; */
    font-size: 16px;
}

#contact-details>a {
    width: -webkit-fill-available;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    transition: background-color .25s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

#contact-details>a:last-child {
    margin-bottom: 10px;
}

#contact-details>a:visited {
    color: inherit;
}

#contact-details>a:hover {
    background-color: #f1f6fc;
}

#contact-details>a>div:first-child {
    color: #777;
}

#contact-details>a>div:nth-child(2) {
    color: #000;
}

@media screen and (max-width: 500px) {

    #header {
        padding: 12px 15px 0;
        padding-left: 20px;
    }

}

@media screen and (max-width: 350px) {

    #contact-details {
        margin: unset;
        width: -webkit-fill-available;
        max-width: unset;
    }
    
}