@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');


/* Background color */
html, body {
  background-color: #4A90E2;
  font-family: 'Roboto', sans-serif;
  font-size: 16px; /* This sets a default font size */
  height: 100%;
  margin: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2rem;
}

#storyAreaTopLabel {
  margin-bottom: 5px;
  margin-top: 1rem;
  font-size: 1rem; /* 1rem is equal to the font-size of the body */
}


label, p {
  font-size: 1.2rem;
  color: #ffffff;
}

/* Text area styling */
textarea {
  font-size: 1.2rem;
  color: #333;
  padding: 1rem;
  border: 2px solid #FFD166;
  border-radius: 15px;
  width: 100%;
  height: 150px;
  resize: none;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
  max-width: 1000px;
}

textarea:focus {
  outline: none;
  box-shadow: 0 0 10px #FFD166;
}

/* Loggo styling */
.loggo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.centeredParagraph {
  text-align: center;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.7rem;
}

/* Button styling */
button {
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(45deg, #EF476F, #FF8E9E);
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:disabled {
  background: #ccccccbc;
  cursor: not-allowed;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Generated story styling */
.story-container {
  background-color: #fff;
  padding: 1rem;
  border-radius: 15px;
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


#options {
  display: flex;
  align-items: center;
  padding: 5px;
  color: #fff;
}

.option {
  display: flex;
  flex-direction: column;
  margin: 0 10px;
  
}


/* Pulsating text animation */
@keyframes pulse {
  0% {
    color: red;
    opacity: 1;
  }
  50% {
    color: red;
    opacity: 0.5;
  }
  100% {
    color: red;
    opacity: 1;
  }
}

#serverOnlineStatus {
  animation: pulse 2s infinite;
  background-color: #ffffff;
  font-size: 12px;
  display: inline-block;
  align-items: center;
}

.errors {
  animation: pulse 10s infinite;
  background-color: #ffffff;
  font-size: 18px;
  display: inline-block;
  align-items: center;
}

#storyArea:focus {
  outline: none;
  box-shadow: 0 0 10px #E63462;
}

/* Story image styling */
.storyImage {
  flex: 1; /* Allows the image to grow and shrink */
  max-width: 100%; /* Ensures the image is not wider than the container */
  height: auto; /* Maintains the aspect ratio */
  object-fit: contain; /* Ensures the image fits within its div */
  margin: 0.5rem; /* Adds some space between images */
}

.imageContainer {
  padding: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers the images */
  align-items: center;
  width: 100%; /* Full width of the parent container */
}

/* Story text styling */
.storyText {
  font-size: 1.5rem;
  color: #0E79B2;
  margin-bottom: 2.5rem;
  margin-left: 3rem;
  margin-top: 0;
  flex: 1;
}

label {
  font-size: 14px; /* You can adjust the font size as needed */
}

.createStoryArea {
  width: 80%;
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}


.button-container {
  text-align: center; /* Center the button horizontally */
}

.image-placeholder {
  background: url('./images/loadingImagePlaceholder.png') no-repeat center center;
  background-size: 50%; /* This will make the spinning disc smaller */
  animation: spin 1s linear infinite;
  padding: 0.5rem;
  margin: 1rem; /* Adjust margin as needed to ensure it does not touch the container's edges */
  flex: 1;
  max-width: 20%; /* Set max-width to half of its container's size */
  max-height: 20%; /* Set max-height to half of its container's size, assuming you want it to be a square */
  object-fit: contain;
  box-sizing: border-box; /* Ensures padding is included in the width and height */
}



@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Story area styling */
.storyArea {
  margin-bottom: 1rem;
  margin-top: 1rem;
  height: 30vh;
  border-bottom: 1px dotted #ccc;
  overflow: auto;

}


.auth-container {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
}

#show-auth, #auth-button {
font-size: 1rem;
font-weight: bold;
cursor: pointer;
color: #000000;
background-color: #dc8aa0;
border: none;
border-radius: 5px;
padding: 0.5rem 1rem;
transition: background-color 0.3s ease;
align-items: center;
}

#show-auth:hover, #auth-button:hover {
background-color: #deb7c2;
}

#auth-input {
  margin-right: 10px;
  height: 30px;
  font-size: 1rem;
  padding: 0.5rem;
  border: 2px solid #FFD166;
  border-radius: 15px;
}

/* Error message */
.error {
color: #E63462;
font-size: 1.2rem;
font-weight: bold;
padding: 10px;
border: 2px solid #E63462;
border-radius: 5px;
}

/* Print button */
.print-button {
font-size: 1rem;
font-weight: bold;
cursor: pointer;
color: #000000;
background-color: #dc8aa0;
border: none;
border-radius: 5px;
padding: 0.5rem 1rem;
transition: background-color 0.3s ease;
float: right;
transition: background-color 0.3s ease;
box-shadow: 3px 3px 10px rgba(0, 0, 0, .3); /* Added shadow */
border-radius: 30px;  /* Increased from 5px to 15px */
align-items: center;
}

#print-button:hover {
background-color: #deb7c2;
}

.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 16px;
}

.footer p {
  font-size: 16px;
}

.footer h3 {
  padding: 5px;
  margin-bottom: 10px;  /* Space between elements for better readability */
  font-size: 1em;       /* Adjusted for better visual hierarchy */
  letter-spacing: 1px;
  /* border-bottom: 4px solid #BEC5D1; */
}
.footer a {
  color: #FFD166;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  margin: 0.5rem;
}

.regenerate-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .regenerate-overlay {
  opacity: 1;
}

.regenerate-button {
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(45deg, #EF476F, #FF8E9E);
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.regenerate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.regenerate-icon {
  font-style: normal;
  font-size: 1.5rem;
}