/* Global reset and font settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Body background image */
body {
    background-image: url('images/background.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items at the top */
    align-items: center;
    min-height: 100vh; /* Ensures the body takes at least full screen height */
    padding: 20px; /* Adds padding for breathing room */
    overflow-y: auto; /* Enables vertical scrolling */
}

/* Header containing logo and title */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between the logo and title */
    margin-top: 2rem; /* Adds 2rem padding from the top */
    margin-bottom: 20px; /* Space below the header */
}

.logo img {
    max-width: 200px; /* Scales the logo proportionally */
    height: auto;
}

.widget-title {
    color: #ffffff;
    font-weight: 1000;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
}

/* Main container for the widget and token sale panel */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* Space between the panels */
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    border-radius: 16px;
    padding: 10px;
}

/* DEX widget and token sale panel styles */
.iframe-container,
.token-sale-panel {
    width: 400px;
    height: 700px;
    background-color: rgba(255, 86, 2, 0); /* Transparent background */
    border: 3px solid black;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 3px solid black;
}

/* Token sale panel */
.token-sale-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 350px; /* Fixed height for content */
    overflow: auto;
    background-color: rgba(255, 86, 2, 0.5); /* Orange background */
    color: white; /* White text */
    font-family: 'Roboto', sans-serif;
    border-radius: 16px;
    margin-left: 1rem;
}

.token-sale-panel h2 {
    font-size: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.token-sale-panel p {
    margin-top: 2rem;
    font-size: 14px;
}


/* Style for input fields */
#batchCount,
#btcAmount,
#totalMisfitMindset {
    background-color: #ff5602; /* Orange background */
    color: white; /* White text */
    border: 0px solid #ffffff; /* Orange border */
    border-radius: 8px;
    padding: 5px 10px; /* Reduced padding */
    font-size: 16px; /* Smaller text */
    width: 20; /* Match width */
    text-align: center; /* Center the text inside */
}

.batch-calculator {
    margin-top: 2rem;
    align-items: center;
}

.calculator-all {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the entire content vertically */
    align-items: center; /* Center the entire content horizontally */
}

td {
    padding: 0.2rem;
    justify-content: center;
}

#batchCount {
    text-align: center;
    width: 50px; /* Ensures only enough space for three digits */
}

/* Batch calculator button styles */
.batch-calculator button {
    background-color: #ff7f32;
    color: white;
    border: 2px solid #ff7f32; /* Orange border */
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.batch-calculator button:hover {
    background-color: #e66a2c; /* Darker hover shade */
}

.batch-calculator input {
    text-align: center;
    width: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-height: 700px) {
    body {
        height: auto; /* Allows scrolling on short screens */
    }

    .iframe-container,
    .token-sale-panel {
        height: 500px; /* Reduces panel height */
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack panels vertically */
        align-items: center;
        gap: 10px; /* Reduce gaps for smaller screens */
    }

    .iframe-container,
    .token-sale-panel {
        width: 100%; /* Scale panels to fit narrow screens */
        height: 650px; /* Adjust height dynamically */
    }

    .token-sale-panel {
        margin-left: 0; /* Remove extra margin for stacking */
    }
}

@media (max-width: 500px) {
    .logo img {
        max-width: 150px; /* Scale down the logo further */
    }

    .widget-title {
        font-size: 1.2rem; /* Smaller font for title */
    }
}
