
:root {
    --highlight-color: #D25651;
    --highlight2-color: #895C8A;
    --highlight3-color: #b04eb1;
    --bg1-color: #E4CEB6;
    --bg2-color: #919F96;
    --bg3-color: #537781;
    --bg4-color: #4E474A;
    --main-font-color: #282828;
    box-sizing: border-box;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    
    background-color: var(--bg1-color);
    margin: 0;
    padding: 15px;
    height: calc(100vh - 30px);
    color: var(--main-font-color);
}

@media only screen and (max-width: 400px) {
    body {
        padding: 0px;
        width: calc(100% - 2px);
        height: calc(100vh - 2px);
    }
}

.title-text {
    font-size: 2.5em;
    font-weight: bold;
    margin: 10px;
    margin-bottom: 50px;
}

input[type="text"], input[type="password"] {
    background-color: var(--bg2-color);
    border: 1px solid var(--bg4-color);
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    font-family: Cambria;
    font-size: medium;
}

input[type="submit"] {
    background-color: var(--highlight-color);
    border: none;
    border-radius: 5px;
    padding: 15px 15px 15px 15px;
    margin: 5px;
    margin-top: 30px;
    cursor: pointer;
    font-size: large;
}

.email-signature {
    font-size: small;
    color: var(--bg4-color);
    margin-top: 10px;
}

.conversations-parent-container {
    height: 60%;
    overflow-y: auto;
}

.conversation-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

table, th, td {
    border: 1px solid var(--bg4-color);
    box-sizing: border-box;
    border-collapse: collapse;
}

.email-container {
    border: 1px solid var(--bg4-color);
    box-sizing: border-box;
    border-collapse: collapse;
    background-color: var(--bg2-color);
}

.email-list-container{
    height: calc(40% - 1.2em);
    overflow-y: auto;
    border-bottom: 1px solid var(--bg4-color);
}

.email {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--bg4-color);    
}

.email-body {
    background-color: var(--bg2-color);
    padding: 5px;
}

.email-header {
    background-color: var(--bg3-color);
    padding: 5px;
    display: flex;
    gap: 10px;
}

.email-avatar {
    width: 80px;
    min-width: 80px;
    align-self: center;
    height: 80px;
    background-size: cover;
}

.email-list-entry {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: white;
    height: 22px;
    /* border: grey 1px solid; */
    /* margin: 2px; */
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: calc(100vh - 30px);
}
.ending-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 80%;  
    padding-bottom: 5%;
    width: 60%;
}

.ending-container {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: calc(100vh - 30px);
    font-size: large;
}
.ending-title {
    font-weight: bold;
    font-size: xx-large;
    margin-bottom: 20px;
}

.ending-thanks {
    font-size: small;
    margin-top: 40px;
}

.login-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 80%;  
    padding-bottom: 5%;
}

.webmail {
    width: 80%;
    height: 100%;
    border: 2px solid var(--bg4-color);
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
}

@media only screen and (max-width: 700px) {
    .webmail {
        width: 100%;
    }    
}

.status-bar {
    height: 1.2em;
    background-color: var(--bg3-color);;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    overflow: clip;
}

.game-container {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: calc(100%);
}

hr {
    border: 0;
    height: 1px;
    background: var(--bg4-color);
    margin: 3px 0px;
}

.option-speech-bubble {
    background-color: var(--highlight2-color);
    border-radius: 10px;
    font-weight: bold;
    padding: 10px;
    margin: 20px 15px;
    width: 80%;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    filter: drop-shadow(2px 4px 6px black);
}

.option-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Adjust position to align the tail */
    left: 20px; /* Adjust based on bubble width */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0;
    border-color: var(--highlight2-color) transparent transparent transparent; /* Match bubble color */
}

.independent-option-speech-bubble {
    background-color: var(--highlight-color);
}

.independent-option-speech-bubble::after {
    border-color: var(--highlight-color) transparent transparent transparent; /* Match bubble color */
}
