/* styles.css */

/* Colors from logo
Blue: #1A203E
Yellow: #EADB51 */

/* General Styles for Body and Layout */

html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    max-width: 1600px;

    background-color: rgba(128, 128, 128, 0.2); /* Less opaque gray background */
    height: 100vh;
    /* margin: 0; */
    background-image: 
      radial-gradient(circle at 30% 30%, rgba(26, 32, 62, 0.6) 10%, rgba(26, 32, 62, 0) 30%), 
      radial-gradient(circle at 50% 70%, rgba(26, 32, 62, 0.5) 20%, rgba(26, 32, 62, 0) 40%),
      radial-gradient(circle at 80% 10%, rgba(26, 32, 62, 0.6) 10%, rgba(26, 32, 62, 0) 30%),
      radial-gradient(circle at 20% 50%, rgba(26, 32, 62, 0.4) 25%, rgba(26, 32, 62, 0) 50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

header {
    /* background-color: #1A203E; */
    /* background: radial-gradient(circle, #1A203E, #3E497A);*/
    background: linear-gradient(135deg, #1A203E, #3E497A);
    color: #EADB51;
    padding: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Distribute space between logo and title */
    align-items: center; /* Vertically center items in the header */
}

header .logo {
    flex-shrink: 0; /* Prevents logo from shrinking */
}

header .site-title {
    text-align: center;
    flex-grow: 1; /* Allow the title area to take up the remaining space */
}

header .site-title h1 {
    font-size: 2.5em;
    margin: 0;
}

header .site-title p {
    margin-top: 5px;
    font-size: 1.1em;
}

.absolute-img{
    position: absolute;
    top: 50px;
}

.two-columns{
    display: flex; /* Activates flexbox */
    align-items: center; /* Align items vertically in the center */
    gap: 1rem; /* Adds space between the items */
}


nav {
    margin-top: 20px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Centers the navigation items */
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #EADB51;
    text-decoration: none;
    position: relative;
    padding: 5px 0;  /* Add padding to create space for underline */
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #EADB51;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Section Styles */
h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #1A203E;
}

section {
    padding: 20px;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
}

section#home {
    /* background-color: #EADB51; */
    background: linear-gradient(135deg, rgba(234, 219, 81, 0.75), rgba(220, 203, 74, 0.75));
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.product-item {
    margin-bottom: 20px;
}

/* Form Styles */
form {
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

form input, form textarea, form button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form input, form textarea {
    font-size: 1em;
}

form button {
    background-color: #1A203E;
    color: #EADB51;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
}

form button:hover {
    background-color: #002244;
}

form label {
    font-size: 1.1em;
    margin-bottom: 5px;
    display: block;
}

/* General Section Styling */
footer {
    background-color: #1A203E;
    color: #EADB51;
    text-align: center;
    padding: 20px 0px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #EADB51;
    text-decoration: none;
}

/* Ensure the tiles take full width */
.product-grid {
    display: block;
  }
  
  .product-tile {
    width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 16px;
  }
  
  /* Hide checkboxes */
  .toggle-checkbox {
    display: none;
  }
  
  /* Style the header */
  .tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    user-select: none;
  }
  
  .tile-header h3 {
    margin: 0;
  }
  
  .toggle-icon {
    font-size: 1.5rem;
    color: #007bff;
    transition: transform 0.3s ease;
  }
  
  /* Hide content by default */
  .tile-content {
    display: none;
    padding: 16px;
  }
  
  /* Expand the tile when checkbox is checked */
  .toggle-checkbox:checked + .tile-header + .tile-content {
    display: block;
  }
  
  /* Rotate icon when expanded */
  .toggle-checkbox:checked + .tile-header .toggle-icon {
    transform: rotate(45deg);
  }

  .hamburger-menu {
    display: none;
  }


  .expandable-container {
    display: block;
    cursor: pointer;
    width: auto;
  }
  
  .expand-toggle {
    display: none; /* Hide the checkbox */
  }
  
  .expandable-content {
    transition: max-height 0.3s ease, padding 0.3s ease;
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }
  



@media (max-width: 768px) {

    /* Mobile navigation bar */
    nav ul{
        /* margin: 25px 0px; */
        display: none;

        li{
            margin-top: 5px;
            margin-bottom: 5px;
            text-align: center;

            a{
                display: block;
                width: 100%;
                padding: 10px;
            }
        }
    }

    nav .expandable-content > ul {
        display: flex;
        flex-direction: column;
    }

    .expand-toggle:checked + .expandable-content {
        max-height: 425px; /* Adjust to desired height */
        padding: 10px; /* Adjust to desired padding */
        /* position: fixed; */
        /* background-color: rgba(128, 128, 128, 1); */
      }

    .hamburger-menu {
        display: block;
        font-size: 24px;
        border: 2px solid #EADB51;
        border-radius: 10px;
        width: 36px;
        margin: auto;
        cursor: pointer;
        padding: 1px 3px 3px 3px;
    }

    .two-columns {
      flex-direction: column; /* Switch to column layout */
      align-items: flex-start; /* Align items to the start */
    }
  
    .two-columns img {
      width: 80%; /* Adjust image size for mobile */
    }
}

/* Styles for screens smaller than 500px */
@media (max-width: 1265px) {
    .absolute-img {
        position: static;
        text-align: center;
    }
  }

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1A203E;
    color: #EADB51;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none; /* Hidden by default */
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

#scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
