@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

:root {
    --border-color: black;
    --fill-color: black;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #8b7f6a;
    color: #fff;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
}

main section {
    margin: 0 2em;
}

.partial {
    /* background-color: lightblue; */
    width: 30vw;
}

.total {
    /* background-color: lightblue; */
    width: 30vw;
    margin-top: 2em;
}

h1 {
    margin: 10px 0;
}

h3 {
    font-weight: 400;
    margin: 10px 0;
}

.cup {
    background-color: #fff;
    border: 4px solid var(--border-color);
    color: var(--border-color);
    border-radius: 0 0 40px 40px;
    height: 330px;
    width: 150px;
    margin: 30px 0;
    display: flex;
    /* justify-content: center;
    align-items: center; */
    /* padding-left: 0.2em; */
    flex-direction: column;
    overflow: hidden;
}

.cup.cup-small {
    height: 55px;
    width: 50px;
    border-radius: 0 0 15px 15px;
    background-color: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 5px;
    transition: 0.3s ease;
}

.cup.cup-small.full {
    background-color: var(--fill-color);
    color: #fff;
}

.cups {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.remained {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    transition: 0.3s ease;
}

.remained span {
    font-size: 20px;
    font-weight: bold;
}

.remained small {
    font-size: 12px;
}

.percentage {
    background-color: var(--fill-color);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    height: 0;
    transition: 0.3s ease;
}

.text {
    text-align: center;
    margin: 0 0 5px;
}

.warning {
    background-color: red;
    padding: 15px 10px;
    border-radius: 12px;
    width: 70%;
    display: none;
}