/* START OF FILE style.css */

:root {
  --bg-color: #1f1f23;
  --text-color: #e4e4e7;
  --text-color-muted: #a0a0a5;
  --accent-color: #00aef9;
  --accent-gradient: linear-gradient(45deg, #00aef9, #00d4a0);
  --section-bg-fallback: rgba(38, 38, 42, 0.92);
  --section-border-radius: 12px;
  --content-max-width: 850px;
  --shadow-color-light: rgba(0, 174, 249, 0.15);
  --shadow-color-dark: rgba(0, 0, 0, 0.3);
  --error-color: #ff6b6b;
  --success-color: #51cf66;
  --font-primary: 'Poppins', sans-serif;
  --font-code: 'Fira Code', monospace;
  --music-player-bg: rgba(10, 10, 10, 0.75);
  --music-player-bg-fallback: rgba(10, 10, 10, 0.85);
}
.clock{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: antiquewhite;
    margin: 30px auto 0px auto;
    position: relative;
    border:20px solid cornsilk;

}
.center{
    background-color: #000;
    position: absolute;
    left: calc(50% - 10px);
    top:  calc(50% - 10px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 20;
}
.hourHand{
    width: 10px;
    height: 75px;
    background-color: #000;
    transform-origin: bottom center;
    border-radius: 4px;
    position: absolute;
    top: 75px;
    left: 145px;
    z-index: 10;
    transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
      transform: rotate(360deg);

}
.minuteHand{
    width: 5px;
    height: 120px;
    background-color: #000;
    transform-origin: bottom center;
    border-radius: 4px;
    position: absolute;
    top: 30px;
    left: 147px;
    z-index: 9;
    transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
      transform: rotate(90deg);

}
.secondHand{
    width: 2px;
    height: 120px;
    background-color:red;
    transform-origin: bottom center;
    border-radius: 4px;
    position: absolute;
    top: 30px;
    left: 149px;
    transition: transform 0.06s; /* Apply transition only to transform */
    /* transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1); */ /* REMOVE or COMMENT OUT this */
    transition-timing-function: linear; /* USE simple linear timing */
    z-index: 8;
    /* transform: rotate(360deg);  <- This initial transform was likely removed, which is good */
}

.time{
    position: absolute;
    top: 45%;
    left: 10%;
    border: 1px solid #fff8dc;
    background-color: #fff;
    padding: 5px;
    display: block;
    box-shadow: inset 0px 2px 5px rgba(0,0,0,.4);
    border-radius: 5px;
    min-width: 70px;
    height: 15px;

}
.time small{
    color:red;
    transition: all 0.05s;
    transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}

.clock ul{
    list-style: none;
    padding: 0;

}
.clock ul li{
    position: absolute;
    width:20px;
    height:20px;
    text-align: center;
    line-height: 20px;
    font-size: 10px;
    color:red;
}
.clock ul li:nth-child(1){
    right: 22%;
    top:6.5%;
}
.clock ul li:nth-child(2){
    right: 6%;
    top:25%;
}
.clock ul li:nth-child(3){
    right: 1%;
    top:calc(50% - 10px);
    color:#000;
    font-size: 20px;
    font-weight: bold;
}
.clock ul li:nth-child(4){
    right: 6%;
    top:69%;
}
.clock ul li:nth-child(5){
    right: 22%;
    top:84%;
}
.clock ul li:nth-child(6){
    right: calc(50% - 10px);
    top:calc(99% - 20px);
    color:#000;
    font-size: 20px;
    font-weight: bold;
}
.clock ul li:nth-child(7){
    left: 22%;
    top:84%;
}
.clock ul li:nth-child(8){
    left: 6%;
    top:69%;
}
.clock ul li:nth-child(9){
    left: 1%;
    top:calc(50% - 10px);
    color:#000;
    font-size: 20px;
    font-weight: bold;
}
.clock ul li:nth-child(10){
    left: 6%;
    top:25%;
}
.clock ul li:nth-child(11){
    left: 22%;
    top:6.5%;
}
.clock ul li:nth-child(12){
    right: calc(50% - 10px);
    top:1%;
    color:#000;
    font-size: 20px;
    font-weight: bold;
}

.dark-mode {
  --bg-color: #18181b;
  --text-color: #d4d4d8;
  --text-color-muted: #909095;
  --section-bg-fallback: rgba(24, 24, 27, 0.95);
  --shadow-color-light: rgba(0, 174, 249, 0.2);
  --music-player-bg: rgba(5, 5, 5, 0.8);
  --music-player-bg-fallback: rgba(5, 5, 5, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  padding: 25px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 15px 15px;
  padding-bottom: 180px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

body.modal-open {
  overflow: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.7;
}

header, main, footer, #time-container {
  max-width: var(--content-max-width);
  margin: 25px auto;
  background: var(--section-bg-fallback);
  padding: 35px;
  border-radius: var(--section-border-radius);
  box-shadow: 0 4px 15px var(--shadow-color-dark), 0 0 30px var(--shadow-color-light);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

header h1 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.8em;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

#time-container {
  padding: 20px;
  margin-top: 0;
}
#current-time {
  font-size: 2.2em;
  color: var(--accent-color);
  margin-bottom: 8px;
  font-weight: 600;
}
#time-notice {
  font-size: 1.1em;
  color: var(--text-color-muted);
  min-height: 1.3em;
}

.content-section {
  margin: 35px 0;
  padding: 25px;
  background: rgba(0,0,0, 0.1);
  border-radius: 10px;
  border-left: 5px solid;
  border-image: var(--accent-gradient) 1;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.section-title {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.6em;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
}

.link-list {
  counter-reset: link-counter;
  list-style: none;
}

.link-item {
  position: relative;
  padding: 18px 25px 18px 60px;
  margin: 18px 0;
  background: rgba(40, 40, 45, 0.9);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.link-item::before {
  counter-increment: link-counter;
  content: counter(link-counter);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45px;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1em;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
}

.link-item:hover {
  transform: translateX(8px) scale(1.02);
  background-color: rgba(50, 50, 55, 0.95);
  box-shadow: 5px 5px 15px var(--shadow-color-dark);
}

.link-item:hover::before {
   width: 50px;
}

.link-item a {
  color: #ade8f4;
  text-decoration: none;
  font-size: 1.15em;
  font-weight: 400;
  word-break: break-all;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.link-item a:hover,
.link-item a:focus {
  color: #fff;
}

.auth-info {
  background: #001f29;
  padding: 25px;
  border-radius: 10px;
  margin: 35px 0;
  font-family: var(--font-code);
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid #00415a;
  color: #c3dce8;
  font-size: 0.95em;
  overflow-x: auto;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}
.auth-info code {
    display: block;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.image-gallery img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px var(--shadow-color-dark);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.9;
}

.image-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px var(--shadow-color-dark), 0 0 15px var(--shadow-color-light);
  opacity: 1;
}

.game-section {
  background: rgba(0,0,0, 0.1);
  padding: 30px;
  border-radius: 10px;
  margin: 35px 0;
  border: none;
  box-shadow: none;
}

.game-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.game-inputs input {
  padding: 12px 8px;
  border: 2px solid rgba(0, 174, 249, 0.5);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.6);
  color: var(--text-color);
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  -moz-appearance: textfield;
}
.game-inputs input::-webkit-outer-spin-button,
.game-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.game-inputs input::placeholder {
    color: var(--text-color-muted);
    font-weight: 400;
    font-size: 0.9em;
}
.game-inputs input:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 10px var(--shadow-color-light);
  background: rgba(20, 20, 25, 0.7);
}

#check-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 14px 35px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  display: block;
  margin: 25px auto 0;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#check-btn:hover,
#check-btn:focus {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px var(--shadow-color-light);
  filter: brightness(1.1);
  outline: none;
}

