/*
 * ========================================
 * Global reset and box-sizing
 * ========================================
 */
 @font-face {
  font-family: CUR;
  src: url('cur.ttf') format('type');
  font-weight:lighter;
}
@font-face {
  font-family: SUB;
  src: url('MAIN.otf') format('opentype');
  font-weight: normal;
}
@font-face {
  font-family: MAIN;
  src: url('birds.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: AMIGH;
  src: url('amigh.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: CIN;
  src: url('cinema\ sunday\ demo\ font.otf') format('opentype');
  font-weight: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/*
 * ========================================
 * Body styles
 * ========================================
 */
body {
    /* Set padding equal to the combined height of both navbars. */
    padding-top: 95px;
}

/*
 * ========================================
 * Universal list styles
 * ========================================
 */
ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

/*
 * ========================================
 * Main navigation bar styles
 * ========================================
 */
.mainnav {
    background-color: rgb(225, 181, 199);
    border-radius: 0 0 10px 10px;
    position: fixed;
    top: 0;
    left: 0; /* Align to the left edge of the viewport */
    width: 100%;
    z-index: 100;
    box-shadow: none;
}

.mainnav > ul > li > a {
    color: rgb(146, 37, 75);
    text-decoration: none;
    display: block;
    text-shadow: 1px 1px 2px rgb(255, 255, 255);
    padding: 15px 10px;
    transition: color 0.4s ease;
    position: relative;
}

.mainnav .email h4 {
    font-family: AMIGH, sans-serif;
    color: rgb(146, 37, 73);
    text-shadow: 1px 1px 2px rgb(255, 255, 255);
    margin: 0;
    padding: 15px 10px;
    transition: color 0.4s ease;
}

/* Rest of mainnav styling... */
.mainnav .about > a,
.mainnav .projects > a {
    font-family: SUB, sans-serif;
    transition: color 0.4s ease;
}

.mainnav .about a:hover,
.mainnav .projects > a:hover {
    color: rgb(255, 255, 255);
    background-color: transparent;
}

.mainnav .dropdown {
    position: relative;
}

.mainnav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: rgb(236, 203, 203);
    box-shadow: 0 8px 16px 0 rgba(255, 255, 255, 0.2);
    z-index: 1;
    border-radius: 10px;
    font-family: SUB, sans-serif;
}

.mainnav .dropdown-content a {
    color: rgb(133, 54, 54);
    padding: 12px 16px;
    text-align: left;
    display: block;
    margin: 5px 10px;
    text-shadow: none;
    transition: background-color 0.3s, padding 0.3s;
}

.mainnav .dropdown-content a:hover {
    background-color: #975363;
    color: white;
    border-radius: 10px;
    padding: 12px 16px;
}

.mainnav .dropdown:hover .dropdown-content {
    display: block;
}

/*
 * ========================================
 * Sub navigation bar styles
 * ========================================
 */
.subnav {
    background-color: #8ca18d;
    position: fixed;
    top: 45px; /* Position it below the main nav bar */
    left: 0; /* Align to the left edge of the viewport */
    width: 100%;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0; /* Remove border-radius */
       font-family: amigh;
}

.subnav ul {
    justify-content: center;
    padding: 10px 0;
    
}

.subnav li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    
}

.subnav li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/*
 * ========================================
 * Other styles
 * ========================================
 */
#myVideo {
    position: fixed;
    right: 3;
    bottom: 25;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
    transform: scale(1.05);
}
body{
    background-image: url(space.gif);
    background-size: contain;
}
canvas {
  display: block;        /* Ensures the canvas behaves as a block element */
  margin-left: auto;     /* Centers horizontally by pushing equal margins */
  margin-right: auto;
 
 border-radius: 10px;
  
}

h1{
    text-align: center;
    color: rgb(132, 98, 52);
}
h2{
text-align: center;
 color: rgb(255, 255, 255);
}
body{
    background-image: url(water.gif);
}
/* --- Mobile adjustments --- */
@media (max-width: 768px) {

  /* Stack main nav and subnav links vertically */
  .mainnav ul, .subnav ul {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
  }

  /* Make nav links larger for touch */
  .mainnav a, .subnav a {
    padding: 12px 15px;
    font-size: 1rem;
  }

  /* Video background adjustment */
  #myVideo {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
  }

  /* Canvas scales properly */
  canvas {
    width: 95%;
    height: auto;
  }

  /* Headings scale down */
  h1 {
    font-size: 1.5rem;
    width: 90%;
  }

  h2 {
    font-size: 1.2rem;
    width: 90%;
  }

  /* Flex wrappers stack vertically */
  .flex-wrapper, .flyers, .mocks, .flyer-descriptions {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    align-items: center;
  }

  /* Adjust paragraphs */
  p {
    width: 90%;
    font-size: 0.9rem;
  }

}
