@import url('https://fonts.googleapis.com/css2?family=Jost:400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

body {
    font-family: 'Jost', sans-serif;
    margin: 0;
    padding: 20px; /* Added padding around the interface */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    background-color: #EAEDF2; /* Updated background color */
    color: #fff;
    overflow-y: scroll; /* Allow scrolling */
    font-size: 11px;
}

.refresh-btn {
    background-color: #E9485B;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    font-family: 'Jost', sans-serif;
    padding: 10px; /* Updated padding */
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001; /* Ensure it is above other elements */
    border-radius: 0;
}

.refresh-btn:hover {
    background-color: #013F4C;
    color: #fff;
}

header {
    width: 100%;
    background-color: #EAEDF2;
    text-align: center;
    padding: 0; /* Removed padding */
    margin-top: 0; /* Removed top margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

header .logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.header-title-container {
    text-align: center;
}

.header-title {
    font-family: 'Jost', sans-serif;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    color: #013F4C;
}

.header-description {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #013F4C;
    margin-top: 10px;
}

.countdown-container {
    text-align: center;
    margin-bottom: 0; /* Removed bottom margin */
}

.countdown-text {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 12px;
    color: #EAEDF2;
}

#countdown {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 30px; /* Updated font size */
    color: #E9485B;
    text-align: center;
}

#highestBidInfo {
    width: 100%;
    text-align: center;
    margin-top: 0; /* Removed top margin */
    color: #FFF200; /* Updated current highest bid information color */
}

.bold {
    font-weight: bold;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    background-color: #2b2c2d;
    border-radius: 0px; /* Updated border radius */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    height: calc(100vh - 300px - 60px); /* Adjust height to accommodate header and padding */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 60px; /* Added bottom padding to accommodate button */
}

#bidForm {
    display: flex;
    flex-direction: column;
    margin-top: 20px; /* Ensure spacing between highest bid info and bid form */
}

#bidForm label, #bidForm input, #bidForm button {
    margin-bottom: 10px;
}

#bidForm button {
    width: 100%;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 0; /* Make corners 0 */
    background-color: #00697C;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

button svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

button:hover {
    background-color: #005666; /* Darker shade for hover effect */
}

#bidMessage {
    font-size: 14px;
    margin-top: 10px;
}

.thinking {
    font-size: 12px;
    color: #A0CC3A;
    visibility: hidden;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.thinking span {
    animation: blink 1s infinite;
}

@media (max-width: 768px) {
    body {
        padding: 20px; /* Ensure padding around the interface */
    }

    header {
        padding: 50px; /* Removed padding */
        max-height: 300px;
    }

    header .logo {
        width: 100px;
        height: auto;
    }

    .header-title {
        font-size: 14px;
    }

    .header-description {
        font-size: 11px;
    }

    .refresh-btn {
        font-size: 12px;
        padding: 10px; /* Updated padding */
    }

    .chat-container {
        margin-top: 30px;
        padding: 8px;
        height: calc(100vh - 300px - 60px); /* Adjust height to accommodate header and padding */
        padding-left: 10px; /* Further decreased side padding */
        padding-right: 10px; /* Further decreased side padding */
        padding-bottom: 60px; /* Added bottom padding to accommodate button */
    }

    input[type="text"], input[type="number"] {
        font-size: 11px;
        padding: 8px;
    }

    button {
        width: 100%;
        height: 36px;
    }

    button svg {
        width: 20px;
        height: 20px;
    }

    .thinking {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 50px; /* Ensure padding around the interface */
        padding-top: 50px;
        padding-right: 10px;
        padding-left: 10px;
        padding-bottom: 10px;
        
    }

    header {
        padding: 0; /* Removed padding */
        max-height: 300px;
    }

    header .logo {
        width: 100px;
        height: auto;
    }

    .header-title {
        font-size: 12px;
    }

    .header-description {
        font-size: 12px;
    }

    .refresh-btn {
        font-size: 12px;
        padding: 10px; /* Updated padding */
    }

    .chat-container {
        margin-top: 20px;
        padding: 6px;
        height: calc(100vh - 300px - 60px); /* Adjust height to accommodate header and padding */
        padding-left: 10px; /* Further decreased side padding */
        padding-right: 10px; /* Further decreased side padding */
        padding-bottom: 60px; /* Added bottom padding to accommodate button */
    }

    input[type="text"], input[type="number"] {
        font-size: 11px;
        padding: 6px;
    }

    button {
        width: 100%;
        height: 32px;
    }

    button svg {
        width: 16px;
        height: 16px;
    }

    .thinking {
        font-size: 8px;
    }
}
