@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Roboto&display=swap");

:root {
  --border-color: #144fc6;
  --fill-color: #6ab3f8;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  justify-items: center;
  font-family: Montserrat, sans-serif;
  color: #fff;
  background-color: #3494e4;
}

h1 {
  margin: 10px 0 0;
}

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

.cup {
  display: flex;
  flex-direction: column;
  width: 150px;
  height: 330px;
  margin: 30px 0;
  color: var(--border-color);
  background-color: #fff;
  border: 4px solid var(--border-color);
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}
.cup--small {
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 110px;
  margin: 5px;
  font-size: 14px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0 0 15px 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.cups {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 280px;
  margin: 0;
  padding: 0;
}

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

.remained {
  flex: 1;
  display: grid;
  place-content: center;
  text-align: center;
  transition: 0.3s ease;
  span {
    font-size: 20px;
    font-weight: bold;
  }
  small {
    font-size: 12px;
  }
}

.percentage {
  display: grid;
  place-items: center;
  height: 0;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  background-color: var(--fill-color);
  transition: 0.3s ease;
}
