

/*--- General site layout + default styling ---*/

body {
    margin: 0;
    min-height: 100vh;
    display: flex; /* Vertical layout of main elements */
    flex-direction: column;
    align-items: center;
    line-height: 1.5; /* Make default line height more accessible */
    font-family: sans-serif; 
}

* {
    box-sizing: border-box;
}

header {
    max-width: 960px;

}

main {
    width: 100%;
    max-width: 960px;
    padding-left: 2em;
    padding-right: 2em;
}

header {
    display: flex;
    Width: 100%;
    border-bottom: 1px solid grey;
    margin-bottom: 0.5em;
}

.header-main {
    Display: flex;
    flex-direction: column;
    margin-right: auto;
    padding-top: 20px;
    padding-left: 20px;
    position: relative; /*new code for css transitioning images experiment*/
    z-index: 3; /*new code for css transitioning images experiment*/
}

.header-nav {
    Width: 100%;
    position: relative; /*new code for css transitioning images experiment*/
    z-index: 3; /*new code for css transitioning images experiment*/
}

footer {
    margin-top: auto;
    background-color: #d4d4d4;
    align-self: stretch;
    text-align: center;
    padding-top: 1em;
    padding-bottom: 1em;
}

h1 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 0.3em;
    margin-left: 0;
    margin-right: 0;
    font-weight: normal;
    align-items: center;
    position: relative; /*new code for css transitioning images experiment*/
    z-index: 3; /*new code for css transitioning images experiment*/
}

h2,h3,h4,h5,h6 {
    color: #253c8a;
    margin-top: 1em;
    margin-bottom: 0.3em;
    font-weight: normal;
}

p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.site-header {
    display: flex;
    position: relative; /*new code for css transitioning images experiment*/
    width: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    min-height: 7em;
 /*old code for single background image*/
   /* background-image: url('images/Great-barrier-reef.jpg');
    background-size: cover;
    Background-position: center;
    background-repeat: no-repeat; */ 
   /*code removed for css transitioning images experiment*/
    min-height: 460px;
    overflow: hidden; /*new code for css transitioning images experiment*/
}



.site-logo {
    color: #000000;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: auto;
    font-size: 2em;
    font-weight: bold;
    text-decoration: none;
    width: 100%;
}

/* navigation */

ul {
  width: 100%;  
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color:  #202945 ;
  display: flex;
 /* justify-content: center;*/
}

ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #1A3D6D  ;
}

.navigation {
    display: flex;
    Margin-top: auto;
    Margin-bottom: 0;
    flex: auto;
    padding: 0;
    white-space: nowrap;
}


.navigation-link {
    color: #3b3b3b; 
    padding: 0.7em;
    text-decoration: none;
    font-weight: bold; 
} 

.navigation-link:hover {
    color: #6484ef;
}

footer a:visited {
    color: #202945  ;
}
/* Table styling */

table {
    margin: 2em 0;
    border-collapse: collapse;
    width: 100%;
}

thead {
    background-color: #eaebf5;
}

th, td {
    border: 1px solid #d7d7d7;
    padding: 0.5em 0.8em;
    text-align: left;
}
tbody tr:hover {background-color: lightblue;}

/* Form styling */

form {
    max-width: 40em;
    border: 1px solid #e5e5e5;
    /* background-color: #f3f3f3; */
    padding: 1.5em;
    margin: 2em 0;
}


label {
    font-size: 0.9em;
}
.sub-lable-smaller {
    color: #b3b3b3;
    font-size: 0.6em;

}
input[type='text'], input[type='email'], textarea {
    border-style: solid;
    border-width: 1px;
    border-color: #777777;
    width: 100%;
    margin-bottom: 1em;
    padding: 0.3em;
}

input[type='radio'] {
    display: inline;
    margin-right: 0.5em;
}

textarea {
    resize: none;
}

input[type='submit'] {
    width: auto;
    padding: 0.5em 2em;
    background-color: #1e3da3;
    color: white;
    border-style: none;
    border-radius: 0.3em;
    margin: 1.5em 0 0 0;
}

.form-header {
    margin-top: 0;
}

.form-description {
    margin-bottom: 1.5em;
}

/* this is Image classes */
footer img{
    margin-top: 10px;
}

/*new code for css transitioning header images experiment*/

/* Container forces images to occupy the same exact space */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  overflow: hidden;
  margin: 0 auto;
}


.header-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.header-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
 /*if you change the time, recalculete animation-delay time for images found below */
  animation: fadeAnimation 30s infinite; 
}


/* Add your specific image paths here for header animations */
.img1 { 
    background-image: url('images/Great-barrier-reef.jpg');
    animation-delay: 0s; 
}
.img2 { 
    background-image: url('images/eagle-lake-soar.jpg'); 
    animation-delay: 10s; 
}
.img3 { 
    background-image: url('images/greece.jpg'); 
    animation-delay: 20s; 
}

/*makes text readable by lightening the images towards white*/
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eeeeee66 0%, #eeeeee26 100%);
    z-index: 2; /* Sits above images, but below text */
}


@keyframes fadeAnimation {
  0% { opacity: 0; }
  15% { opacity: 1; }
  33% { opacity: 1; }
  48% { opacity: 0; }
  100% { opacity: 0; }
}


/* Styling For coin flip animation*/

/* Layout container */
.card-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 10px auto;
  padding: 0 10px;
}

/* Hide checkbox, Do not mess with, otherwise ilusion breaks */ 
.flip-checkbox {
  display: none;
}


.card {
  flex: 1;
  max-width: 280px;
  height: 280px;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

/* Trigger */
.flip-checkbox:checked + .card {
  transform: rotateY(180deg);
}

/* Common styles for front image and back div */
.front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


.front {
  object-fit: cover;
}


.back {
  background-color: #2c3e5081;
  color: #ffffff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.back h2, .back p {
  font-family: sans-serif;
  margin: 5px 0;
}

i {
    font-size: 2em;
    color: #1A3D6D;
}

/* Responsive collapse for mobile & page zoom */
@media (max-width: 800px) {
  .card-row { flex-wrap: wrap; }
  .card { flex: 1 1 calc(50% - 20px); }
}
@media (max-width: 500px) {
  .card { flex: 1 1 100%; }
}


/*sliding images*/

.infinite-slider {
  width: 100%;             
  overflow: hidden;        
  background: #f5f5f5;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.image-track {
  display: flex;           
  width: max-content;      
  animation: scrollLoop 40s linear infinite; 
}

.image-track img {
  height: 150px;           
  width: auto;             
  padding: 0 1px;         
}

.infinite-slider:hover .image-track {
  animation-play-state: paused; 
  cursor: pointer;
}

@keyframes scrollLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mobile-audio {
    display: none;
}

@media (max-width:768px) {
    .mobile-audio {
       display: block;
       margin: 10px auto; 
    }
}
