html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: black;
    color: white;
    width: 100%;
    height: 100%;
    position: fixed;
}

header {
    height: 100px;
    background-color: rgb(70, 70, 70);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header h1 {
    margin-left: 20px;
}

main {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
    align-items: center;
}

#home {
    height: 100%;
}

.main-stats {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-evenly
}

.main-stats div {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-stats div p {
    text-align: center;
    font-size: 20px;
}

.main-stats div span {
    font-size: 40px;
    font-weight: bold;
}

.action-button {
    position: absolute;
    align-self: flex-end;
    justify-self: flex-end;
    bottom: 20px;
    right: 20px;
    background-color: green;
    padding: 15px;
    border-radius: 20px;
    font-size: 19px;
}

#promille {
    height: 100%;
}

#history {
    height: 100%;
    width: 100%;
}

.history-drinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow-y: auto;
}

.unit {
    display: flex;
    padding: 10px;
    margin: 20px;
    width: 80%;
    box-sizing: border-box;
    background-color: rgb(70, 70, 70);
    flex-direction: row;
    justify-content: space-between;
}

.unit-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 60%;
}

.unit-left p {
    margin: 0;
    padding: 0;
}

.unit-right {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.unit-right span {
    font-size: 30px;
}

.unit-right p {
    margin: 0;
    padding: 0;
    text-align: center;
}

#settings {
    height: 100%;
    padding: 0 15px 0 15px;
}

#settings .settings div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 20px 0 20px 0;
    font-size: 20px;
}

#settings .settings div label {
    margin-bottom: 10px;
}

#settings .settings div input {
    height: 25px;
    font-size: 18px;
}

#settings .settings div select {
    font-size: 18px;
    height: 30px;
    padding: 0;
    margin: 0;
}

footer {
    height: 100px;
    background-color: rgb(70, 70, 70);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

footer div span {
    font-size: 25px;
}

footer div p {
    font-size: 16px;
}

footer div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    padding: 10px;
}

footer div.active {
    background-color: #333;
    color: white;
}

#new-unit-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none;
    overflow: auto;
}

.new-unit-window-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    background-color: black;
    height: 87px;
}

.new-unit-window-top span {
    font-size: 28px;
}

.new-unit-window-content {
    padding: 20px;
    margin-top: 87px;
}

.new-unit-window-content div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 20px 0 20px 0;
    font-size: 20px;
}

.new-unit-window-content div label {
    margin-bottom: 10px;
}

.new-unit-window-content div input {
    height: 25px;
    font-size: 18px;
}

.new-unit-window-content div select {
    font-size: 18px;
    height: 30px;
    padding: 0;
    margin: 0;
}

.new-unit-window-content div button {
    padding: 10px;
    font-size: 20px;
    background-color: green;
    border: none;
    border-radius: 20px;
    color: white;
}

.history-yes-no-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.767);
    /* display: flex; */
    display: none;
    justify-content: center;
    align-items: center;
}

.history-yes-no-window > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: black;
    width: 80%;
    height: 180px;
    padding: 20px;
    border: 2px solid white;
    box-sizing: border-box;
}

.history-yes-no-window > div > span:nth-child(1) {
    font-size: 18px;
}

.history-yes-no-window > div > span:nth-child(1) > span {
    font-weight: bold;
}

.history-yes-no-window > div > span:nth-child(2) {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 20px 0 20px 0;
}

.history-yes-no-window > div > span:nth-child(2) div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0 20px 0;
    width: 70px;
    height: 40px;
    text-align: center;
    background-color: red;
}

.first-drink {
    background-color: rgb(78, 1, 122);
}

.popup {
    position: fixed;
    top: 3%; 
    left: 10%; 
    right: 10%;
    height: 100px;
    background-color: red;
    z-index: 1000;
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}
