
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f8fbff, #e6f0ff);
  color: #333;
}


.container {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  max-width: 1200px;
  width: 100%;
  margin: 50px auto; /* ← center horizontally */
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  animation: fadeIn 0.4s ease-in-out;
}


.container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #004b99;
  font-size: 2.2rem;
  font-weight: 700;
}

/* Layout: left (controls) + right (typing area) */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 25px;
}

#thanks{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Header styling */
header#header {
  background: linear-gradient(135deg, #cce0ff, #99c2ff);
  padding: 40px 20px;
  /* border-radius: 16px; */
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

header#header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #004b99;
  line-height: 1.2;
  margin-bottom: 15px;
}

header#header p {
  font-size: 1.1rem;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  header#header h1 {
    font-size: 2rem;
  }
  header#header p {
    font-size: 1rem;
    padding: 0 10px;
  }
}


/* Sidebar */
.sidebar {
  background: #f9fbff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #dce6f9;
}

/* Circle Timer */
.circle-timer {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}
.circle-timer svg {
  transform: rotate(-90deg);
  width: 100px;
  height: 100px;
}
.circle-timer circle {
  fill: none;
  stroke-width: 10;
  stroke: #e0ecff;
}
#progress-circle {
  stroke: #0066cc;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1s linear;
}
#circle-time-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  font-weight: bold;
  color: #004b99;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.controls select,
.controls button,
.controls label {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cce0ff;
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}
.controls button:hover,
.controls select:hover {
  background: #0066cc;
  color: #fff;
}

.control-btn{
  text-decoration: none;
  color: #1e1e2f;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cce0ff;
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}
.control-btn:hover{
   background: #0066cc;
  color: #fff; 
}




.controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  cursor: pointer;
}

/* Hide default checkbox */
.controls input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #0066cc;
  border-radius: 5px;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  outline: none;
  background: #fff;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
.controls input[type="checkbox"]:hover {
  border-color: #004b99;
  box-shadow: 0 0 5px rgba(0,102,204,0.3);
}

/* Checked state */
.controls input[type="checkbox"]:checked {
  background: #0066cc;
  border-color: #0066cc;
}

/* Tick mark inside */
.controls input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

textarea {
  width: 100%;
  border: 1px solid #cce0ff;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}

/* Main Content */
.main-content {
  background: #fdfefe;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #dce6f9;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Big Start Button */
.big-start {
  font-size: 1.4rem;
  font-weight: bold;
  background: linear-gradient(135deg, #0077ff, #004b99);
  color: #fff;
  padding: 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.3s;
}
.big-start:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,102,204,0.3);
}
#reset-btn {
  background: #ddd;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Keys Container */
.keys-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.key-btn {
  border: 1px solid #cce0ff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.key-btn.selected {
  background: #0066cc;
  color: #fff;
}
.key-btn.unselected {
  background: #f1f6ff;
  color: #333;
}

/* Text Display */
#text-display {
  min-height: 140px;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  padding: 15px;
  background: #f9fcff;
  font-size: 1.1rem;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 250px;
}
.word.current {
  background: #d6ebff;
  border-bottom: 2px solid #0066cc;
}
.word.correct {
  color: #28a745;
  font-weight: bold;
}
.word.incorrect {
  color: #dc3545;
  font-weight: bold;
}

/* Input Field */
#input-field {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #cce0ff;
  font-size: 1rem;
  outline: none;
}
#input-field:focus {
  border-color: #0066cc;
  box-shadow: 0 0 6px rgba(0,102,204,0.3);
}

/* Results */
#results {
  font-size: 1.1rem;
  background: #f8faff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #dce6f9;
  text-align: center;
  display: none;
}

/* PDF Button */
#download-pdf {
  padding: 10px 18px;
  border: none;
  background: #0066cc;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
#download-pdf:hover {
  background: #004b99;
}

/* Responsive */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
  .main-content {
    order: 1;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}





/* Contact Page Content */
.page-content {
  max-width: 900px;
  margin: 50px auto; /* center horizontally */
  background: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.5s ease-in-out;
  line-height: 1.7;
  color: #333;
}

.page-content h1, .page-content h2 {
  color: #004b99;
  /* margin-bottom: 20px; */
}

.page-content h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-content h2 {
  font-size: 1.8rem;
  /* margin-top: 30px; */
}

.page-content p {
  font-size: 1.1rem;
  /* margin-bottom: 18px; */
  margin-bottom: 15px;
  text-align: justify;
  color: #444;
}

.page-content strong {
  color: #0066cc;
}

/* Contact Form Styling */
.page-content form {
  flex-direction: column;
  margin-top: 15px;
}

.page-content label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #004b99;
}

.page-content input[type="text"],
.page-content input[type="email"],
.page-content textarea {
  padding: 12px 15px;
  border: 1px solid #cce0ff;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s all ease-in-out;
  min-width: 100%;
}

.page-content input[type="text"]:focus,
.page-content input[type="email"]:focus,
.page-content textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 6px rgba(0, 102, 204, 0.3);
}

.page-content textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit Button */
.page-content button[type="submit"] {
  padding: 14px 20px;
  background: linear-gradient(135deg, #0077ff, #004b99);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.3s;
}

.page-content button[type="submit"]:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 102, 204, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .page-content {
    padding: 20px 15px;
  }
  .page-content h1 {
    font-size: 2rem;
  }
  .page-content h2 {
    font-size: 1.5rem;
  }
  .page-content p {
    font-size: 1rem;
  }
}

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}



#header{
  /* text-justify: ; */
  justify-content: center;
}








.site-footer {
  background: #1e1e2f;
  color: #ddd;
  padding: 40px 20px 10px;
  margin-top: 40px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-logo h2 {
  color: #fff;
  margin-bottom: 10px;
}

.footer-links h3,
.footer-contact h3 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #00c3ff;
}

.footer-contact p {
  margin: 6px 0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}



