@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .container {
    flex-direction: column; 
  }
}

@media screen and (min-width: 1200px) {
  .header {
    padding: 20px 50px;
  }
}
body{
   background-color: #F6C3EE;
   font-family: Arial, Helvetica, sans-serif;
   font-size: 16px;
   line-height: 1.4;
 }
 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color:#DAB2FE;
    display: flex;
    }
            
 ul li a {
    display: block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
     }
            
 ul li a:hover {
    background-color: #00a3ed;
}
.About{
    background-color: rgb(255, 255, 255);
    padding: 20px;
    margin: 20px;
}

.banner{
      width: 100%;
      height: auto;
}

.LibraryContent{
    background-color: rgb(255, 255, 255);
    padding: 20px;
    margin: 20px;
}

#imagecontainer{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.row{
   display: contents;
}

.column{
   flex: 0 1 auto;
   padding: 5px;
   background-color: #ffffff;
}

.LibImg{
      width: auto;
      height: 200px;
   border-bottom: 20px solid white;
}

.imgDescription{
  font-size: 0.9em;
  color: #333;
  text-align: center;
  margin: 8px 0 0 0;
  padding: 0 5px;
  font-weight: 500;
}

#noResults{
  display: none;
  padding: 12px 16px;
  background: #ffcdf4;
  color: #660066;
  border: 1px solid #ffb5fd;
  border-radius: 4px;
  margin: 12px 20px;
  font-weight: 600;
}

#formMessage{
  display: none;
  margin: 12px 20px;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
}
#formMessage.success{
  display: block;
  background: #e7d4ed;
  color: #785589;
  border: 1px solid #dcc3e6;
}
#formMessage.error{
  display: block;
  background: #f8d7da;
  color: #721c47;
  border: 1px solid #f5c6cb;
}

.fieldError{
  display: none;
  font-size: 0.85em;
  color: #721c24;
  margin-top: 2px;
}
.fieldError:not(:empty){
  display: inline-block;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

input{
  border-width: 1px; 
  border-style: solid;
}

#submitBtn.loading::after{
  content: " ⟳";
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

#submitBtn.loading{
  opacity: 0.7;
  cursor: wait;
}

#submitBtn{
  padding: 10px 20px;
  font-size: 1em;
  background-color: #ffa3f9;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
}

#submitBtn:hover{
  background-color: #ff98f8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

#submitBtn:active{
  background-color: #ffaefa;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.SubmitContent{
    background-color: rgb(255, 255, 255);
    padding: 20px;
    margin: 20px;
}

.StatusContent{
   background-color: white;
   padding: 10px;
   margin: 10px;
}

table, th, td {
   border: 1px solid black;
   border-collapse: collapse;
   padding: 5px;
   text-align: center;
   width: 33%;
}

#imagecontainer img {
  transition: opacity .3s;
}
#imagecontainer img[style*="none"] {
  opacity: 0;
}


h1 { font-size: 32px; margin: 0.67em 0; font-weight:700; }
h2 { font-size: 24px; margin: 0.75em 0; font-weight:600; }
h3 { font-size: 18px; margin: 0.83em 0; font-weight:600; }