/* Reset margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Avenir, Helvetica, sans-serif;
  line-height: 1.6;
  box-sizing: border-box;
  background: #fffcee; /* #e3e0e8 #e8e7e0 */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container for content with limited width */
.content-container {
  max-width: 900px; /* Conventional width for readability is 720px */
  margin: 0 auto; /* Center the container */
  padding: 0 1rem; /* Add some padding for mobile devices */
}


header, footer {
  background: #fffcee; /* #e3e0e8 */
  color: #000;
  text-align: center;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
  margin: 0 1rem;
}

.nav-menu li a {
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 1rem;
  display: block;
}

.nav-menu li a:hover {
  background-color: #d0b5ff;
}

.nav-menu li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #fffcee; /* #e3e0e8 */
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  list-style: none;
  padding: 0;
}

.nav-menu li .dropdown-content li {
  margin: 0;
}

.nav-menu li .dropdown-content li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.nav-menu li:hover .dropdown-content {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  background-color: grey;
  margin: 4px 0;
  width: 25px;
}

/* Responsive styles */
@media (max-width: 800px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #c6ffc5; /* sandwich nav color #ffe2e2 - cool rose color #fee7eb */
    z-index: 1; /* keeps text above */
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0;
    font-size: x-large;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Content styling */
main {
  padding: 2rem;
  width: 100%;
  background: #fffcee; /* main background color #e3e0e8 #e8e7e0 */
}

/* Gap size between paragraphs */
div p {
  margin-top: 1.5rem;
  margin-bottom:1.5rem;
}

p {
  margin-top: 1.5rem;
  margin-bottom:1.5rem;
}


/* Flex container for centering */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%; /* Ensure content is within the viewport */
  overflow: hidden; /* Ensure content is within the viewport */
}


/* Image float and text wrapping */
img.image-left {
  float: left;
  max-width: 40%;
  min-width: 250px; /* good width for phone*/
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Responsive image */
img.fullscreen {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: auto;
}

/* Adjustments for tablets */
@media (max-width: 1024px) {
  img.fullscreen {
    height: 50vh;
  }
}

/* Adjustments for phones */
@media (max-width: 768px) {
  img.fullscreen {
    height: 30vh;
  }
}

/* Custom image sizes */
img.small {
  width: 40%;
  max-width: 500px;
  height: auto;
}

img.medium {
  width: 75%;
  height: auto;
}

img.large {
  width: 100%;
  height: auto;
}

/* Alignment classes for text and images */
.item-left {
  text-align: left;
}

.item-center {
  text-align: center;
}

.item-right {
  text-align: right;
}

/* Specific styles for images within alignment classes */
img.item-left {
  display: block;
  margin: 0 auto 0 0;
}

img.item-center {
  display: block;
  margin: 0 auto;
}

img.item-right {
  display: block;
  margin: 0 0 0 auto;
}

/* iFrame (video wrapper) specs */

.iframe-container {
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 */
  position: relative;
} 

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  width: 100%;
  height: 100%;
}

/* ----Row and Column Responsive Grid Section ----*/

.container-image-text {
  position: relative;
  text-align: center;
  color: white;
  font-size: x-large;
}

.center-image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create three equal columns that sits next to each other */
.column {
  flex: 33.3%;
  max-width: 33.3%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}