/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: #eef6ff;
  color: #003366;
  line-height: 1.5;
      position: relative;
    background-image: url(./images/bg2.png);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #d8f5fb;
}

/* Header */
.header {
  text-align: center;
  padding: 20px 10px;
}
.header img.logo {
  height: 80px;
  margin-bottom: -40px;
}
.header h2 {
  font-size: 20px;
  color: #003366;
  font-weight: bold;
}

/* Main Layout */
.main-container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  justify-content: center;
  gap: 20px;
}
.left-side {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.left-side img {
  max-width: 100%;
  height: auto;
}
/*.right-side {
/*  flex: -1 0 60%;
}*/
.right-side h3 {
  text-align: center;
  color: #0066cc;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Ping Link Group */
.ping-link-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.ping-link {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #3ba3ff, #4a90e2);
  padding: 0px 5px;
  border-radius: 40px;
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
  position: relative;
}
.link-number {
  background: radial-gradient(circle, #00c6ff, #0072ff);
  color: #fff;
  font-weight: bold;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-size: 16px;
  margin-right: 12px;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #0072ff;
}
.link-info {
  flex-grow: 1;
}
.progress-bar {
  height: 10px;
  background: #d4e2f7;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 8px;
  transition: width 1.2s ease-in-out;
}
.link-text {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: white;
}
.link-host {
  font-weight: bold;
}
.fastest {
  background: #ccf2ff;
  color: #0099cc;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 8px;
  font-style: italic;
}
.ping {
  color: #ffffff;
  font-weight: bold;
}

/* GO button */
.go-image-button img {
  height: 40px;
  width: auto;
  margin-left: 12px;
}
.blinking img {
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Footer */
footer {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 14px;
  color: #666;
}


/* dk dn */
.actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.login-button,
.register-button {
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button {
  background: white;
  border: 2px solid #33c5ff;
  color: #33c5ff;
}

.login-button:hover {
  background: #33c5ff;
  color: white;
}

.register-button {
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: white;
  border: none;
}

.register-button:hover {
  filter: brightness(1.1);
}

.cskh-button {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
  text-decoration: none;
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse-cskh 2s infinite;
}

.cskh-button:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  transform: scale(1.05);
}

/* Hiệu ứng nhấp nháy */
@keyframes pulse-cskh {
  0% { box-shadow: 0 0 0 0 rgba(0,114,255, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(0,114,255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0,114,255, 0); }
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    align-items: center;
  }
  .left-side, .right-side {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .ping-link-group {
    grid-template-columns: 1fr;
  }


  
}
