* {
    box-sizing: border-box;
}

html {
    font-size: 1vh;
}

body {
    padding: 0;
    margin: 0;
    background: black;
    font-family: Roboto;
}

#app {
    width: 100vw;
    height: 100vh;
    /* padding: 2rem; */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.task.green {
    --bg: green;
    --fg: white;
}

.task.orange {
    --bg: orange;
    --fg: black;
}

.task.red {
    --bg: red;
    --fg: white;
}

.task {
    background: var(--bg);
    color: var(--fg);
    width: 100%;
    display: flex;
    gap: 10px;
    border-radius: 8px;
    padding: 1rem;
    align-items: center;
}

.when {
    font-size: 3rem;
    flex-basis: 18rem;
}

.what {
    font-size: 2rem;
    flex: 1;
}

.explanation {
    display: none;
}

.howlong {
    font-size: 20rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task.past {
    background: none;
    color: var(--bg);
    padding: 0;
}

.task.past .when {
    font-size: 2rem;
}

.task.now {
    flex: 1;
    flex-direction: column;
    align-items: start;
    padding: 2rem;
}

.task.now .when {
    font-size: 8rem;
    flex-basis: initial;
}

.task.now .what {
    font-size: 10rem;
    font-weight: bold;
    /* flex: 0; */
}

.task.now .explanation {
    display: block;
    font-size: 8rem;
}

.task.now .howlong {
    align-self: end;
}





#menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    position: fixed;
    top: -100%;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    transition: top .2s ease-in-out;
    font-size: 1.5rem;
    min-width: 20%;
}

#menu>.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

button {
    padding: 8px 16px;
    font-size: 1.5rem;
}

button#fullscreen-btn {
    height: 12rem;
}

#menu.show {
    top: 0;
}

dialog {
    font-size: 2rem;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

dialog .content {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px 40px;
    gap: 20px;
}

dialog .content h1 {
    margin: 0;
}

dialog .content .bookingtimes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;

    font-size: 1.7rem;
}

dialog .content .buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

dialog .content #terminateAppts {
    width: 40vw;
    font-size: 1.6rem;
    padding: 1rem;
    word-break: break-all;
}

