: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;
}

body {
  overflow: hidden;
}

body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.main-content {
    min-height: calc(100vh - [header height] - [footer height]);
    overflow-y: auto;
}


.home-container {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0px 60px;
    padding-top: 150px;
    overflow: auto;


    .votes1 {
        height: fit-content;
        /* gap: 10px; */
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),
            0 0 10px rgba(0, 0, 0, 0.05);

        &:hover {
            transform: scale(1.01);
            transition: all 0.3s ease-in-out;
            cursor: pointer;
        }

        .status {
            width: 100%;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding-top: 10px;
            padding-right: 10px;

        }

        .status {
            width: 100%;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding-top: 10px;
            padding-right: 10px;
        }
        
        .status p {
            border-radius: 30px;
            padding: 2px 20px;
            font-weight: 600;
        }
        
        /* 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 */
        }
        

        .top {
            width: 100%;
            height: fit-content;
            padding: 10px;
            display: flex;


            .left-side {
                width: 25%;
                display: flex;
                align-items: center;
                gap: 10px;

                img {
                    width: 60px;
                    height: 62px;
                    border-radius: 5px;
                }
            }

            .right {
                width: 75%;

                a {
                    text-decoration: none;
                    color: var(--text1);
                    font-weight: 600;
                    font-size: 13px;

                    &:hover {
                        text-decoration: underline;
                        transition: all 0.3s ease-in-out;
                    }

                    transition: all 0.3s ease-in-out;
                }
            }


        } 

        .middle {
            width: 100%;
            height: fit-content;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;

            button {
                width: 48%;
                padding: 5px 10px;

                span {
                    margin-left: 10px;
                    font-weight: 600;
                }
            }


            .buy {
                background-color: lightgreen;
                color: green;
                border: none;
                border-radius: 5px;

                &:hover {
                    background-color: green;
                    color: white;
                }

                transition: all 0.3s ease-in-out;
            }

            .sell {
                background-color: lightcoral;
                color: darkred;
                border: none;
                border-radius: 5px;

                &:hover {
                    background-color: darkred;
                    color: white;
                }

                transition: all 0.3s ease-in-out;
            }
        }

        .down {
            width: 100%;
            height: fit-content;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0px 10px 10px;

            button {
                border: 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;
}