* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #dedede;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column; /* stack elements vertically */
  justify-content: center;
  align-items: center;
}

h1 {
  position: relative;
  z-index: 3; /* ensures it stays above the notebook */
  margin-bottom: 20px; /* adds space between title and notebook */
  text-align: center;
  font-size: 2rem;
  color: #333;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px; /* space between input and button */
  margin-bottom: 20px;
}

input {
  font-size: 1rem;
  padding: 8px;
  border: 1px solid #333;
  border-radius: 4px;
}

.submit-button {
  font-size: 1rem;
  padding: 8px 16px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #333; /* subtle hover effect */
}


.paper {
    position: relative;
    width: 90%;
    max-width: 800px;
    min-width: 400px;
    height: 480px;
    margin: 0 auto;
    background: #fafafa;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, .3);
    border-radius: 10px;
    overflow: hidden;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.paper::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    background: radial-gradient(#575450 6px, transparent 7px) repeat-y;
    border-right: 3px solid #d44147;
    background-size: 30px 30px;
    box-sizing: border-box;
}
.paper-content {
    position: absolute;
    top: 30px;
    right: 0;
    bottom: 30px;
    left: 60px;
    background: linear-gradient(transparent, transparent 28px, #91d1d3 28px);
    background-size: 30px 30px;
}
.paper-content #poem {
    width: 100%;
    height: 100%;
    line-height: 30px;
    background: transparent;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: mediumblue;
    font-family: cursive;
    font-weight: bold;
    font-size: 18px;
    box-sizing: border-box;
    white-space: pre-wrap; /* keeps line breaks */
}

.paper-content textarea{
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    line-height: 30px;
    background: transparent;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: mediumblue;
    font-family: cursive;
    font-weight: bold;
    font-size: 18px;
    box-sizing: border-box;
    z-index: 1;
}