#container {
    background-color: white;
    overflow: scroll;
    overscroll-behavior-block: none;
    flex-direction: column;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#sender,
#subject,
#body,
#mail-list {
    margin: 0 2.25dvh 2.25dvh;
}

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

#back-button {
    color: #007aff;
}

#sender {
    width: fit-content;

    display: flex;
    align-items: center;
}

#sender>img {
    width: 4dvh;
    height: 4dvh;
    margin-right: auto;
    border-radius: 50%;
}

#sender>p {
    margin-left: 1dvh;

    font-family: "San Francisco Bold";
    font-size: 1.8dvh;
}

#subject {
    font-family: "San Francisco Bold";
    font-size: 2.5dvh;
}

#body {
    font-size: 1.8dvh;
}

#mail-list {
    display: flex;
    flex-direction: column;
}

#mail-list>a {
    padding: 1dvh;
    color: black;
    text-decoration: none;
}

#mail-list p {
    margin-bottom: .3dvh;
}

#mail-list>a>p:not(:last-child) {
    font-size: 1.8dvh;
}

#mail-list>a>p:first-child {
    font-family: "San Francisco Bold";
    font-size: 2dvh;
}

#mail-list>a>p:last-child {
    height: 2.5dvh;
    overflow: hidden;

    color: #8e8e93;

    font-size: 1.8dvh;
}

#mail-list>a:not(:last-child) {
    border-bottom: .2dvh solid #e5e5ea;
}

#getapp {
    margin-top: 5dvh;
    padding: .5dvh;

    height: 4dvh;
    width: 20dvh;

    color: #007aff;
    background-color: #e5e5ea;

    font-family: "San Francisco Bold";
    font-size: 1.8dvh;

    border: none;
    border-radius: 2dvh;

    cursor: pointer;
}

#new-mail-button {
    display: flex;
    justify-content: space-around;

    margin-top: 5dvh;
    padding: .5dvh;

    height: 4dvh;
    width: 12dvh;

    background-color: white;

    font-size: 1.6dvh;

    border: none;
    border-radius: 2dvh;
    border: solid black .1dvh;
    outline: none;

    cursor: pointer;
}
#new-mail-button>span {
    margin-top: .1dvh;
    margin-left: 1dvh;

    font-size: 2.5dvh;
}
#new-mail-button>p {
    margin-top: .4dvh;
    margin-right: 1dvh;
}

#new-mail-modal {
    display: none;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #000000a0;
}

#new-mail-modal-content {
    position: absolute;
    bottom: 0;
    height: 50%;
    width: 100%;
    background-color: white;
    border-radius: 1dvh 1dvh 0 0;
}

@media (max-aspect-ratio: 2/3) {
    #new-mail-modal-content {
        height: 50%;
    }
}

@media not (max-aspect-ratio: 2/3) {
    #new-mail-modal-content {
        height: 80%;
    }
}

#modal-header {
    display: flex;
    justify-content: space-between;
    background-color: #f2f2f7;
    border-radius: 1dvh 1dvh 0 0;
}

#modal-header>div {
    text-align: center;
    padding: 2dvh;
}

#modal-header>div:not(:nth-child(2)) {
    color: #007aff;

    font-size: 2dvh;
    font-weight: bold;
    text-align: center;

    width: 15%;

    cursor: pointer;
}

#modal-header>div:nth-child(2) {
    font-family: "San Francisco Bold";
    font-size: 2dvh;
}

#modal-title>div {
    margin: 0 2dvh 1.5dvh;
    padding: 0 0 1.5dvh;

    font-size: 1.8dvh;

    border-bottom: .2dvh solid #e5e5ea;
}

#modal-title>div:first-child {
    margin-top: 2dvh;
}

#modal-title>div>span {
    color: #9e9e93;
}

#modal-content {
    padding: 2dvh;
    height: 40%;
}

#modal-content>textarea {
    resize: none;
    border: none;
    outline: none;
    display: block;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 2dvh;
}