:root {
    --thm-font: "Inter", sans-serif;
    --signup: #1652f0;
    --text1: #262626;
    --text2: #86868e;
    --background-color: #ffffff;
    --search: #f4f4f4;
}

* {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: var(--thm-font);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}


.details-container {
    width: 100%;
    height: 100vh;
    display: flex;
    padding: 0px 60px;
    padding-top: 130px;
    overflow: auto;

     .detail-head {
            display: flex;
            align-items: center;
            gap: 20px;
            margin: 30px 0;
            padding: 20px;
            background-color: #fafafa;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        }

        .detail-image img {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 10px;
            border: 1px solid #ddd;
        }

        .detail-title h1 {
            font-size: 1.8em;
            margin: 0;
            color: #333;
        }

        .middle {
            margin: 20px 0;
            display: flex;
            gap: 15px;
        }

        .middle .buy,
        .middle .sell {
            flex: 1;
            padding: 12px 20px;
            font-size: 1.1rem;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .middle .buy {
            background-color: #28a745;
        }

        .middle .buy:hover {
            background-color: #218838;
            transform: translateY(-2px);
        }

        .middle .sell {
            background-color: #dc3545;
        }

        .middle .sell:hover {
            background-color: #c82333;
            transform: translateY(-2px);
        }
        
        .description{
            width: 100%;
            height: fit-content;
            padding: 5px 0px;
        }

        .middle i {
            margin-left: 8px;
        }

        p {
            font-size: 1rem;
            color: #444;
            margin: 10px 0;
        }

        p strong {
            color: #000;
        }

        /* Expires On */
        .expires-on {
            font-size: 1.1rem;
            color: #333;
            margin: 10px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Strong label styling */
        .expires-on strong {
            font-weight: 600;
            color: #007BFF;
        }

        /* Date styling */
        .expires-on span {
            font-size: 1.1rem;
            color: #555;
            font-weight: 400;
            padding-left: 5px;
            background-color: #f1f1f1;
            border-radius: 4px;
            padding: 2px 10px;
        }


        .status p {
            border-radius: 30px;
            padding: 2px 20px;
            font-weight: 600;
            display: inline-block;
            font-size: 0.95rem;
        }

        /* Active */
        .status.active p {
            color: green;
            background-color: lightgreen;
        }

        /* Inactive */
        .status.inactive p {
            color: goldenrod;
            background-color: #ffe5b4;
            /* Light orange */
        }

        /* Ended */
        .status.ended p {
            color: red;
            background-color: #ffcccc;
            /* Light red */
        }

        /* Total Staked */
        .total-staked {
            font-size: 1.1rem;
            color: #333;
            margin: 12px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Strong label styling */
        .total-staked strong {
            font-weight: 600;
            color: #28a745;
            /* Green for "staked" to give a positive feel */
        }

        /* Value styling */
        .total-staked span {
            font-size: 1.2rem;
            color: #333;
            font-weight: 700;
            padding-left: 5px;
            background-color: #e9f9e9;
            /* Light green background */
            border-radius: 6px;
            padding: 3px 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            /* Subtle shadow effect */
        }

        /* Expires In */
        .expires-in {
            font-size: 1.1rem;
            color: #333;
            margin: 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Strong label styling */
        .expires-in strong {
            font-weight: 600;
            color: #007bff;
            /* Blue color for the label */
        }

        /* Countdown timer styling */
        .expires-in #countdown {
            font-size: 1.2rem;
            font-weight: 700;
            color: #28a745;
            /* Default color for countdown */
            padding-left: 10px;
            background-color: #e9f9e9;
            /* Light green background */
            border-radius: 6px;
            padding: 3px 10px;
            min-width: 100px;
            /* Ensures the timer has a consistent width */
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            /* Subtle shadow for emphasis */
        }

        /* Countdown nearing expiration (you can add JavaScript to change the color dynamically) */
        .expires-in.nearing-expiration #countdown {
            color: #dc3545;
            /* Red when nearing expiration */
            background-color: #ffcccc;
            /* Light red background */
        }



        .comments-section {
            width: 100%;
            max-width: 100%;
            margin: 30px auto;
            padding: 10px;
            background: #fdfdfd;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            font-family: Arial, sans-serif;
        }

        /* Style for First Name */
        .comment-username {
            font-weight: bold;
            font-size: 1.1em;
            color: #007bff;
            /* Blue color */
            
        }


        .comments-section h3 {
            margin-bottom: 15px;
            font-size: 1.5em;
            border-bottom: 2px solid #eee;
            padding-bottom: 8px;
        }

        .comment {
            background: #fff;
            padding: 15px;
            margin-bottom: 15px;
            border-left: 4px solid #ddd;
            border-radius: 8px;
            position: relative;
        }

        .comment p {
            margin: 0 0 10px;
            font-size: 1rem;
        }

        .comment button {
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
        }

        .comment button:hover i {
            transform: scale(1.2);
            transition: 0.2s ease;
        }

        textarea[name="comment"] {
            width: 100%;
            min-height: 80px;
            padding: 10px;
            border-radius: 6px;
            border: 1px solid #ccc;
            margin-bottom: 10px;
            font-size: 1rem;
            resize: vertical;
        }

        button[name="submit_comment"] {
            background-color: #007BFF;
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1rem;
        }

        button[name="submit_comment"]:hover {
            background-color: #0056b3;
        }

        .comments-section a {
            color: #007BFF;
            text-decoration: none;
        }

        .comments-section a:hover {
            text-decoration: underline;
        }

}

::-webkit-scrollbar {
    display: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    /* Background color */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 45% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more responsive */

    .down-but {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

.btn-submit,
.btn-close {
    padding: 10px 35px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-submit {
    background-color: #28a745;
}

.btn-close {
    background-color: #dc3545;
}

input[type="number"] {
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}