
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #121212;
  color: #f1f1f1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 1000px;
}

h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 30px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.input-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

#input {
  flex: 1;
}

#submitBtn {
  min-width: 120px;
}

@media (max-width: 700px) {

  .top-section {
    flex-direction: column;
    align-items: stretch;
  }

  #timeText {
    text-align: center;
  }

  .input-row {
    flex-direction: column;
  }

  #submitBtn {
    width: 100%;
  }
}

#top-box {
  margin-bottom: 25px;
}

#wordInput {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  outline: none;
  background: #1f1f1f;
  color: white;
  font-size: 1rem;
  transition: 0.2s;
}

#wordInput:focus {
  background: #2a2a2a;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background: #1b1b1b;
}

th {
  background: #262626;
  padding: 16px;
  text-align: left;
  font-size: 1.1rem;
}

td {
  padding: 14px;
  border-top: 1px solid #2f2f2f;
}

.word {
  color: #d6d6d6;
  font-weight: bold;
}

.translation {
  background: #222;
  border-radius: 8px;
  min-height: 42px;
  transition: 0.2s;
}

.translation.correct {
  background: #1d6d35;
  color: white;
  font-weight: bold;
}

.bot {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#timeText {
  font-size: 1.1rem;
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #3a3a3a;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  font-size: 1rem;
}

button:hover {
  background: #505050;
}

.message {
  background: #1d6d35;
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}