.EasyMedia {
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;

}

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none !important;
  cursor: default !important;
}

.day p, #day1high p, #day1low p {
  color: #403d38 !important;
  text-decoration: none !important;
}


.albert-sans-regular {
  font-family: "Albert Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}




#spinner {
    width: 200px;
    z-index: 10;
    position: fixed;           /* Fix relative to viewport */
    top: 30%;                  /* 50% from the top */
    left: 50%;                 /* 50% from the left */
    transform: translate(-50%, -50%); /* Initial centering transform */
    animation: spinner 1s alternate infinite; /* Combine animation properties */
  }
  
  @keyframes spinner {
    from {
      transform: translate(-50%, -50%) scale(1);
    }
    to {
      transform: translate(-50%, -50%) scale(1.1);
    }
  }
h1 {
    font-family: "Albert Sans", sans-serif;
    font-weight: 100;
    font-size: 180px;
    margin: 0%;
    color: #403d38;

}

h3 {
    font-family: "Albert Sans", sans-serif;


}

h4 {
    font-family: "Albert Sans", sans-serif;
    font-weight: 400;
    margin: 0%;
    color: #403d38;
    font-size: x-large;
}

h5 {
    font-family: "Albert Sans", sans-serif;
    font-weight: 400;
    margin: 0%;
    color: #403d38;
    font-size: larger;
}


p, label, select {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 200;
    margin: 0%;
    color: #403d38;}

hr {
    color: #57534c;
    max-width: 400px;
}

sup {
    font-size: 50px;
    vertical-align: top;
}

.line {
    justify-content: center;
}

html {
    background: linear-gradient(90deg, rgba(233,221,209,1) 0%, rgba(242,237,232,1) 50%, rgba(240,235,230,1) 100%);
}

.main-container {
    width: 100vw;
    height: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    display: flex;
}

.second-container {
    font-family: "Albert Sans", sans-serif;
    width: 500px;
    max-width: 100%;
    height: 100vh;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    display: flex;
    border-radius: 5px;
}

.top-bar {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

}

.menu-bar {
    width: 100vw;
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    background-color: #DDD1C6;
    position: fixed;
    bottom: 0;
    max-width: 100%;
}

.menu-buttons {
    width: 30px;
    height: 30px;
    display: block;

}





.weather-today {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    text-align: center;
    padding-bottom: 5%;
    flex-wrap: nowrap;
    position: relative;
}

.weather-forecast {
    width: 100%;
    max-width: 400px;
    margin-bottom: 5%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    
}

#nine-am, #twelve-pm, #six-pm, #nine-pm {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.weekly-forecast {
    width: 90%;
    max-width: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.day {
    width: 100%;
    max-width: 400px;
    font-size: 16px;
    height: 35px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: left;
    align-items: center;
    border: none;
    transition-duration: 0.4s   
}
.day:hover {
    background-color: #DDD1C6;
    


}

#day1name, #day2name, #day3name, #day4name, #day5name, #day6name, #day7name {
    font-family: "Albert Sans", sans-serif;
    font-weight: 100;
    flex: 1 1 40%;
}

#day1icon, #day2icon, #day3icon, #day4icon, #day5icon, #day6icon, #day7icon {
    font-family: "Albert Sans", sans-serif;
    font-weight: 100;
    height: 25px;
    width: auto;
    flex: 1 1 40%;

}

#day1high, #day2high, #day3high, #day4high, #day5high, #day6high, #day7high {
    font-family: "Albert Sans", sans-serif;
    font-weight: 100;
    flex: 1 1 10%;
    font-size: 17px;
}

#day1low, #day2low, #day3low, #day4low, #day5low, #day6low, #day7low {
    font-family: "Albert Sans", sans-serif;
    font-weight: 100;
    flex: 1 1 10%;
    margin-left: 10px;
}

button {
    background-color: transparent;

}





#current {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

#todayimage {
    width: auto;
    height: 200px;
    object-fit: none;
    object-position: center;
    margin: -50px;
    vertical-align: top;

}
#weekly {
    width: auto;
    justify-content: space-evenly;

}

#location {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

#time-stamp {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}



