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

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

.header {
  background: linear-gradient(135deg, #0B2932, #0d4475);
  color: white;
  padding: 1.25rem 0;
  text-align: center;
  position: relative;
}

.header-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.logo{
  text-decoration: none;
  color: #fff;
}
.header h1 {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: .625rem;
}

.hamburger-menu {
  display: none;
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: .25rem;
  padding: .5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 1.5625rem;
  height: .1875rem;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: .125rem;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}

.nav-menu a:hover {
  opacity: 1;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #045a73, #0d4475);
  color: white;
  z-index: 1002;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h2 {
  font-size: 20px;
  margin: 0;
}

.close-sidebar {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.sidebar-nav {
  padding: 20px 0;
}

.sidebar-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link:last-child {
  border-bottom: none;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spacebar-section {
  width: 100%;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.spacebar-container {
  margin-bottom: 30px;
}

.spacebar-key {
  display: inline-block;
  width: 300px;
  height: 80px;
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  border: 2px solid #d0d0d0;
  border-radius: 12px;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  margin-bottom: 20px;
}

.spacebar-key:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.spacebar-key:active,
.spacebar-key.pressed {
  transform: translateY(2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #e0e0e0, #d0d0d0);
}

.spacebar-icon {
  font-size: 24px;
  color: #666;
  margin-bottom: 5px;
}

.spacebar-text {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}

.spacebar-hint {
  font-size: 12px;
  color: #888;
}

.spacebar-instruction {
  color: #666;
  font-size: 14px;
}

.spacebar-instruction p {
  margin: 5px 0;
}

.spacebar-instruction p:first-child {
  font-weight: bold;
  color: #333;
}

.spacebar-key.active {
  background: linear-gradient(145deg, #045a73, #0d4475);
  border-color: #2c5aa0;
  color: white;
}

.spacebar-key.active .spacebar-icon,
.spacebar-key.active .spacebar-text,
.spacebar-key.active .spacebar-hint {
  color: white;
}

.spacebar-key.active .spacebar-text {
  font-size: 14px;
}

.spacebar-key.active .spacebar-hint {
  font-size: 11px;
}

.banner {
  background-color: #ffd700;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  color: #333;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background-color: #e8e8e8;
}

.test-button {
  background-color: #045a73;
  color: white;
  border: none;
  font-size: 12px;
  font-weight: bold;
  border-radius: 20px;
  padding: 10px;
  text-decoration: none;
  cursor: pointer;
  min-width: 150px;
  text-align: center;
}

.test-button:hover {
  background-color: #0d4475;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.main-title {
  text-align: center;
  font-size: 36px;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.description {
  text-align: center;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.test-area {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 60px;
}

.click-section {
  width: 100%;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.click-button {
  width: 100%;
  height: 13.75rem;
  background-color: #045a73;
  color: white;
  border: none;
  font-size: 1.125rem;
  font-weight: bold;
  border-radius: .625rem;
  cursor: pointer;
  margin-bottom: 1.875rem;
  text-transform: uppercase;
  letter-spacing: .0625rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.click-button:hover {
  background-color: #1f6f75;
}

.click-button:active {
  transform: scale(0.98);
  transform: translateY(10px) scale(0.98);
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.2),
    inset 0 5px 10px rgba(255, 255, 255, 0.2),
    inset 0 -5px 10px rgba(0, 0, 0, 0.2),
    0 0 0 8px rgb(40 94 160 / 50%),
    0 0 0 12px rgba(30, 140, 140, 0.4),
    0 0 0 16px rgba(20, 97, 120, 0.3);
}

.click-button::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  pointer-events: none;
}

.click-button::after {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stats {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.stat-item {
  background-color: #f0f0f0;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
}

.stat-clicks {
  background-color: #e8e8e8;
}

.stat-time {
  background-color: #ffe8e8;
}

.stat-cps {
  background-color: #fff0e8;
}

.timer-section {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 250px;
}

.timer-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.timer-option {
  display: block;
  background-color: #0d6e89;
  color: white;
  padding: 12px 20px;
  margin-bottom: 5px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  width: 100%;
}

.timer-option:hover {
  background-color: #196487;
}

.timer-option.active {
  background-color: #1b587c;
}

.content-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  color: #045a73;
  margin-bottom: 20px;
  font-weight: bold;
}

.section-text {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.steps-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.step {
  margin-bottom: 15px;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.step-number {
  font-weight: bold;
  color: #333;
}

.substep {
  margin-left: 2em;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.highlight {
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  user-select: none;
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #333;
}

.rating-header {
  text-align: center;
  margin-bottom: 30px;
}

.rating-header h2 {
  color: #333;
  font-size: 28px;
  margin-bottom: 20px;
}

.final-score {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.score-item {
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.score-item span {
  color: #045a73;
}

.rating-section {
  text-align: center;
  margin-bottom: 30px;
}

.rating-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin: 20px 0;
  transition: transform 0.3s ease;
}

.rating-badge:hover {
  transform: translateY(-5px);
}

.rating-emoji {
  font-size: 48px;
  margin-bottom: 15px;
}

.rating-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.rating-description {
  font-size: 16px;
  opacity: 0.9;
}

.rating-badge.beginner {
  background: linear-gradient(135deg, #2ddbf4 0%, #0b2e6c 100%);
}

.rating-badge.intermediate {
  background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}

.rating-badge.advanced {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.rating-badge.expert {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.retry-btn,
.share-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.retry-btn {
  background-color: #045a73;
  color: white;
}

.retry-btn:hover {
  background-color: #0d4475;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.share-btn {
  background-color: #28a745;
  color: white;
}

.share-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}


footer {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  margin-top: 50px;
  font-size: 14px;
  color: #6c757d;
}
.Footer_content_top{
  margin-bottom: 20px;
}
.Footer_content_top a{
  text-decoration: none;
  color: #6c757d;
}

#gameWrapper {
  width: 100%;
  height: 37.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gameIframe {
  background-color: #fff;
  max-width: 75rem;
  margin: 1.25rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

#gameWrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.privacy h2{
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}
.privacy h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #333;
}
.privacy h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}
.privacy p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #666;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {

  .header h1 {
    font-size: 22px;
    margin-bottom: 0;
  }

  .hamburger-menu {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .header-container {
    padding: 0 60px 0 20px;
  }

  .banner {
    font-size: .75rem;
  }

  .button-row {
    flex-wrap: wrap;
    gap: .5rem;
    padding: .9375rem .625rem;
  }

  .test-button {
    padding: .5rem .9375rem;
    font-size: .875rem;
    flex: 1;
    text-align: center;
    min-width: 7.5rem;
  }

  .container {
    padding: 1.25rem 15px;
  }

  .main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .description {
    font-size: 14px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .test-area {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
  }

  .click-section {
    width: 100%;
    padding: 2.5rem;
    order: 2;
  }

  .spacebar-section {
    width: 100%;
    padding: 20px;
    order: 2;
  }

  .timer-section {
    width: 100%;
    order: 1;
    min-width: auto;
  }

  .click-button {
    height: 9.375rem;
    font-size: 1rem;
    margin-bottom: 1.875rem;
  }

  .stats {
    flex-direction: column;
    gap: .625rem;
  }

  .stat-item {
    font-size: .75rem;
    text-align: center;
  }

  .timer-title {
    font-size: 1rem;
    margin-bottom: .9375rem;
  }

  .timer-option {
    border-radius: 1.25rem;
    font-size: .875rem;
    margin-bottom: .5rem;
  }

  .spacebar-key {
    width: 250px;
    height: 4.375rem;
  }

  .spacebar-icon {
    font-size: 1.25rem;
  }

  .spacebar-text {
    font-size: .875rem;
  }

  .spacebar-hint {
    font-size: 11px;
  }

  .spacebar-instruction {
    font-size: 13px;
  }

  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
    max-width: 400px;
  }

  .close-btn {
    right: 15px;
    top: 10px;
    font-size: 24px;
  }

  .rating-header h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .final-score {
    padding: 15px;
    flex-direction: column;
    gap: 8px;
  }

  .score-item {
    font-size: 14px;
    text-align: center;
  }

  .rating-badge {
    padding: 20px;
    margin: 15px 0;
  }

  .rating-emoji {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .rating-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .rating-description {
    font-size: 14px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .retry-btn,
  .share-btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
  }

  .content-section {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .section-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .steps-title {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .step {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
  }
}

@media screen and (max-width: 480px) {
  .header h1 {
    font-size: 20px;
  }

  .header-container {
    padding: 0 20px;
  }

  .hamburger-menu {
    left: 15px;
  }

  .hamburger-line {
    width: 22px;
    height: 2px;
  }

  .mobile-sidebar {
    width: 280px;
    left: -280px;
  }

  .main-title {
    font-size: 24px;
  }

  .test-button {
    min-width: 100px;
    padding: 10px;
  }

  .click-button {
    height: 120px;
    font-size: 14px;
  }

  .spacebar-key {
    width: 220px;
    height: 60px;
  }

  .spacebar-icon {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .spacebar-text {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .spacebar-hint {
    font-size: 10px;
  }

  .spacebar-instruction {
    font-size: 12px;
  }

  .modal-content {
    margin: 5% auto;
    padding: 15px;
    width: 98%;
  }

  .rating-header h2 {
    font-size: 20px;
  }

  .rating-emoji {
    font-size: 32px;
  }

  .rating-title {
    font-size: 18px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .click-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .timer-option {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .test-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .retry-btn,
  .share-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
  .header {
    padding: 8px 0;
  }

  .header h1 {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .nav-menu {
    flex-direction: row;
    gap: 15px;
    font-size: 11px;
  }

  .container {
    padding: 15px;
  }

  .main-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .description {
    margin-bottom: 20px;
  }

  .test-area {
    flex-direction: row;
    gap: 15px;
    margin-bottom: 30px;
  }

  .click-section {
    order: 1;
    flex: 2;
  }

  .spacebar-section {
    order: 1;
    flex: 2;
  }

  .timer-section {
    order: 2;
    flex: 1;
    width: auto;
  }

  .click-button {
    height: 100px;
    font-size: 14px;
  }

  .spacebar-key {
    width: 200px;
    height: 50px;
  }

  .spacebar-icon {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .spacebar-text {
    font-size: 11px;
    margin-bottom: 1px;
  }

  .spacebar-hint {
    font-size: 9px;
  }

  .spacebar-instruction {
    font-size: 11px;
  }

  .stats {
    flex-direction: row;
    gap: 8px;
  }

  .stat-item {
    font-size: 11px;
    padding: 6px 10px;
  }
}