body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #020024;
    background: radial-gradient(circle,rgba(2, 0, 36, 1) 0%, rgba(21, 37, 51, 1) 35%, rgba(18, 29, 31, 1) 100%);
    color: white
}

.clock-face {
    fill: none;
    stroke: #222;
    stroke-width: 8;
}

.hour-hand {
    stroke: #fff;
    stroke-width: 6;
    stroke-linecap: round;
}

.minute-hand {
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
}

.second-hand {
    stroke: #ff4444;
    stroke-width: 2;
    stroke-linecap: round;
}

.center-dot {
    fill: #ff4444;
}

#hour-marks line {
    stroke: #fff;
    stroke-width: 2;
}

#clock {
    font-size: 5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 10px;
}

.timer-container {
    margin-top: 30px;
    text-align: center;
}

#start-btn {
    background-color: #222;
    color: #fff;
    border: 2px solid #444;
    padding: 10px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#start-btn:hover {
    background-color: #333;
}

#start-btn:disabled {
    background-color: #111;
    color: #666;
    cursor: not-allowed;
}

#countdown {
    color: #fff;
    font-family: monospace;
    font-size: 1.5em;
    letter-spacing: 2px;
}

#sidebar-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

#sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #333;
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

#sidebar.active {
    left: 0;
}

.sidebar-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#history {
    margin: 20px 0;
    background-color: #222;
    border-collapse: collapse;
    width: 100%;
}

#history th, #history td {
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
    color: #fff;
}

#history th {
    background-color: #2a2a2a;
}

#export-btn {
    margin-top: auto;
    align-self: center;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#export-btn:hover {
    background-color: #555;
}

#referral {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
    display: block;
    text-align: center;
    white-space: nowrap;
    position: absolute; 
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
}

#t-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
}

#alert {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

#close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    z-index: 10000;
}

.hidden {
    display: none;
}

.ripple-large {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple 2.5s ease-out;
}

.ripple-small {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(187, 199, 236, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple-sm .5s ease-out;
}

@keyframes ripple-sm {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }
  100% {
    width: 40vmax;
    height: 40vmax;
    opacity: 0;
  }
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }
  100% {
    width: 80vmax;
    height: 80vmax;
    opacity: 0;
  }
}