*{
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Nav bar */
nav {
    height: 60px;
    background-color: rgb(92, 217, 255);
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;  
}
.links-container {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    border-radius: 10px;
}

nav a:hover {
    background-color: rgb(0, 53, 89);
}

nav i {
    fill: white;
}

#sidebar-active {
    display: none;
}

.open-sidebar-button, .close-sidebar-button {
    padding: 0 20px;
    display: none;
}

@media(max-width: 450px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 250px;
        background-color: rgba(50, 50, 50, 0.8);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }
    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }
    .open-sidebar-button, .close-sidebar-button {
        display: block;
    }
    #sidebar-active:checked ~ .links-container {
        right: 0;
    }
    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
        background-color: rgba(0, 0, 0, 0.5);
    }
}


header {
    background-color: rgba(92, 217, 255);
    color: white;
    padding: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

h1 {
    margin-top: 10px;
}

.description{
    font-family: Arial, Helvetica, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    font-size: 18px;
    text-align: center;
    padding: 10px;
}

/*Products*/
.products {
    text-align: center;
    padding: 20px;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 15px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.product-card img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin-right: 15px;
    
}
.product-info {
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}
.product-info h3 {
    margin: 0;
    color: rgb(76, 175, 80);
}
.product-info p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.product-card a{
    height: 100%;
    width: 100%;
    padding: 0 20px;
    align-items: center;
    text-decoration: none;
    color: white;
    border-radius: 10px;
    background-color: rgb(92, 217, 255);
    margin-top: 10px;
}
.product-card a:hover{
    background-color: rgb(0, 53, 89);
}

/*Team section*/
.team {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
}

.team h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;  
}

.team img {
    width: 350px;  /*Image size here*/
    height: auto;
    border-radius: 10px;
}

.team p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: rgb(0, 0, 0);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
    margin-bottom: 15px;
}

/*Market Section*/
.markets {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    border-color: rgb(0,0,0);
}
.markets .images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.markets .images div {
    background-color: rgba(255, 255, 255); 
    border: 2px solid rgb(92, 216, 255); 
    border-radius: 10px;
    padding: 15px;
    width: 250px;  
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
.markets .images img {
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}
.markets .market-message {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}
.markets .market-message div {
  background-color: rgba(255, 255, 255);
  border: 2px solid rgb(76, 175, 80);
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  text-align: center;
}

.markets .market-message div a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  margin-top: 15px;
  text-decoration: none;
  color: white;
  background-color: rgb(92, 217, 255);
  border-radius: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
.markets .market-message div a:hover {
    background-color: rgb(0, 53, 89);
}


/*Total crips packet recycled type effect*/
.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;     
    justify-content: center;   
    margin: 20px auto;
    padding: 40px;
    background-color: rgb(180, 222, 242);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 400px;        
}

.counter-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
}
.counter {
    font-size: 3em;
    font-weight: bold;
    color: rgb(52, 152, 219);
}
@media(max-width: 630px){
    .counter-container {
        display: flex;
        flex-direction: column;
        align-items: center;     
        justify-content: center;   
        margin: 20px auto;
        margin-right: 10px;
        margin-left: 10px;
        padding: 40px;
        background-color: rgb(180, 222, 242);
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-width: 400px;        
    }
}
/*Savour Team About Us Page*/
.team {
    padding: 5px;
    text-align: center;
    margin-right: 40px;
    margin-left: 40px;
}
.team-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-content: center;
}
.member {
    padding: 5px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.member img {
    width: 100%;
    border-radius: 5px;
}
@media(max-width: 630px){
    .team {
        padding: 5px;
        text-align: center;
        margin-right: 5px;
        margin-left: 5px;
    }
    .team-members {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    .member img {
        width: 100%;
        height: auto;
    }
}



/* Timeline*/
.timeline {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 30px auto;
    /*background-color: rgba(92, 217, 255, 0.3);*/
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: grey;
    transform: translateX(-50%);
    z-index: -1;
}
.blocks {
    margin-top: 50px;
}
.block {
    width: calc(50% - 40px);
    background: white;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
    margin-bottom: 50px;
}
.block:nth-child(odd) {
    float: left;
    clear: both;
    transform: translateX(-10px);
}
.block:nth-child(even) {
    float: right;
    clear: both;
    transform: translateX(10px);
}
.block::before { /*Timeline Circle*/
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgb(52, 152, 219);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px white;
}
.block:nth-child(odd)::before {
    right: -30px;
}
.block:nth-child(even)::before {
    left: -30px;
}
header h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}
header p { /* Timeline date */
    position: absolute;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 15px;
    background: rgb(255, 255, 255,);
    color: rgb(0, 0, 0);
}
/* Date position */
.block:nth-child(odd) header p {
    right: -165px;
    top: 10px;
}

.block:nth-child(even) header p {
    left: -165px;
    top: 10px;
}
/* Clear floats */
.blocks::after {
    content: "";
    display: table;
    clear: both;
}

/* Image Container - Positioned Next to the Timeline */
.image-container {
    display: flex; /* Use flexbox to arrange images side by side */
    gap: 10px; /* Space between images */
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-30%);
    width: auto;
}
/* Odd Blocks - Images on Left */
.block:nth-child(odd) .image-container {
    left: calc(100% + 40px); /* Image container positioned to the right of the timeline */
}
/* Even Blocks - Images on Right */
.block:nth-child(even) .image-container {
    right: calc(100% + 40px); /* Image container positioned to the left of the timeline */
}
/* Image Styling */
.image-container img {
    width: auto; /* Control the width of each image */
    height: auto;
    max-height: 180px; /* Ensures images don't stretch vertically */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Responsive Timeline*/
@media(max-width: 630px){
    .timeline::before{
        left: 20px;
        transform: translateX(0);
    }
    .blocks::before{
        left: 20px;
        transform: translateX(0);
    }
    .blocks{
        padding-left: 20px;
        margin-right: 20px;
    }
    .block{
        width: 90%;
        margin-right: 15px;
        margin-left: 15px;
    }
    .block:nth-child(odd)::before{
        left: -31px;
        margin-right: 5px;
    }
    .block:nth-child(even){
        left: 18px;
    }
    .block:nth-child(odd){
        left: 18px;
    }
    header p{
        position: static;
        border: none;
        margin-bottom: 10px;
    }
    .image-container {
        position: relative; /* Adjusted for mobile */
        top: auto;
        transform: translateY(0);
        width: 100%; /* Let it fill up the available space */
        justify-content: space-evenly; /* Distribute images evenly */
    }
    .image-container img {
        max-width: 100%;
        max-height: 120px;
    }
    .block:nth-child(odd) .image-container {
        left: 0; /* Adjusted for mobile */
    }
    .block:nth-child(even) .image-container {
        right: 0; /* Adjusted for mobile */
    }
}

/*Footer*/
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin: 0 15px;
    font-size: 40px; 
    color: white; 
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
    color: rgb(92, 216, 255);
}

