/* 
  STYLES FOR IYPT USA WEBSITE
  This file controls HOW the site looks: colors, spacing, and layout.
  If you want to change how big things are, what color they are,
  or how they are arranged, you will usually do it here.
*/
/* Overall page setup: use a nice font and stack content vertically */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Main content area below the top navigation bar */
main {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  
}

/* Reset margins and padding so the page looks consistent in all browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base settings for the entire page (font and sizing) */
html {
    font-size: 62.5%;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* List and link defaults: remove bullets and underlines from links */
li {
    list-style: none;
}

a {
    text-decoration: none;
}

/* Thin line under the top header bar */
.header{
    border-bottom: 1px solid #E2E8F0;
}

/* Top navigation bar: logo on left, links on right */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

/* "Hamburger" menu icon for phones and tablets (three stacked lines) */
.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #101010;
}

/* Styles for the navigation menu links and logo at the top */
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    margin-left: 5rem;
}

.nav-link{
    font-size: 1.8rem;
    font-weight:600;
    color: #475569;
}

.nav-link:hover{
    color: #154bbf;
    transition: color 0.3s ease;

}

.nav-logo {
    font-size: 2.1rem;
    font-weight: 700;
    color: #154bbf;
}

/* Big blue banner at the top with the main title, message, and buttons */
.banner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #154bbf;
    background: linear-gradient(0deg,rgba(21, 75, 191, 1) 0%, rgba(0, 94, 255, 1) 100%);
    padding: 50px;
}
 
/* Text styles inside the banner (large title and smaller description) */
.banner h1{
    font-size: clamp(24px, 2vw, 48px);
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.banner p{
    font-size: clamp(14px, 1vw, 20px);
    color: white;
}

/* Group the two main buttons in the banner side-by-side */
.Banner-button-group{
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Styles for the red "Join the Team" button and white "Support the Mission" button */
.join{
  padding: 10px 20px;
  border-radius: 5px;
  background-color: red;
  color: white;
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.join:hover{
    background-color: rgb(176, 0, 0);
    transition: all .8 ease-in;     
     
}

.support{
  padding: 10px 20px;
  border-radius: 5px;
  background-color: white;
  color: #154bbf;
  font-weight: 500;
  font-size: 16px;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.support:hover {
  background-color: #e0e6ff;
  color: #002f9e;
}

/* Section that explains the mission of the tournament */
.Mission-Statement{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    color: #101010;
    padding: 50px;
}

.Mission-Statement h1{
    font-size: clamp(24px, 2vw, 35px);
    font-weight: 600;
    color: black;
    margin-bottom: 10px;
}

.Mission-Statement p{
    font-size: clamp(14px, 1vw, 15px);
    color: black;
}

/* Background area behind the three white information boxes */
.containers{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: whitesmoke;
  padding: 40px;
}

/* Row of three white boxes. On big screens they sit side by side; on small screens they stack. */
.block-group{
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

/* Each individual white box (card) for students, teachers, and 2026 problems */
.Block-1,
.Block-2,
.Block-3 {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* When the mouse goes over a card, make it lift slightly with a shadow */
.Block-1:hover,
.Block-2:hover,
.Block-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

/* Text inside each card: blue titles and dark descriptions */
.block-group h1 {
  font-size: clamp(18px, 2vw, 24px);
  color: #154bbf;
  margin-bottom: 10px;
}

.block-group p {
  font-size: clamp(14px, 1vw, 16px);
  color: #333;
  margin-bottom: 20px;
}

/* Blue button at the bottom of each card. 
   "margin-top: auto" pushes the button to the bottom so all buttons line up. */
.block-group a {
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #154bbf;
  color: white;
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto;
  align-self: center;
}

.block-group a:hover {
  background-color: #0037a3;
}

/* Section with light blue background inviting people to follow the 2025 team */
.Meet{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #cfefff;
    color: #101010;
    padding: 50px;
}

.Meet h1{
    font-size: clamp(24px, 2vw, 35px);
    font-weight: 600;
    color: black;
    margin-bottom: 10px;
}

.Meet p{
    font-size: clamp(14px, 1vw, 15px);
    color: black;
    margin-bottom: 10px;
}
/* Two buttons in the Meet section: one for the PDF, one for Instagram */
.meet-row{
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.meet-row a{
    background-color: #154bbf;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    
}

/* Special style: make the Social Media button red while the other stays blue */
.meet-row a.social-meet{
    background-color: red;
}


.meet-row a:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Dark blue section at the bottom where people can click to contact you */
.Contact{
    background-color: rgb(10, 33, 60);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #101010;
    padding: 50px;
    margin-bottom: 0;
}

.Contact h1{
    font-size: clamp(24px, 2vw, 35px);
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin-bottom: 10px;
}

.Contact p{
    font-size: clamp(14px, 1vw, 15px);
    color: white;
    margin-bottom: 10px;
}

/* Red "Contact us" button */
.Contact-button{
   background-color: red;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Small footer bar at the very bottom of the page with your name */
footer{
  background-color: navy;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: auto;

}

@media only screen and (max-width: 768px) {
    /* 
      MOBILE STYLES
      Everything inside this section changes the layout on smaller screens (phones/tablets).
      If the site looks strange on a phone, check this section.
    */
    /* Turn the top navigation into a dropdown-style menu on small screens */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow:
            0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 2.5rem 0;
    }

    /* Show the hamburger menu icon on small screens */
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        -webkit-transform: translateY(8px) rotate(45deg);
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        -webkit-transform: translateY(-8px) rotate(-45deg);
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Stack the three cards on top of each other on small screens, instead of side-by-side */
    .block-group {
    flex-direction: column;
    align-items: center;
   }

    /* On small screens, make each card take up most of the screen width */
  .Block-1,
  .Block-2,
  .Block-3,
  .Block-4,
  .Block-5 {
    width: 90%;
    max-width: 350px;
  }
}