:root {
  --bg: #F0F4EF;
  --accent-light: #D6EADF;
  --accent: #48A9A6;
  --accent-dark: #2C7368;
  --text-primary: #1F2D2B;
  --text-secondary: #4B6A67;
  --highlight: #F7B267;
  --shadow: rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  padding: 20px;
  color: var(--text-primary);
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: auto;
}

.row1 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.picture {
  padding: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.picture img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.javascript-block {
  color: var(--text-primary);
  font-size: 30px;
  background-color: var(--accent-light);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px var(--shadow);
  padding: 20px;
}

#randomTextBox {
  font-size: 4em;
  font-weight: bold;
  color: #06202B;
  min-width: 400px;
  height: 70px;
  box-shadow: 0px 30px 40px -40px rgba(0, 0, 0, 1);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.main-title {
  text-align: center;
  font-size: 5em;
  font-weight: bold;
  margin-bottom: 100px;
  color: var(--text-primary);
  text-shadow: 2px 2px 5px var(--shadow);
}

input {
  color: white;
  background-color: var(--accent);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px var(--shadow);
  height: 50px;
  margin: 40px;
  border: none;
  transition: background-color 0.3s ease;
}

input:focus {
  outline: none;
  background-color: var(--accent-dark);
}

#abx {
  font-size: 30px;
}

button {
  color: white;
  font-size: 30px;
  background-color: var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--shadow);
  height: 50px;
  margin: 40px 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--accent-dark);
}

#javascript-equation {
  font-size: 50px;
  background-color: var(--accent);
  border-radius: 10px;
  padding: 20px;
  height: 60px;
  box-shadow: 0 0 10px var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.row2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.answerbox {
  font-size: 40px;
  background-color: var(--accent);
  border-radius: 10px;
  padding: 10px 20px;
  color: white;
  box-shadow: 0 0 10px var(--shadow);
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
  }

  .row1 {
    flex-direction: column;
    gap: 15px;
  }

  .picture {
    padding: 5px;
    width: 100%;
  }

  .picture img {
    width: 100%;
    height: auto;
  }

  .javascript-block {
    font-size: 20px;
    padding: 15px;
  }

  #randomTextBox {
    font-size: 2.5em;
    min-width: 100%;
    height: 50px;
    box-shadow: 0px 15px 20px -20px rgba(0, 0, 0, 0.9);
  }

  .main-title {
    font-size: 3em;
    margin-bottom: 40px;
  }

  input {
    height: 40px;
    margin: 20px 10px;
    font-size: 1em;
  }

  button {
    height: 40px;
    margin: 20px 5px;
    font-size: 1.5em;
  }

  #javascript-equation {
    font-size: 28px;
    height: 45px;
    padding: 10px;
  }

  .row2 {
    flex-direction: column;
    gap: 10px;
  }

  .answerbox {
    font-size: 25px;
    padding: 8px 15px;
  }

  input {
    width: calc(100% - 20px);
    max-width: 100%;
    box-sizing: border-box;
    font-size: 1.2em;
    height: 45px;
    margin: 15px 10px;
    padding: 0 10px;
  }
}