/* break-reminder-new / 21.9.2025 */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

/* --- Responsive background for mobile devices --- */
@media (max-width: 768px) {
  body {
    background-image: url('images/background-720.jpg');
  }
}

.card {
  width: 280px;
  position: absolute;
  top: 100px;
  left: 100px;
  background: rgba(255,255,255,0.12);
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(25px) saturate(200%) contrast(120%);
  -webkit-backdrop-filter: blur(25px) saturate(200%) contrast(120%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15),
              inset 0 2px 2px rgba(255,255,255,0.3);
  padding: 20px;
  text-align: center;
  animation: float 6s ease-in-out infinite;
  cursor: grab;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:active { cursor: grabbing; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Progress circle & countdown --- */
.progress { position: relative; margin: 10px auto; width: 120px; height: 120px; }
.circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#08e740 0deg, #555 0deg);
  transition: background 0.5s linear;
}
.time {
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  font-size:20px;
}

/* --- Button group --- */
.button-group {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 15px 0;
  gap:5px;
}

.icon-btn {
  width:50px;
  height:50px;
  border-radius:50%;
  border:none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(15px);
  display:flex;
  justify-content:center;
  align-items:center;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor:pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2),
              inset 0 1px 1px rgba(255,255,255,0.25);
}
.icon-btn:hover {
  transform: scale(1.1) translateY(-2px);
  background: rgba(255,255,255,0.35);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25),
              inset 0 2px 2px rgba(255,255,255,0.3);
}
.icon-btn:disabled { opacity:0.4; cursor:not-allowed; }
.icon-btn svg { width:24px; height:24px; }

/* --- Modal styles --- */
.modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:1000;
}
.modal-content {
  max-width: 300px;
  padding:20px;
  background: rgba(255,255,255,0.12);
  border-radius:30px;
  border:1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(25px) saturate(200%) contrast(120%);
  -webkit-backdrop-filter: blur(25px) saturate(200%) contrast(120%);
  box-shadow:0 8px 32px rgba(0,0,0,0.15),
             inset 0 2px 2px rgba(255,255,255,0.3);
  text-align:center;
  animation: float 6s ease-in-out infinite;
}

#status { margin-top:5px; font-size:14px; }

/* --- Preset timer buttons --- */
.preset-buttons {
  display:flex;
  overflow-x:auto;
  gap:10px;
  margin:10px 0;
}
.preset-btn {
  min-width:50px;
  flex-shrink:0;
  border:none;
  border-radius:15px;
  padding:5px 10px;
  background: rgba(255,255,255,0.2);
  color:white;
  cursor:pointer;
  transition:0.2s;
}
.preset-btn:hover { background: rgba(255,255,255,0.35); }

/* --- Modal action buttons --- */
.modal-buttons {
  display:flex;
  justify-content: center;
  margin-top:10px;
}
.modal-buttons button {
  border:none;
  border-radius:12px;
  padding:5px 15px;
  background: rgba(255,255,255,0.2);
  color:white;
  cursor:pointer;
  transition:0.2s;
}
.modal-buttons button:hover { background: rgba(255,255,255,0.35); }

/* --- Background selector --- */
.background-options {
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}
.background-option {
  display:flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(15px) saturate(200%) contrast(120%);
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2),
              inset 0 1px 1px rgba(255,255,255,0.25);
}
.background-option:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.25);
}
.background-option img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 6px;
}
.background-option p {
  font-size: 14px;
  margin: 0;
  color: white;
}

.background-option.selected {
  outline: 3px solid #fff;
  outline-offset: -3px;
  box-shadow: 0 0 10px rgba(255,255,255,0.8);
  border-radius: 10px;
  transform: scale(1.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* --- Footer --- */
footer {
  position: fixed;
  bottom: 5px;
  right: 10px;
  font-size: 12px;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1000;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
}

/* --- Footer adjustment for small screens --- */
@media (max-width: 768px) {
  footer {
    font-size: 10px;
    bottom: 10px;
    right: 5px;
    padding: 1px 4px;
  }
}