#day1 {
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
    font-size: smaller;
    
}

#day2 {
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
    font-size: smaller;

}

#day3 {
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
    font-size: smaller;

}

#forecast-image {
    align-items: center;
    width: 50px;
    height: auto;
}

/* SECOND PAGE */

/* Today Temps  */

table.today-temps {
    width: 100%;
    height: 200px;
    text-align: center;
    border-top-left-radius: 10px;

  }
  table.today-temps td, table.today-temps th {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;
    width: 25%;
    border-radius: 10px;
    background-color: #e6e1da;

  }
  table.today-temps tfoot td {
    font-size: 14px;
    vertical-align: middle;
  }
  table.today-temps tfoot .links {
    text-align: right;
  }
  table.today-temps tfoot .links a{
    display: inline-block;
    background: #1C6EA4;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 5px;
  }

  /* Today Details */

  table.today-details {
    width: 100%;
    height: 200px;
    text-align: center;
    border-top-left-radius: 10px;
  }
  table.today-details td, table.today-details th {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;
    border-radius: 10px;
    background-color: #e6e1da;

  }
  table.today-details tfoot td {
    font-size: 14px;
    vertical-align: middle;
  }
  table.today-details tfoot .links {
    text-align: right;
  }
  table.today-details tfoot .links a{
    display: inline-block;
    background: #1C6EA4;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 5px;
  }

  /* TABLE ELEMENTS */

  #table-high, #table-low, #table-morning, #table-today, #table-evening, #table-tonight  {
    width: auto;
    height: 50px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }

 #chance-rain, #chance-cloud, #humidity, #pressure, #wind-direction, #wind-average, #wind-gust {
    width: auto;
    height: 50px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
 }

  #table-images {
width: 60px;
object-fit: contain;
height: auto;
margin: -10px;
}

hr.table {
    border: #FFFFFF;
    border-top: dotted 1px;
    height: 1px;
    margin: 0%;
    padding-bottom: 5px;
    width: 20%;
}

















.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; /* ensures it appears on top */
  }
  
  .popup-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  
  .popup-content h2 {
    font-family: "Albert Sans", sans-serif;
    margin-bottom: 15px;
  }
  
  .popup-content button {
    font-family: "Albert Sans", sans-serif;
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #403d38;
    color: #fff;
    cursor: pointer;
  }
  
  .popup-content button:hover {
    background-color: #57534c;
  }





  .sun-circle {
    position: absolute;
    top: -100px;     /* Move it partially off-screen if you like */
    left: -100px;    /* so it peeks in from the corner */
    width: 300px;
    height: 300px;
    background-color: #FCE28B; /* Or your preferred shade of yellow */
    border-radius: 50%;
    z-index: -1;     /* Place it behind other content */
    box-shadow: 0 0 60px 20px #fce28ba8;
  }
























  .menu-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 20;
    cursor: pointer;
  }
  
  /* Bottom Sheet Modal Menu */
  .menu-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 66.66vh; /* Covers roughly 2/3 of the viewport */
    transform: translateY(100%);
    background-color: rgb(247, 243, 240);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-out, height 0.3s ease-out;
    z-index: 15;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .menu-modal.expanded {
    height: 100vh;
    transform: translateY(0);
    overflow-y: auto;
  }

  
  /* Show the modal by resetting transform */
  .menu-modal.show {
    transform: translateY(0);
  }
  
  /* Style the menu list */
  .menu-modal ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .menu-modal li {
    margin-bottom: 15px;
    font-family: "Albert Sans", sans-serif;
    font-weight: 400;
    margin: 0%;
    color: #403d38;
    margin-bottom: 30px;
  }
  
  .menu-modal li a {
    text-decoration: none;
    color: #403d38;
    font-size: 24px;
  }
  
  /* Close button inside the modal */
  .close-menu {
    background-color: #403d38;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  /* When the menu is open, push the main content upward */
  .main-container.menu-open {
    transform: translateY(-100px);  /* Adjust the value as needed */
    transition: transform 0.3s ease-out;
  }

  .menu-toggle img {
    width: 40px; /* Adjust as needed */
    height: auto;
  }





  #subPage {
    padding-top: calc(40px + env(safe-area-inset-top));
    box-sizing: border-box;
    text-align: left;
    width: 90%;
  }
  #subPage h2 {
    font-family: "Albert Sans", sans-serif;
    margin-bottom: 10px;
  }
  #subPage p {
    font-family: "Albert Sans", sans-serif;
    line-height: 1.5;
    font-weight: 400;
  }














  /* Both containers will animate opacity and a slight horizontal slide */
