body {
    font-family: Arial, sans-serif;
    font-size: 2.2svh;
    margin: auto auto;
    padding: 4px;
    background-color: #d4e7e4;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100svh;
}

a {
    margin: 6px;
}

.linkedTitle {
    cursor: pointer;
    color: #003435;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
    flex: 0 0 36px;
    min-height: 36px;
}

.highlight {
    background-color: #a9cecaa7;
}

button {
    border-style: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: clamp(2.4svh, 2.5svh, 2.7svh);
    word-wrap: break-word;
    cursor: pointer;
    color: black;
    width: 100%;
    padding: 0.15rem 0.5rem;
}

.container {
    flex: 1;
    min-height: 0;
    padding: 5px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 0 15px #003435;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    min-width: 150px;
}

.totalField {
    height: 5%;
    font-size: clamp(3svh, 3.5svh, 4svh);
    margin: 6px auto;
    color: #153633;
    display: flex;
    justify-content: space-evenly;
}

.tabContainer {
    display: flex;
    justify-content: space-around;
    height: 8%;
    margin-bottom: 5px;
    column-gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

.tabContainer button {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 8px auto;
    font-weight: bold;
    background-color: #509f98;
    color: white;
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s;
    flex: 1;
}

.tabContainer button:hover {
    background-color: #153633;
}

.tabContainer button.active {
    background-color: #16504c;
    border: 2px solid #153633;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3px;
    height: 80%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
    border-radius: 8px;
}

.grid button {
    padding-left: 0px;
    padding-right: 0px;
    background-color: #509f997f;
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
    .grid button:hover {
        background-color: #16504c;
    }
}

.scrollableSummary {
    max-height: 80%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
    border-radius: 8px;
}

.fixedButtons {
    flex: 0 0 auto;
    border-radius: 10px;
    background: white;
    box-shadow: 0 0 15px #003435;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    box-sizing: border-box;
    margin: auto auto;
    width: 100%;
    min-width: 150px;
}

.fixedButtons button {
    flex: 1;
    padding: 1.2rem 1rem;
}

@media (min-width: 320px) {
    .fixedButtons .action-buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 5px;
    }
}

.button-purple {
    background-color: #634686c3;
}

@media (hover: hover) and (pointer: fine) {
    .button-purple:hover {
        background-color: #3D0087;
    }
}

.button-red {
    background-color: #953d41c2;
}

@media (hover: hover) and (pointer: fine) {
    .button-red:hover {
        background-color: #870007;
    }
}

.button-green {
    background-color: #6d8a4dde;
}

@media (hover: hover) and (pointer: fine) {
    .button-green:hover {
        background-color: #4A8700;
    }
}

.hidden {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 5;
}

.submenu {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 0 15px #003435;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 200px;
    width: 80%;
    justify-content: center;
}

.submenu-title {
    font-size: 3.5svh;
    font-weight: bold;
    word-wrap: break-word;
    margin-top: 5px;
    margin-bottom: 15px;
    color: #101e1d;
}

.submenu button {
    padding: 4px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: #509f997f;
    box-sizing: border-box;
    min-height: 9svh;
}