@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

/* ✅ This ensures full-page height and flex centering */
html, body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body {
    background: linear-gradient(270deg, #667eea, #764ba2, #667eea);
    background-size: 600% 600%;
    animation: moveGradient 12s ease infinite;
}

@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



#title {
    font-size: 3.5rem;
    margin: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0 20px #00f0ff, 0 0 30px #00f0ff;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 10px #fff, 0 0 20px #00f0ff; }
  50% { text-shadow: 0 0 20px #fff, 0 0 30px #00f0ff, 0 0 40px #00f0ff; }
}

.container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 90%;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hangman-box img{
    user-select: none;
    max-width: 270px;
}
.hangman-box h1{
    font-size: 1.54rem;
    text-align: center;
    margin-top: 20px;
    text-transform: uppercase;
}
.game-box .word-display{
    gap: 10px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.word-display .letter{
    width: 28px;
    font-size: 2rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    border-bottom: 3px solid #000;
}
.word-display .letter.guessed{
    margin: 28px;
    border-color: transparent;
}
.game-box h4{
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}
.game-box h4 b{
    font-weight: 600;
}
.game-box .guesses-text b{
    color: #ff0000;
}
.game-box .keyboard{
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}
:where(.game-modal, .keyboard) button{
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    background: #53545d;
}
.keyboard button {
    padding: 10px 0;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    margin: 5px;
    background: #34495e;
    color: #ecf0f1;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

.keyboard button:hover {
    background: #1abc9c;
    color: #fff;
    transform: scale(1.05);
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 0 10px;
    transition: opacity 0.4s 0.4s ease;
}

.game-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.game-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popin 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
}

 

@keyframes popin {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.game-modal img {
    max-width: 130px;
    margin-bottom: 20px;
}

.game-modal img[src="images/victory.gif"] {
    margin-left: -10px;
}

.game-modal h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00bcd4;
    text-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
    animation: fadeIn 0.4s ease-in;
}

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


.game-modal p {
    font-size: 1.15rem;
    margin: 15px 0 30px;
    font-weight: 500;
}

.game-modal p b {
    color: #00010f;
    font-weight: 600;
}
.game-modal button {
    padding: 12px 23px;
    background: #00bcd4; /* Cyan */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.game-modal button:hover {
    background: #0097a7;
}
.word-display .letter.guessed {
    margin: 28px;
    border-color: transparent;
    color: #00ffea;
    text-shadow: 0 0 8px #00ffea;
}

.feedback {
  margin-top: 10px;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 8px;
}

.feedback label {
  display: block;
  margin: 5px 0 3px;
  font-weight: bold;
}

.feedback select,
.feedback textarea {
  width: 100%;
  padding: 6px;
  margin-bottom: 10px;
}

#submitFeedback {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px;
  width: 100%;
  cursor: pointer;
  border-radius: 5px;
}

#submitFeedback:hover {
  background: #218838;
}
.review-section {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #f8f9fa;
  border-left: 5px solid #28a745;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.review-section h2 {
  margin-bottom: 10px;
  color: #28a745;
}

.review-section p {
  font-size: 16px;
  line-height: 1.5;
}
.about-section {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-left: 5px solid #28a745;
    border-radius: 8px;
    text-align: center;
}

.review-section {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #28a745;
    padding: 10px 20px;
    color: white;
}
.nav-links button {
    background: white;
    color: #28a745;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 5px;
}
.nav-links button:hover {
    background: #f1f1f1;
}

.info-section {
    max-width: 800px;
    margin: 15px auto;
    padding: 15px;
    background: #f8f9fa;
    border-left: 5px solid #28a745;
    border-radius: 8px;
}

.start-screen {
    text-align: center;
    padding: 50px 20px;
}
.start-btn {
    padding: 12px 24px;
    background: #28a745;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.start-btn:hover {
    background: #218838;
}
/* Fixed Navbar at top */
/* Navbar fixed at top */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #28a745;
    padding: 10px 20px;
    color: white;
    z-index: 1000;
}

/* Push page content down so it’s not hidden behind navbar */
body {
    margin: 0;
    padding-top: 60px; /* same height as navbar */
    font-family: Arial, sans-serif;
}

/* Navbar links */
.nav-links a {
    background: white;
    color: #28a745;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
}

.nav-links a:hover {
    background: #f1f1f1;
}
/* Content Box Style */
.content-box {
    background: white;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

.content-box h2 {
    margin-top: 0;
    color: #28a745;
}

.page-content {
    display: flex;
    justify-content: center;
    padding: 20px;
}
.page-content {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.info-box {
    max-width: 600px;
    background-color: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.review-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.review-item p {
    margin: 0 0 6px 0;
    font-weight: 500;
}

.review-item small {
    color: #666;
    font-size: 0.85rem;
}
