body {
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
  }

  h2{margin-top: 3rem;}

  .intro{
    font-size: 1rem;
    color: #4d4c4c;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .labels {
    font-size: 0.9rem;
    color: #4d4c4c;
    text-align: left;
    margin-left: 0.2rem;
  }

  .app {
    display: flex;
    flex-direction: column;
  }

  .editable-text {
    border: 1px solid #000;
    border-radius: 10px;
    color: #8b8a8a;
    padding: 15px;
    margin: 15px 0;
    height: 250px; /* Set a fixed height for the text area */
    resize: vertical; /* Allow vertical resizing of the text area */
    overflow-y: auto; /* Show a scrollbar when the content overflows */
  }  

  #main-container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }

  .controls {
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
    margin-bottom: 15px;
    padding: 2rem;
    border: 1px solid #000;
    border-radius: 10px;
  }

  .control {
    font-weight: bold;
  }

  .grid {
    display: grid;
    column-gap: 3rem;
    row-gap: 3rem; 
    justify-content: center;
    align-content: center;
    align-items:flex-start;
    justify-items:flex-start;
    }
    
    .grid-cols {
      grid-template-columns: 4.5rem 1.8rem 7rem auto;
      grid-template-rows: 0.5rem 1rem;
    }
  
  #settings-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 2rem;
  }

  .line-background {
    background-color: white;
    padding: 2px 0;
    display: inline;
  }
  
  .hidden {
    display: none;
  }

  .focus-mode #settings-panel{
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
    border: none;
  }

  #focus-mode-btn{
    margin: auto;
    max-width: 20rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    border-radius: 10px;
    background-color: #3e3eae;
    color: #ffffff;
    border: solid 1px #3e3eae;
    padding: 0.5rem;
  }

  #exit-focus-mode-btn{
    margin: auto;
    padding: 2rem;
    font-size: 1rem;
    border-radius: 10px;
    background-color: #ffffff;
    border: solid 1px #000;
    padding: 0.5rem;
  }

/* Hide everything except the editable text */
.focus-mode *:not(.editable-text) {
  display: none;
}
  
.footer{
  width: 100%;
  margin-top: 4rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: #4d4c4c;
  text-align: center;
  gap: 4em;
}

.author{
  width: 100%;
  margin: auto;
  text-align: center;
  margin-bottom: 3rem;
}

.date {
  width: 80%;
  margin: auto;
  margin-top: 4em;
  text-align: center;
  font-size: 0.75em;
}

@media screen and (max-width: 540px) {

  .grid-cols {
    grid-template-columns: 2fr;
  
  }
}