#game-result {
  margin-top: 20px;
  text-align: center;
  font-size: 1.2em;
  min-height: 1.6em;
  font-weight: 600;
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center bottom;
}
#game-result.success,
#game-result.error {
    transform: scale(1.1);
}
#game-result.error {
  color: var(--error-color);
}
#game-result.success {
  color: var(--success-color);
}

#music-player {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--music-player-bg);
  padding: 12px 18px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 15px var(--shadow-color-light);
  z-index: 10;
  transition: all 0.3s ease-in-out, background-color 0.4s ease;
}
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  #music-player {
    background: var(--music-player-bg-fallback);
  }
}

#music-player audio {
  display: block;
  width: 220px;
  height: 45px;
  opacity: 0.8;
  transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#music-player:hover,
#music-player:focus-within {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px var(--shadow-color-light);
}

#music-player:hover audio,
#music-player:focus-within audio {
  width: 280px;
  opacity: 1;
}

footer {
  padding: 25px;
  margin-top: 40px;
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
  text-align: center;
  font-size: 0.95em;
  color: var(--text-color-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Image Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 85%;
  animation: zoomIn 0.3s ease-in-out;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


@media (max-width: 992px) {
    :root {
        --content-max-width: 95%;
    }
    header, main, footer, #time-container {
        padding: 25px;
    }
    header h1 { font-size: 2.5em; }
    .section-title { font-size: 1.5em; }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        padding-bottom: 160px;
    }
    #particles-js {
        display: none;
    }
    header, main, footer, #time-container {
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
    }
    header h1 { font-size: 2.2em; }
    #current-time { font-size: 1.8em; }
    .section-title { font-size: 1.3em; }
    .link-item { padding: 15px 20px 15px 55px; }
    .link-item a { font-size: 1.1em; }
    .link-item::before { width: 40px !important; }
    .link-item:hover::before { width: 45px !important; }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .image-gallery img {
        height: 160px;
    }
    .game-inputs { gap: 10px; }
    .game-inputs input { padding: 10px 6px; font-size: 1em;}
    #check-btn { padding: 12px 30px; font-size: 1em; }

    #music-player {
        right: 15px;
        bottom: 15px;
        padding: 10px 15px;
    }
    #music-player audio {
        width: 180px;
        height: 40px;
    }
    #music-player:hover audio,
    #music-player:focus-within audio {
        width: 240px;
    }
    .vvhan-snow, .vvhan-bolang {
        display: none !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-bottom: 30px;
        line-height: 1.6;
    }
    header, main, footer, #time-container {
        padding: 15px;
    }
    header h1 { font-size: 1.8em; }
    .section-title { font-size: 1.2em; }
    .link-item { padding: 12px 15px 12px 45px; }
    .link-item a { font-size: 1em; }
     .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .game-section { padding: 15px;}
    #music-player {
        display: none;
    }
}


/* END OF FILE style.css */
