@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&display=swap');

*{
    font-family: "Baskervville", serif;
    font-weight: 600;
    font-style: normal;
    text-align: justify;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.br_italic {
    font-family: "Baskervville", serif;
    font-weight: 400;
    font-style: italic;
  }

body {
    background-attachment: fixed;
    background-color: black;
    overflow: hidden;
    padding: 5px;
    margin: 0;
    height: 100vh;
}

nav {
    background: #222;
    color: white;
    display: flex;
    justify-content: space-between;
    align-content: center;
    padding: 1rem 1.75rem;
    border-radius: .25rem;
}

header{
    width: 100%;
}

section {
    padding: .5rem;
}

#backimg {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

#backimg1::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(assets/path2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: invert(1);
    opacity: .25;
    z-index: -1; 
}

#active-category-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #333;
  }

#logopic{
    display: flex;
    max-width: 100%;
}

.wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100vh;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
    overflow-y: auto;
}
.nav-links {
    margin: auto;
    display: flex;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 2%;
    margin-bottom: 2%;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
}

.nav-links a:hover {
    background: #444;
    transition-duration: 200ms;
    scale: 1.2;
    border-radius: 4px;
}

.landing_dump {
    display: flex;
    flex-basis: auto;
}

.landing_dump > div {
    margin: 1rem;
    width: 50%;
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
}
.product-text {
    position: absolute;
    background-color: #4444448c;
    color: rgb(253, 255, 255);
    font-size: large;
    margin: .75erm;
    text-decoration: none;
}

.blurbbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    border-radius: .25rem;
    padding: 1.5rem;
    font-size: 1.25rem;
}

.photobox {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
}

.photobox img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease-in-out;   
  }

  .photobox img.visible {
    opacity: 1;
    z-index: 1;
    
  }
.clag-target{
    text-align: center;
    padding: 2rem;
    font-weight: 1500;
}
  .minimark {
    margin: auto;
    width: 300px;
    align-self: center;
  }

.infodump{
    margin: 0 auto;
    font-size: .66rem;
    padding: 2px;
    width: 50%;
}

.category-group {
    margin-bottom: 3rem;
  }

  .product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .product-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    width: 250px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  }
  .product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }
  .product-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
  }
  .brand {
    font-size: 0.9rem;
    color: #666;
  }
  .price-stock {
    margin-top: 0.5rem;
    font-size: 0.95rem;
  }
  /* -----------------------------------------------------------------------------------------------------------*/
@media (max-width: 768px) {
    body {
        background-size: cover; /* Ensure background scales properly */
        background-position: center center; /* Center the image */
        overflow: hidden; /* Prevent body scrolling */
    }

    .wrapper {
        height: 100vh; /* Keep the wrapper height the same as the viewport */
        overflow-y: auto; /* Allow scrolling inside the wrapper */
        width: 90%; /* Reduce the wrapper width */
        margin: 0 auto; /* Center the wrapper */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    #infodump {
        width: auto; /* Make inner elements full width */
        font-size: 1rem; /* Adjust font size */
        text-align: center; /* Center-align text */
    }

    .title_bump {
        font-size: 4vh; /* Adjust the title size */
        text-align: center; /* Ensure title stays centered */
    }

   
}

/* Media query for devices smaller than 480px (small phones) */
@media (max-width: 480px) {
    .wrapper {
        width: 100%; /* Make wrapper occupy the full width */
        padding: 10px; /* Adjust padding */
    }

    #infodump {
        font-size: 0.9rem; /* Further adjust font size for readability */
    }

    .title_bump {
        font-size: 3.5vh; /* Further reduce title size */
    }
   
    
}