* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8e6e0;
  padding: 20px;
}

.container {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

#header {
  margin-bottom: 60px;
  animation: fadeInDown 0.8s ease-out;
}

#header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

#middle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.clock-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 60px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid #ffffff33;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  display: inline-block;
  min-width: min-content;
}

.flip-clock-label {
  color: #e8e6e0 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700 !important;
  font-size: 1.3rem !important;
}

.flip-clock-list-item-inner .top,
.flip-clock-list-item-inner .bottom {
  background-color: #f5f5f0 !important;
  color: #1e3c72 !important;
}

.flip-clock-dot {
  background-color: #f5f5f0 !important;
}

.flip-clock {
  font-size: clamp(0.8rem, 2vw, 1rem);
}

@media (max-width: 768px) {
  .clock-container {
    padding: 35px 25px;
    max-width: 95%;
  }
  
  .flip-clock-label {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 600px) {
  .clock-container {
    padding: 28px 14px;
  }
  
  .clock-container .clock {
    margin: -12px;
  }
  
  .flip-clock {
    transform: scale(0.93);
    transform-origin: center;
  }
  
  .flip-clock-label {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 550px) {
  #middle {
    transform: scale(0.9);
    transform-origin: center;
  }
  
  .flip-clock-label {
    font-size: 1.08rem !important;
  }
}

@media (max-width: 500px) {
  #middle {
    transform: scale(0.8);
  }
  
  .flip-clock-label {
    font-size: 1.07rem !important;
  }
}

@media (max-width: 450px) {
  #middle {
    transform: scale(0.75);
  }
  
  .flip-clock-label {
    font-size: 1.06rem !important;
  }
}

@media (max-width: 430px) {
  #middle {
    transform: scale(0.74);
  }
  
  .flip-clock-label {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 400px) {
  #middle {
    transform: scale(0.72);
  }
  
  .flip-clock-label {
    font-size: 1.03rem !important;
  }
}

@media (max-width: 375px) {
  #middle {
    transform: scale(0.70);
  }
  
  .flip-clock-label {
    font-size: 1.01rem !important;
  }
}

@media (max-width: 360px) {
  #middle {
    transform: scale(0.69);
  }
  
  .flip-clock-label {
    font-size: 1rem !important;
  }
}

@media (max-width: 340px) {
  #middle {
    transform: scale(0.67);
  }
  
  .flip-clock-label {
    font-size: 0.98rem !important;
  }
}

@media (max-width: 320px) {
  #middle {
    transform: scale(0.65);
  }
  
  .flip-clock-label {
    font-size: 0.95rem !important;
  }
}

.info-section {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.info-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #e8e6e0;
}

.info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.info-column {
  display: flex;
  flex-direction: column;
}

.info-column h3:first-of-type {
  margin-top: 0;
}

.info-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #e8e6e0;
}

.info-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e8e6e0;
  opacity: 0.9;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0 30px;
  justify-content: center;
}

.action-button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

footer {
  animation: fadeIn 1s ease-out 0.4s both;
}

.note {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 400;
  margin-bottom: 0;
}

.coffee-button-container {
  margin-top: 50px;
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease-out 0.6s both;
}

.coffee-button-container a {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.coffee-button-container a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.share-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #e8e6e0;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.share-button svg {
  flex-shrink: 0;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-button.twitter {
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
  color: #ffffff;
}

.share-button.twitter:hover {
  background: linear-gradient(135deg, #0d8bd9 0%, #1DA1F2 100%);
}

.share-button.facebook {
  background: linear-gradient(135deg, #1877F2 0%, #0d5dbf 100%);
  color: #ffffff;
}

.share-button.facebook:hover {
  background: linear-gradient(135deg, #0d5dbf 0%, #1877F2 100%);
}

.share-button.reddit {
  background: linear-gradient(135deg, #FF4500 0%, #cc3700 100%);
  color: #ffffff;
}

.share-button.reddit:hover {
  background: linear-gradient(135deg, #cc3700 0%, #FF4500 100%);
}

.share-button.email {
  background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
  color: #ffffff;
}

.share-button.email:hover {
  background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
}

.history-section {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.history-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #e8e6e0;
}

.history-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #e8e6e0;
  opacity: 0.9;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.shutdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.shutdown-table thead {
  background: rgba(255, 255, 255, 0.1);
}

.shutdown-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 700;
  color: #e8e6e0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.shutdown-table td {
  padding: 12px;
  color: #e8e6e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.shutdown-table tbody tr {
  transition: background 0.2s ease;
}

.shutdown-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.shutdown-table .current-row {
  background: rgba(255, 215, 0, 0.15);
  font-weight: 600;
}

.shutdown-table .current-row:hover {
  background: rgba(255, 215, 0, 0.2);
}

.history-note {
  font-size: 0.95rem;
  font-style: italic;
  color: #e8e6e0;
  opacity: 0.85;
  margin-top: 20px;
}

#tmp-text {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 768px) {
  #header {
    margin-bottom: 30px;
  }
  
  #header h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .clock-container {
    padding: 30px 20px;
  }
  
  .info-section {
    padding: 30px 20px;
    margin-top: 40px;
  }
  
  .info-section h2 {
    font-size: 1.5rem;
  }
  
  .info-section h3 {
    font-size: 1.2rem;
  }
  
  .info-section p {
    font-size: 1rem;
  }
  
  .action-links {
    flex-direction: column;
    gap: 12px;
  }
  
  .action-button {
    width: 100%;
    text-align: center;
  }
  
  .info-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .history-section {
    padding: 30px 20px;
    margin-top: 40px;
  }
  
  .history-section h2 {
    font-size: 1.5rem;
  }
  
  .shutdown-table thead {
    display: none;
  }
  
  .shutdown-table,
  .shutdown-table tbody,
  .shutdown-table tr,
  .shutdown-table td {
    display: block;
  }
  
  .shutdown-table tr {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .shutdown-table td {
    padding: 8px 0;
    border: none;
    text-align: right;
    position: relative;
    padding-left: 50%;
  }
  
  .shutdown-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    font-weight: 700;
    text-align: left;
  }
  
  .shutdown-table .current-row {
    border: 2px solid rgba(255, 215, 0, 0.5);
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-button {
    width: 100%;
    justify-content: center;
  }
}



