/* ===================== */
/*        Header         */
/* ===================== */
header {
    background-color: rgb(55, 114, 243);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    height: 106px;
    margin: 0 0;
    width: 100%;
    border-color: #4da6ff;
}

/* ===================== */
/*   Number Input Styles  */
/* ===================== */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===================== */
/*    Global Styles      */
/* ===================== */
html, body {
    margin: 0 0;
}


/* ===================== */
/*      Heading 1        */
/* ===================== */
h1 {
    margin-left: 20px;
    width: 200px;
    color:#f0f0f0;
    font-family: "Share Tech", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ===================== */
/*     Navigation Bar    */
/* ===================== */
nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    margin-right: 20px;
}

/* ===================== */
/*     Dropdown Setup     */
/* ===================== */


/* Hide dropdowns by default */
#exercise-dropdown,
#contact-dropdown {
    display: none;
    position: absolute;
    background-color: white;
    list-style-type: none;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 85px;
    cursor: pointer;
    top: 40px;
}

/* Show dropdown when .open class is added (for JS toggling) */


.social {
    text-decoration: none;
    outline: 0;
    color: rgb(40, 40, 40);
}

#exercise-dropdown li, #contact-dropdown li {
    color: rgb(40, 40, 40);
}

#exercise-dropdown::before, 
#contact-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    border: 10px solid transparent;
    border-bottom-color: white;
}

li:hover {
    background-color: #f0f0f0;
  }

/* Parent list items must be relative */
#Exercises,
#contactLi {
    position: relative;
    background-color: rgb(55, 114, 243);
    font-size: 20px;
    padding: 5px;
    list-style-type: none;
    box-sizing:border-box;
    width: 120px;
    color: white;
    font-family: "Share Tech", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#contactLi {
    margin-right: 20px;
}

#Exercises:hover, #contactLi:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: rgb(45, 100, 220);
    border-radius: 5px;
    transition: background-color 200ms ease, box-shadow 200ms ease;
}

/* Show dropdown on hover of the wrapper divs */
#divWrapper:hover #exercise-dropdown {
    display: block;
}

#contactWrapper:hover #contact-dropdown {
    display: block;
} 

/* ===================== */
/*     Calculator Box    */
/* ===================== */
#calculator-box {
    border: rgb(221, 220, 223) solid 0.8px;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    width: 300px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    background-color: white;
    box-shadow: rgb(221, 220, 223) 2px 3px;
}

/* ===================== */
/*        Button         */
/* ===================== */
button {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    display: block;
    margin: 0 auto 10px auto;
    background-color: rgb(55, 114, 243);
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 4px lightblue;
}


/* ===================== */
/*     Tagline Styling   */
/* ===================== */
.tagline {
    font-size: 50px;
    text-align: center;
    margin: 20px auto;
    margin-top: 100px;
    margin-bottom: 30px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900px;
    font-style: normal;
}

/* ===================== */
/*   Form Field Spacing  */
/* ===================== */
#exercise-type,
#speed,
#Calories.dis2,
#weight,
#hours,
#minutes{
    margin-left: 5px;
    
}

#speed {
    margin-bottom: 10px;
}

/* ===================== */
/*     Additional Form   */
/*       Styling         */
/* ===================== */
.dis2 {
    margin-top: 20px;
    padding-top: 20px;
    font-family: "Share Tech", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    
}

h3 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#exercise-type {
   align-self: left;
   margin-top: 2px;
}

/* ===================== */
/*      Input Fields     */
/* ===================== */
.input {
    padding: 20px;
    box-sizing: border-box;
    width: 300px;
    border-radius: 5px;
    border: 1px rgb(202, 202, 203) solid;
    box-shadow: 0 2px 4px rgb(202, 202, 203);
}

#hours, #minutes {
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px rgb(202, 202, 203) solid;
    box-shadow: 0 2px 4px rgb(202, 202, 203);
    margin-top: 5px;
}

#hours {
    width: 110px
}

#minutes {
    width:105px
}

/* ===================== */
/*  Calories & Distance   */
/* ===================== */
.dis2 , #Calories {
    align-self: flex-start;
    margin-left: 5px;
    margin-bottom: 5px;
    font-family: "Share Tech", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;

}

/* ===================== */
/*      Section 2        */
/* ===================== */
#section2 {
    margin-top: 100px;
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100vh;
}

/* ===================== */
/*      Section 3        */
/* ===================== */

#section3 {
    margin-top: 100px;
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 100vh;
}

