: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;
}

.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; font-size: 18px;}

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

button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 10px;
  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: 12px;
  background-color: #9c064c;
  color: #f3ef74;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

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



#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(15, var(--cell-size));
    grid-template-rows: repeat(15, 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: center; }
.word-list ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 5px; /* 4 karakter boşluk yerine sabit boşluk */
}
.word-list li { 
    background-color: #062d57; 
    color: yellow; 
    font-size: small;
    padding: 6px 12px; 
    border-radius: 8px; 
    font-weight: bold; 
    display: inline-block; 
}
.word-list li.found { 
    color: white; 
    font-style: italic; 
    text-decoration: line-through; 
    text-decoration-color: black;
    text-decoration-thickness: 2px;
    font-weight: bold;
    background-color: #062d57;
}

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