body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8fafc;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

img#logo {
  width: 100px;
  border-radius: 4px;
  float: inline-end;
  position: relative;
  top: -10px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.wrapper {
  max-width: 700px;
  min-width: 300px;
  position: relative;
  margin: auto;
  background-color: #f9f9f9;
  color: #333;
}

h1,
h2 {
  color: #4b2e83;
}

ol {
  background-color: #fff;
  padding: 1rem 3rem;
  margin-bottom: 2rem;
}

.poem-analysis {
  background-color: #fff;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.poem-title {
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.highlight {
  background-color: #f2f0ff;
  padding: 0.25rem 0.5rem;
  border-left: 3px solid #4b2e83;
  margin: 0.5rem 0;
  display: block;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.submit-btn {
  background-color: #4caf50;
  color: white;
  min-width: 6rem;
  margin-bottom: 10px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.back-btn {
  background-color: #97a298;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.back-btn:hover {
  background-color: #7d8a7e;
  transform: translateY(-2px);
}

.cancel-btn {
  background-color: #f44336;
  color: white;
  margin-left: 10px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  background: #f2f0ff;
  border: #ab46ce 1px solid;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

#priz,
#priz2 {
  background: white;
  margin-bottom: 0;
  padding: 0;
  white-space: nowrap;
  border: none;
  color: blue;
  box-shadow: none;
}

.errormsg {
  color: red;
  font-size: 0.9em;
}

/*.errormsg {
    color: red;
    margin: 5px 0;
    padding: 8px;
} */
.poem-body {
  font-size: 12px;
  margin-top: 16px;
}

/***********************************
TOP and WINNERS
************************************/

#poemModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

#modalContent {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.subheading {
  font-family: "Marck Script", cursive;
  font-size: 21pt;
  font-style: italic;
  margin: -10px 0 20px 5px;
}

ul#poemList li {
  font-family: sans-serif;
}

ul#poemList li div {
  white-space: pre-line;
}

#logo-top {
  display: block;
  float: left;
  margin-right: 15px;
  max-width: 150px;
  min-width: 70px;
  height: auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#headerBlock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

#headerBlock h1 {
  margin: 0;
}

a#logo-top:hover img {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  #logo-top {
    max-width: 150px;
    margin-right: 10px;
  }

  #headerBlock {
    flex-direction: column;
    align-items: flex-start;
  }
}
