body {
    font-family: system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}
.container{
    background: #b7d2f7;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
    margin-bottom: 20px;
}
h2{
    text-align: center;
    margin-top: 0;
    color: #333;
}
.form-group{
    display: flex;
    gap: 10px;
}
.form-group input{flex: 1;}
.button-group{
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.button-group button{
    flex: 1;
    margin: 0 5px;
    font-size: 18px;
    font-weight: bold;
}
#bagi {background-color: #ffc107;}
#bagi:hover {background-color: #e0a800;}
h3 {text-align: center; color: #444;}
#hasil {color: #007bff; font-weight: bold;}

/* --- daftar belanja --- */
.container h2 {
    text-align: center;
    margin-bottom: 20px;
}
form {
    display: flex;
    gap: 10px;
}
#itemInput {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}
form button {
    font-size: 16px;
    padding: 10px 15px;
    background-color: #0074d9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
form button:hover {
    background: #005fa3;
}
ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
li{
    background-color: #fff;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
li:last-child{border-bottom: none;}
.delete-btn {
    background-color: #ff4136;
    font-size: 12px;
    padding: 6px 10px;
}
.delete-btn:hover {
    background-color: #d9362d;
}
/* ---jam digital & kalender--- */
.clock-container {
    background-color: #222222;
    color: rgb(0, 191, 255);
    text-align: center;
    border: 2px solid #444;
}
.clock-container h2{
    color: #eee;
}
#digital-clock{
    font-family: 'Orbiton', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgb(0, 140, 255);
}
#digital-date{
    font-size: 1.1rem;
    color: #ccc;
}
/* ---quiz--- */
.quiz-container {
  width: 420px;
  margin: 60px auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
}
.quiz-container h2 {
  color: #4a148c;
  margin-bottom: 20px;
}
#question {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}
#options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.optionBtn {
  background-color: #f3e5f5;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px;
  margin: 6px 0;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}
.optionBtn:hover {
  background-color: #ce93d8;
  transform: scale(1.03);
}
.optionBtn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
#nextBtn {
  background-color: #7e57c2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 15px;
}
#nextBtn:hover {
  background-color: #5e35b1;
}
#score {
  color: #4a148c;
  font-size: 18px;
  margin-top: 20px;
}