html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f6f6f6;
}

* {
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: center;
    padding: 1em;
    background-color: burlywood;
    max-width: 500px;
    max-height: 200px;
    margin: 0 auto;
}

header img {
    width: 340px;
}

.header-icon {
    position: relative; /* Create a positioned container */
    display: inline-block; /* Ensure it wraps around the content */
}

.icon {
    /*width: 100%; /* Ensure the icon fits the container */
    width: 350px;
    height: 100px;
    display: block;
}

.icon-text {
    position: absolute; /* Position relative to .header-icon */
    top: 25%; /* Move text to the vertical center */
    left: 46%; /* Move text to the horizontal center */
    transform: translate(-50%, -50%); /* Center text exactly */
    color: rgb(206, 111, 11); /* Text color */
    font-size: 20px; /* Adjust text size as needed */
    font-weight: bold; /* Make text bold */
    pointer-events: none; /* Ensure text doesn’t interfere with clicking the icon */
    background-color: white;
}

/* Disclaimer styling */
/* Modal overlay */
.modal {
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Transparent black background */
    transition: opacity 0.3s ease-in-out;
}

/* Modal content */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.modal-content a {
    color: #007bff;
    text-decoration: underline;
}

.modal-content a:hover {
    color: #0056b3;
}

/* Button styling */
.modal-content button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.button-container {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    margin-top: 20px; /* Adds space above the button */
}

p.modal-warning {
    color: red;
    margin-left: 17%;
}

.modal-content button:hover {
    background-color: #0056b3;
}

/* Main Section Styling */

main {
    display: flex;
    justify-content: center;
    flex-direction: column; /* Stack all sections vertically */
}

/* Panels */

.action-panel, .output-panel {
    line-height: 1.4em;
    display: flex;
    height: 380px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin: 1.5em 2em;
}

.output-panel {
    display: none;
    justify-content: flex-start;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 1em 2em;
    width: 92%; /* Adjust the width for readability */
    height: 400px; /* Fixed height for scrollable content */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: #f9f9e7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-panel {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    height: 400px;
    text-align: center;
}

h2 {
    text-align: center;
    font-weight: 400; 
    margin-top: -26px;
    background-color: #f6f6f6;
    padding: 0 10px;
    font-size: 18px;
    margin-bottom: 0;
}

p.tag-line {
    font-family: 'Comic Neue';
    font-weight: 1000;
    font-size: 14px;
    color: red;
}

.ticker-choice-display {
    display: flex;
    align-items: center;
    height: 3em; 
}

/* controls */

form {
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    text-align: center;
    padding: .43em;
    font-size: 15px;
    margin-bottom: 1em;
    width: 80%;
}

.form-input-control {
    display: flex;
    width: 72%;
}

input[type="text"] {
    padding: 1em;
    border: 2px solid black;
    border-right: none;
}

/* Buttons */
.add-ticker-btn {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    font-size: 3em;
    padding: 0 .35em;
    cursor: pointer;
    border: 2px solid;
}

.add-ticker-svg {
    width: 14px;
}

/* Report Section Styling */
.report-section {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1em;
    margin: 1em 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Report Header Styling */
.report-section h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.25rem;
    color: #333;
    font-weight: bold;
}

/* Report Body Styling */
.report-section p {
    margin: 0;
    line-height: 1.5em;
    color: #0b0000;
    font-size: 1.2rem;
}

.generate-report-btn {
    width: 70%;
    padding: 1em 1.5em;
    cursor: pointer;
    font-family: 'Poppins', sans;
    border: 2px solid #000000;
    background-color: #87e23c;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .09em;
    font-size: 105%;    
    width: 14%;
}

/* New Report Button */
.new-report-btn {
    display: none;
    margin: 2em auto;
    padding: 1em 2em;
    font-family: 'Poppins', sans-serif;
    font-size: 105%;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #ff6666;
    color: white;
    border: 2px solid #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 13%;
}

.new-report-btn:hover {
    background-color: #ff4444;
}

/* ticker display (ensure comma separated) */

.ticker {
    margin: 0 .1em;
    content: '';
}

.ticker:after {
    content: ',';
}

.ticker:last-child::after {
    content: '';
}

/* footer */

footer {
    font-size: 14px;
    text-align: center;
}

/* stop ugly scroll bar on some browsers */
.output-panel p::-webkit-scrollbar {
    width: 8px;
    background-color: #f9f9f9;
}

/*
.output-panel p::-moz-scrollbar {
    display: none;
}*/

.output-panel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 8px;
}

/* Scrollbar for other browsers (fallback styles) */
.output-panel {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc #f9f9f9;
}