:root {
    --cell-size: 40px;
    --cell-bg: darkblue;
    --cell-color: white;
    --cell-selected: #a70e5a;
    --cell-found-bg: #4caf50;
    --cell-found-color: white;
}

body {
    font-family: Arial, sans-serif;
    background: #3289e0;
    margin: 0;
    padding: 10px;
    text-align: center;
}





/* ------------------------------------------------------------------------------------ */

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  width: 97%;
  background: #000; /* siyah */
  color: #fff;
  border-radius: 30px;
  align-items: center;
  text-align: center;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left .logo {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.nav-left .site-desc {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  align-items: center;
   background: linear-gradient(135deg, #5a25d4, #a8edea);
   width: 220px;
  height: 30px;
  border-radius: 50px;
}


.nav-left .site-desc:hover {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  align-items: center;
   background: rgb(18, 18, 143);
   color: yellow;
   width: 220px;
  height: 30px;
  border-radius: 50px;
}



.nav-right a {
  background: linear-gradient(135deg, #5a25d4, #a8edea);
  color: white;
  padding: 10px 16px;
  margin: 0 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-right a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
   background: rgb(18, 18, 143);
   color: yellow;
}






/* Hamburger buton */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #5a25d4;
    text-align: center;
    margin-top: 10px;
    border-radius: 8px;
  }

  .nav-right a {
    display: block;
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-right.active {
    display: flex;
  }
}



/* ------------------------------------------------------------------------------------ */





.start-screen, .container {
    max-width: 500px;
    margin: auto;
}

.start-image {
    width: 100%;
    max-width: 550px;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

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

h1 { margin-bottom: 20px; color: #fffafa; }

h2 { text-align: center; color: white; background-color: #b3004d; }
p { margin-bottom: 20px; color: yellow; font-size: 24px; background: rgb(116, 2, 17); }

button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 24px;
  background-color: #062d57;
  color: #f3ef74;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover { background-color: #078531; }

button2 {
  margin: 5px;
  padding: 10px 20px;
  font-size: 24px;
  background-color: #9c064c;
  color: #f3ef74;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button2:hover { background-color: #078531; }


#creator {
    text-align: center;
    font-size: 12px;
    font-style: italic;
    font-weight: bold;
    color: white;
    background-color: rgb(57, 2, 116);
    border: 8px solid #256029;
    margin-top: 0px;
    padding: 5px;
}

#userForm input {
    padding: 8px;
    font-size: 26px;
    font-weight: bold;
    color: #0a06e4;
    width: 70%;
    margin-bottom: 10px;
}

.start-btn {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    background-color: #a70e5a;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1);}
    50% { transform: scale(1.1);}
    100% { transform: scale(1);}
}

#word-search {
    display: grid;
    grid-template-columns: repeat(11, var(--cell-size));
    grid-template-rows: repeat(11, var(--cell-size));
    gap: 2px;
    margin: auto;
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: var(--cell-bg);
    color: var(--cell-color);
    user-select: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.cell.selected { background: var(--cell-selected); }
.cell.found { background: var(--cell-found-bg); color: var(--cell-found-color); }

.word-list { margin-top: 20px; text-align: left; }
.word-list ul { list-style: none; padding: 0; }
.word-list li { padding: 4px 0; font-weight: bold; color: #f5f0f0; }
.word-list li.found { color: red; font-style: italic; }

@media (max-width: 600px) {
    :root { --cell-size: 28px; }
    .cell { font-size: 18px; }
}