#menuMain, #subPage {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Initial state for main menu (visible) */
  #menuMain {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Initial state for sub-page (hidden offscreen and transparent) */
  #subPage {
    opacity: 0;
    transform: translateX(10px);
    display: none; /* keep it hidden until needed */
  }
  
  /* When active, sub-page fades in and slides into place */
  #subPage.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }
  
  /* When fading out, main menu fades out and slides left */
  #menuMain.fade-out {
    opacity: 0;
    transform: translateX(-10px);

  }











/* Contact us form */


  .contact-section {
    width: 90%;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1rem;
  }
  
  .contact-intro > * + * {
    margin-top: 1rem;
  }
  
  .contact-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
  }
  
  .contact-description {
    color: rgb(107 114 128);
  }
  
  .form-group-container {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-label {
    margin-bottom: 0.5rem;
  }
  
  .form-input,
  .form-textarea {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .form-input::placeholder,
  .form-textarea:focus-visible {
    color: #6b7280;
  }
  
  .form-input:focus-visible,
  .form-textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }
  
  .form-textarea {
    min-height: 120px;
  }
  
  .form-submit {
    width: 100%;
    margin-top: 1.2rem;
    background-color: #3124ca;
    color: #fff;
    padding: 13px 5px;
    border-radius: 0.375rem;
  }
  















  /* Detailed Forecast Modal Styles */
/* Modal fade animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.fade-in {
  animation: fadeIn 0.3s forwards;
}

.fade-out {
  animation: fadeOut 0.3s forwards;
}

/* The semi-transparent overlay behind the card */
.detailed-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start;  /* Align items at the top */
  padding-top: 20%;         /* Push the content down 10% from the top */
  z-index: 200;
}

/* The weather card styling */
.weather-card {
  background-color: rgb(247,243,240);
  position: relative;
  border-radius: 8px;
  max-width: 350px; /* or 400px, depending on your preference */
  width: 90%;
  padding: 20px;
  color: #403d38; /* your text color */
  font-family: "Albert Sans", sans-serif;
}

/* Top section (day, date, icon) */
.weather-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.weather-card-top .left-side {
  display: flex;
  flex-direction: column;
}
.card-day {
  font-size: 3rem; /* Sunday */
  margin: 0;
  font-weight: 400;
}
.card-date {
  font-size: 1rem;
  margin: 0;
}
.card-icon {
  width: 80px;
  height: auto;
}

/* Middle section (summary, big temps) */
.weather-card-mid {
  text-align: left;
  margin-bottom: 10px;
}
.card-summary {
  font-size: 1.2rem;
}
.card-temps {
  font-size: 4.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
}
.card-temp-divider {
  margin: 0 20px;
  color: #403d38;
  font-weight: 200;
  font-size: 3.5rem;

}
.card-temp-low {
  font-weight: 200;
}

.card-temp-high {
  font-weight: 500;
}

/* Bottom section: two rows of stats */
.weather-card-bottom {
  margin-bottom: 40px; /* so the arrow button doesn't overlap */
}
.weather-card-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-top: 10px;
  border-top: 1px black;
  border-bottom: transparent;
  border-left: transparent;
  border-right: transparent;
  border-style: solid;
}
.weather-card-col {
  flex: 1 1 25%; /* 4 columns in a row */
  text-align: center;
  margin-top: 10px;

}
.stat-label {
  font-size: 0.8rem;
  color: #57534c;
  margin: 0;
}
.stat-value {
  font-size: 1rem;
  margin: 2px 0 0 0;
  font-weight: 400;
}

/* Close arrow (or button) at bottom right corner */
.back-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  cursor: pointer;
  width: 30px;
  height: auto;
  z-index: 10;
}