/* ===================== */
/*       Animations       */
/* ===================== */
.hidden {
    opacity: 0;
    transition: all 2s ease-out;
    filter: blur(5px);
    transform: translateX(-100%);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* ===================== */
/*     Paragraph 2       */
/* ===================== */
.p2 {
    width: 700px;
    text-align: center;
    word-spacing: 4px;
    line-height: 150%;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900px;
    font-style: normal;
    font-size: 20px;
    font-style: italic;
    letter-spacing: 1.5px;
    white-space: wrap;
}

.p3 {
    width: 700px;
    text-align: center;
    word-spacing: 4px;
    line-height: 150%;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900px;
    font-style: normal;
    font-size: 20px;
    font-style: italic;
    letter-spacing: 1.5px;
    white-space: wrap;
}

h2 {
    font-size: 50px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900px;
    font-style: normal;
}

/* ===================== */
/*       Footer          */
/* ===================== */
footer {
    background-color: rgb(55, 114, 243);
    color: #f5f5f5;
    padding: 40px 20px;
    font-family: "Share Tech", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  
  .footer-left,
  .footer-right {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-left {
    text-align: left;
  }
  
  .footer-right {
    text-align: right;
  }
  
  .footer-text {
    margin: 5px 0;
    font-size: 14px;
    color: #ccc;
    font-family: "Share Tech", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  .Email {
    text-decoration: none;
    color: #4da6ff;
  }

  .Email:hover {
    color: #b3c7ff;
  }
  
  .footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-family: "Share Tech", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .footer-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
  }
  
  .footer-links a:hover {
    color: #b3c7ff;
    text-decoration: none;
  }
  
  /* Responsive adjustments */
/* Responsive adjustments for small screens and iPhone SE */
@media (max-width: 375px), 
       (max-device-width: 375px) and (max-device-height: 667px) and (-webkit-device-pixel-ratio: 2) {
    
    header {
        width: 100%;
        padding: 18px 6px;
    }

    h1 {
        margin-left: 5px;
        width: 19%;
        font-size: 32px;
        font-weight: 400;
        font-style: normal;
    }

    nav {
      width: 100%;
      margin-right: 20px;
  }

    #exercise-dropdown,
    #contact-dropdown {
        padding: 10px;
        min-width: 30px;

        top: 40px;
        width: 20px;
    }

    #Exercises,
    #contactLi {
        font-size: 20px;
        padding: 10px;
        width: 80px;
    }

    #contactLi {
        width: 100%;
        margin-right: 0px; 
    }

    .hidden {
      opacity: 0;
      transition: all 2s ease-out;
      filter: blur(5px);
      transform: translateX(-100%);
  }
  
  .show {
      opacity: 1;
      filter: blur(0);
      transform: translateX(0);
  }

    

    footer {
        width: 100%;
        padding: 18px 6px; /* Slightly reduced padding for better fit */
    }
    .footer-container {
        width: 100%;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 8px; /* Slightly reduced gap */
    }

    .footer-left,
    .footer-right {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        gap: 8px; /* Slightly reduced gap */
        flex-wrap: wrap;
    }

    .footer-text {
        font-size: 11px; /* Slightly smaller font for fit */
    }

}

@media (max-width: 480px) {

  header {
    width:100%;
  }
    #Exercises,
    #contactLi {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        padding: 8px 12px;
        width: auto;
        text-align: center;
    }

    #contactLi {
        margin-right: 0;
    }

    .tagline {
      font-size: 30px;
      margin-top: 60px;
      margin-bottom: 20px;
    }
  
    .tagline {
      margin-top: 100px;
    }

    .hidden {
      opacity: 0;
      transition: all 2s ease-out;
      filter: blur(5px);
      transform: translateX(-100%);
  }
  
  .show {
      opacity: 1;
      filter: blur(0);
      transform: translateX(0);
  }
  
  
    h1 {
      font-size: 26px;
      width: auto;
      margin-left: 10px;
    }
  
    h2 {
      font-size: 32px;
    }
  
    .p2,
    .p3 {
      font-size: 16px;
      width: 90%;
      margin: 0 auto;
    }
  
    .footer-text {
      font-size: 10px;
    }
  
    #section2,
    #section3 {
      display: grid;
      width:100%;
      height: 50svh;
    }
  
    #calculator-box {
      width: 300px;
      margin-top:20px;
  }
  
    
  
    .p2,
    .p3 {
      width: 90%;
      font-size: 16px;
      text-align: center ;
      margin: 0 auto 20px auto ;
    }
  
    h2 {
      font-size: 28px;
      text-align: center;
    }
  
    h3, #exercise-type {
      font-size: 20px;
      text-align: center;
    }
  
    #Calories {
      font-size: 16px;
      width: 100%;
    }
  
}