/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh; /* Set the height of html and body to 100vh */
  margin: 0; /* Remove default margin */
}



body {
  font-family: Arial, sans-serif;
  background-color: #FFF3E0; /* Light orange */
  color: #8B4513; /* Dark orange */
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100vh;
}


header {
  position: relative;
  background-color: #FF8C00; /* Orange */
  align-items: center;
  justify-content: space-between;
  color: #FFF;
  padding: 1rem;
  text-align: center;
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto; /* Allow main to grow and push footer down */
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
/*  padding: 0.5rem;*/
}

.spacer {
  height: 8vh; 
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.container {
  margin-top: 0;
}

.expandable-element {
  margin-bottom: 2vh;
  min-height: 15vh;
  max-height: 15vh;
}

#text-input {
  width: 100%;
  max-width: 90vw;
  min-width: 90vw;
  min-height: 10vh;
  max-height: 10vh;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #8B4513;
  border-radius: 4px;
  resize: vertical;
}

#check-btn {
  background-color: #FF8C00;
  color: #FFF;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

#result {
  min-width: 90vw;
  max-width: 90vw;
  min-height: 15vh;
  max-height: 15vh;
  padding: 0.75rem;
  background-color: #FFF;
  border: 1px solid #8B4513;
  border-radius: 2vw;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  overflow: auto;
}

footer {
  width: 100%;
  position: relative;
  text-align: center;
  margin-top: auto;
}


.info-icon {
  position: absolute;
  top: 110%; /* Adjust this value to position it within the header */
  right: 10px; /* Adjust this value to position it within the header */
  cursor: pointer;
  font-size: 24px; /* Reduced font size for better proportions */
  color: #FFFFFF; /* White text color */
  background-color: #FF8C00; /* Match the header background color */
  border-radius: 50%;
  width: 36px; /* Set a fixed width */
  height: 36px; /* Set a fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF; /* Add a white border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

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


.alliteration-slider {
  position: relative;
  width: 80%;
  margin: 20px auto;
  overflow: hidden;
  text-align: center;
  font-size: 1.2em;
  background-color: #FFF3E0;
  border: 1px solid #8B4513;
  border-radius: 8px;
  padding: 20px 40px;
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.1);
}

.slide-container {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 10%;
  box-sizing: border-box;
}

/* Add this new style for masking */
.alliteration-slider::before,
.alliteration-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px; /* Adjust as needed */
  z-index: 1;
}

.alliteration-slider::before {
  left: 0;
  background: linear-gradient(to right, #FFF3E0, transparent);
}

.alliteration-slider::after {
  right: 0;
  background: linear-gradient(to left, #FFF3E0, transparent);
}

/* Ensure arrows are above the mask */
.arrow {
  z-index: 2;
}


.author {
  font-weight: bold;
  color: #FF8C00;
}

.text {
  font-style: italic;
  margin: 10px 0;
  font-size: 22px;
}

.work {
  font-weight: lighter;
}

.year {
  color: #8B4513;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 2.0em;
  padding: 5px;
  border-radius: 50%;
  z-index: 10;
}

.left-arrow {
  left: 5px;
}

.right-arrow {
  right: 5px;
}

.alliteration-slider {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}


.exA {
  font-weight: bold;
  text-decoration: underline red;
  -webkit-text-decoration: underline red;
}

.exB {
  font-weight: bold;
  text-decoration: underline blue;
  -webkit-text-decoration: underline blue;
}