html {
    height: 100vh; /* Set fixed viewport height */
    overflow: hidden; /* Prevent HTML from scrolling */
}

.hide{
    display: none;
}

body {
  max-width: 700px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  font-family: 'Poppins', Arial, sans-serif;
  text-align: center;
  background-image: url('images/ChatGPT Image Jun 5, 2025, 01_22_00 PM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh; /* Ensure body also takes full viewport height */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#div-list {
  max-width: 320px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: 300px;
  overflow-y: auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  background-color: #FFFAF0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

  &::-webkit-scrollbar {
    display: none;
  }
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#list {
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
}

#list-not-done, #list-done {
  margin-bottom: 0;
}

#list-not-done p, #list-done p {
  background-color: #c2e9ff;
  color: #264D74;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid #d0e6ff;
}

#list-not-done:last-child, #list-done:last-child {
    margin-bottom: 0;
}

#list-not-done li,
#list-done li {
  display: flex;
  align-items: center;
  list-style-type: none;
  padding: 15px 10px;
  margin-bottom: 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #c2e9ff;
  border-radius: 0;
  text-align: left;
}

.list-item-text {
  flex-grow: 1;
  margin-right: 10px;
  font-size: 1.6em;
  font-weight: 500;
  color: #264D74;
}

input[type="checkbox"].check-list {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  min-width: 30px;
  width: 30px;
  height: 30px;
  border: 2px solid #264D74;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  margin: 0 15px 0 0;
  vertical-align: middle;
}

input[type="checkbox"].check-list:checked {
  border-color: #264D74;
  background-color: transparent;
}

input[type="checkbox"].check-list::before {
  content: "";
  position: absolute;
  display: none;
  box-sizing: border-box;
  left: 10px;
  top: 5px;
  width: 6px;
  height: 12px;
  border-style: solid;
  border-color: #264D74;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"].check-list:checked::before {
  display: block;
}

.delete-button {
  background: none;
  border: none;
  color: #264D74;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  padding: 0 5px;
  margin-left: auto;
}

.delete-button.hide {
    display: none;
}

#list-done li .list-item-text {
  text-decoration: line-through;
  color: #264D74;
}

#list-done li {
  background-color: transparent;
}

#div-judul p {
  font-size: 2.5em;
  color: #264D74;
  margin-bottom: 35px;
  font-weight: 700;
}

#action-button-container {
  display: flex;
  max-width: 320px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  gap: 10px;
}

#action-button-container button {
  background-color: transparent;
  color: #264D74;
  border: 2px solid #264D74;
  padding: 10px 20px 10px 60px;
  margin: 0;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  flex-grow: 1;
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#action-button-container button:hover {
  background-color: #264D74;
  color: white;
}

#tambah-list.active {
  background-color: #264D74;
  color: white;
}

#kurang-list.active {
  background-color: #264D74;
  color: white;
}

#get-tittle-list .input-submit-container {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

#get-tittle-list input[type="text"] {
  width: 100%;
  padding: 12px 45px 12px 15px;
  background-color: #f8f8f8;
  border: 1px solid #d0e6ff;
  border-radius: 25px;
  font-size: 1em;
  color: #264D74;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

#get-tittle-list input[type="text"]:focus {
  outline: none;
  border-color: #264D74;
  box-shadow: 0 0 0 2px rgba(38, 77, 116, 0.1);
}

#get-tittle-list input[type="text"]::placeholder {
  color: #a0c0e0;
}

#get-tittle-list button#submit-tittle-list {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  background-color: #264D74;
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#get-tittle-list button#submit-tittle-list:hover {
  background-color: #1d3a58;
}

.button-icon {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

#octopus-container {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10;
  cursor: pointer;
}

#octopus-image {
  width: 100px;
  height: auto;
  transform: rotate(-15deg);
  transition: transform 0.3s ease;
}

#octopus-image:hover {
  transform: rotate(-5deg) scale(1.05);
}

#speech-bubble {
  position: absolute;
  bottom: 90px;
  left: 70px;
  background-color: white;
  padding: 10px 15px;
  border-radius: 15px;
  min-width: 120px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#speech-bubble:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: white transparent transparent transparent;
  display: block;
  width: 0;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
}

#bubble-text {
  margin: 0;
  font-size: 0.9em;
  color: #264D74;
}

/* Animasi dasar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Animasi pada judul */
#div-judul p {
  animation: pulse 3s infinite;
}

/* Animasi pada tombol */
#action-button-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Animasi untuk form */
#get-tittle-list {
  transition: all 0.3s ease;
}

#get-tittle-list.hide {
  animation: fadeOut 0.3s forwards;
}

#get-tittle-list:not(.hide) {
  animation: fadeIn 0.3s forwards;
}

/* Animasi untuk checkbox */
input[type="checkbox"].check-list {
  transition: all 0.2s ease;
}

input[type="checkbox"].check-list:hover {
  transform: scale(1.1);
}

/* Animasi untuk list item */
#list-not-done li,
#list-done li {
  transition: all 0.3s ease;
  animation: slideIn 0.3s forwards;
}

#list-not-done li:hover,
#list-done li:hover {
  transform: translateX(5px);
  border-left: 3px solid #264D74;
  padding-left: 15px;
}

/* Animasi untuk bubble */
#speech-bubble:not(.hide) {
  animation: fadeIn 0.3s forwards;
}

#speech-bubble.hide {
  animation: fadeOut 0.3s forwards;
}

/* Menghilangkan outline pada saat elemen mendapat fokus */
button:focus, 
a:focus, 
input:focus,
#octopus-image:focus {
  outline: none;
}