/* Body and General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(135deg, #e0f7fa, #c8e6c9);
}

/* Header */
header {
    display: flex;
    flex-wrap: wrap; /* Allows navigation bar to wrap */
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
/*     background-color: #2f855a; */
    background-color: #333;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

header .logo .material-icons {
    font-size: 1.8rem;
    color: #81c784;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allows links to wrap on small screens */
    gap: 20px;
    padding: 0;
    margin: 10px 0 0 0; /* Margin for better alignment when wrapped */
}

header nav ul li a:link, header nav ul li a:visited, header nav ul li a:active {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

header nav ul li a:hover {
    text-decoration: underline;
    color: white;
    font-weight: 600;
}



/* Hero Section */
.hero {
    text-align: center;
    color: white;
    padding: 100px 20px;
    background: linear-gradient(135deg, #388e3c, #1b5e20);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    text-decoration: none;
    background: #81c784;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.hero .btn:hover {
    background: #77b87a;
}




/* Pool Info Section Container */
.pool-info-container {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Centers content horizontally */
    justify-content: center;
    background: #f9f9f9;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* Restricts container width */
    margin: 0 auto; /* Centers the container on the page */
    text-align: center;
    gap: 15px; /* Space between Ticker and Pool ID */
}

/* Individual Pool Info Item */
.pool-info-item {
    display: flex;
    flex-direction: row; /* Aligns label and value horizontally */
    align-items: center; /* Vertically aligns content */
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Ensures wrapping for small screens */
    font-size: 1rem;
    word-wrap: break-word; /* Handles long text gracefully */
}

#pool-info {
    padding: 40px 20px;
    text-align: center;
}

#pool-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #388e3c;
}

.pool-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

/* Pool Info Section */
.pool-item {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 600px; /* Container's maximum width */
    width: 90%; /* Scales to smaller screens */
    margin: 0 auto; /* Centers the container */
    word-wrap: break-word; /* Wrap only when necessary */
}

/* Pool ID Styling */
#pool-id {
    white-space: nowrap; /* No wrapping unless necessary */
    overflow: hidden;
    text-overflow: ellipsis; /* Ellipsis for overflowed text */
}

.pool-item .label {
    font-weight: bold;
    color: #388e3c;
}

.pool-item button.copy-btn {
    background: #81c784;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
            word-wrap: break-word;
}

.pool-item button.copy-btn:hover {
    background: #66bb6a;
    transition: 0.3s ease;
}


/* Button */
.copy-btn {
    background: #81c784;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.copy-btn:hover {
    background: #66bb6a;
    transition: 0.3s ease;
}


/* Section */
section {
    padding: 60px 40px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Feature Cards */
.feature-cards {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center the cards horizontally */
    flex-wrap: wrap; /* Allows cards to stack on small screens */
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px; /* Fixed width for cards */
    text-align: center;
    flex: 1; /* Ensures equal spacing when wrapped */
    max-width: 100%; /* Prevents cards from overflowing */
}

.card .material-icons {
    font-size: 2rem;
    color: #388e3c;
    margin-bottom: 10px;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

#contact-form input,
#contact-form textarea,
#contact-form button {
    width: 100%;
    box-sizing: border-box;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form textarea {
    resize: none;
    height: 100px;
}

#contact-form button {
    background: #2f855a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

#contact-form button:hover {
    background: #256d4a;
    transition: 0.3s ease;
}

/* Footer */
footer {
    text-align: center;
    background-color: #2f855a;
    color: white;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stacks logo and nav vertically */
        align-items: flex-start; /* Aligns items to the left */
    }

    header nav ul {
        justify-content: flex-start; /* Aligns wrapped links to the left */
        margin-top: 10px;
    }

    .feature-cards {
        flex-direction: column; /* Stacks cards vertically */
        align-items: center; /* Centers the cards */
    }

    .card {
        margin-bottom: 20px; /* Adds spacing between stacked cards */
    }

    .pool-item {
        max-width: 100%; /* Let it occupy the full screen width */
    }

    .pool-info-container {
        width: 90%; /* Makes the container more fluid on small screens */
    }

    #pool-id {
        white-space: normal; /* Allows wrapping when necessary */
    }
}
