body {
    font-family: Arial, sans-serif;
    background-color: #222222;
    color: #b2b5d3;
    margin: 0;
    margin-top: 50px;
    padding: 20px;
}
a {
    color: #b2b5d3;
    text-decoration: none;
}
a.hover {
    color: #b2b5d3;
}
a.visited {
    color: #b2b5d3;
}
a:active {
    color: #b2b5d3;
}
textarea {
  resize: none;
}



.header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    background: linear-gradient(to bottom, 
        rgba(0, 65, 194, 0.6) 0% 9.5%, 
        rgba(255, 255, 255, 0.6) 9% 20.5%, 
        rgba(206, 17, 38, 0.6) 20% 80.5%, 
        rgba(255, 255, 255, 0.6) 80% 91.5%, 
        rgba(0, 65, 194, 0.6) 91% 100%);
    z-index: 10;
    width:100%;
    margin-top: -70px;
    margin-left: -20px;
}
.header::before {
    content: '';
    background-image: url('../resources/images/coat_of_arms_of_costa_rica.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    margin-left: 30px;
    position: absolute;
    left: 30px;
}
.header::after {
    content: '';
    background-image: url('../resources/images/costa-rica-map.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    position: absolute;
    margin-top: 5px;
    right: 50px;
}


/*.header::after {
    content: 'Costa Rica';
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    right: 50px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}*/
.menu, .menu a {
    padding-top: 20px;
    padding-bottom: 20px;
    color: #ffffff;
    order: 1;
    margin-left: 5px;
}

.photos-banner {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}
.banner-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
}
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
.fade {
  animation-name: fade;
  animation-duration: 2s;
}
@keyframes fade {
  from {opacity: .2}
  to {opacity: 1}
}


.content {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 5px;
}
.content-left {
    justify-content: center;
    order: 1;
    flex: 1;
    padding:20px;
}
.content-right {
    order: 2;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 3px;
    align-content: start;
}



.index-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.index-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#index-fullpage {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: contain;
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-color: black;
}



.welcome-overlay {
    position: absolute;
    top: 10%;
    right: 10%;
    text-align: right;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.welcome-overlay h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.logo {
    order: 2;
    margin-right: 20px;
}




/* Calendar styles */
.calendar-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}
.calendar-title {
    border-radius: 15px 15px 0px 0px;
    background-color: #19269c;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
}
.calendar-header {
    background-color: #22589e;
    color: white;
    padding: 7px;
    text-align: center;
}
.calendar-cell {
    color: beige;
    border: 1px solid #ddd;
    padding-top: 10px;
    text-align: center;
    width: calc(100% / 7);
    position: relative;
}
/* Make cells squary */
.calendar-cell:after {
    content: "\00a0"; /* Non-breaking space to ensure cell has height */
    display: block;
    padding-bottom: 30%;
}
.calendar-cell span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.green-background {
    background-color: rgba(0, 128, 0, 0.5);
}
.red-background {
    background-color: rgba(255, 0, 0, 0.5);
}
.calendar-event-icon-container {
    position: absolute;
    top: 5px;
    right: 5px;
}
.calendar-event-icon-container:nth-child(2) {
    top: 8px;
    right: 8px;
}
.calendar-event-icon-container:nth-child(3) {
    top: 11px;
    right: 11px;
}
.calendar-event-icon-container:nth-child(4) {
    top: 14px;
    right: 14px;
}
.calendar-event-icon-container:nth-child(5) {
    top: 17px;
    right: 17px;
}
.calendar-event-icon {
    width: 15px;
    height: 15px;
}




.floatMessage {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #004d00;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
    animation: fadeOut 5s 4s forwards;
    z-index: 100;
}

.floatError {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #6e0000;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
    animation: fadeOut 5s 4s forwards;
    z-index: 100;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.contact-form-container {
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 800px;
    margin: 0px auto 20px 10%;
}
#contact-form {
    display: flex;
    flex-direction: column;
}
.contact-content {
    position: relative;
    max-width: 1200px;
    margin: 10px auto 20px 10%;
    padding: 20px 5px;
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#submit-button {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    width: 30%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.footer {
    background-color: #333;
    color: #b2b5d3;
    text-align: center;
    padding: 20px;
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.footer-image {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 5px;
}


.admin-photos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    max-width: 800px;
    margin: 0 auto;
}
.admin-photos-image-box {
    border: 1px solid #ccc;
    position: relative;
    width: 100%;
    padding: 10px;
    margin-bottom: 50px;
}
.admin-photos-image {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}