/* Base styles for the entire document */
body {
    font-family: Arial, sans-serif; /* Set font family */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Apply box-sizing border-box */
    background-color: #f0f4f8; /* Light background color */
    color: #333; /* Dark text color */
}

/* Vision statement styles */
.vision-statement {
    background-color: #ffffff; /* White background */
    padding: 10px; /* Padding */
    text-align: center; /* Center text */
    margin-bottom: 5px; /* Bottom margin */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.vision-statement h1 {
    font-size: 10px; /* Font size */
    margin-bottom: 10px; /* Bottom margin */
}

.vision-statement p {
    font-size: 10px; /* Font size */
    line-height: 1.5; /* Line height */
}

/* Header styles */
header {
    background-color: #4CAF50; /* Green header background */
    color: white; /* Header text color */
    text-align: center; /* Center text */
    padding: 10px 0; /* Padding */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: sticky; /* Sticky position */
    width: 100%; /* Full width */
}

h1 {
    font-size: 2em; /* Font size */
    margin: 0.67em 0; /* Top and bottom margin */
}

section {
    padding: 10px; /* Padding */
    text-align: center; /* Center text */
}

.dotted-line {
    border-top: 2px dotted #333; /* Dotted line */
    margin: 20px 0; /* Top and bottom margin */
}

/* Table styles */
table {
    width: 100%; /* Full width */
    border-collapse: collapse; /* Remove spacing between cells */
    margin-bottom: 20px; /* Bottom margin */
    border: 2px double #333; /* Double border */
}

th, td {
    border: 1px solid black; /* Cell border */
    padding: 8px; /* Padding */
    text-align: left; /* Left-align text */
}

/* Mailchimp */
#newsletter-subscribe {
    margin: 20px 0; /* Top and bottom margin */
}

/* Placeholder styles */
#nav-placeholder, #footer-placeholder {
    width: 100%; /* Full width */
    background-color: #f0f4f8; /* Light background */
}

/* General Styles for the content */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 5px; /* Controls spacing between company boxes */
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}


/* Add background color to the description */
.description {
    font-size: 1rem; /* Set the font size for the description text */
    margin-bottom: 10px; /* Add bottom margin to the description text */
    color: #555; /* Set a lighter text color for the description */
    background-color: #f9f9f9; /* Set a background color for the description */
    padding: 10px; /* Add padding to the description */
    border-radius: 10px; /* Optional: Add border-radius for better aesthetics */
    flex-grow: 1; /* Allow the description to grow and fill available space */
}

/* Ensure company links remain at the bottom of the company box */
.company-box {
    padding: 10px; /* Add padding inside each company box */
    border-radius: 20px; /* Round the corners of each company box */
    cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth transition for transform and box-shadow changes */
    display: flex; /* Use flexbox layout for company box content */
    flex-direction: column; /* Arrange content in a column within each company box */
    align-items: center; /* Center content horizontally within each company box */
    text-align: center; /* Center-align the text within each company box */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    justify-content: space-between; /* Distribute space between elements, pushing links to the bottom */
    height: 100%; /* Ensure the box takes full available height */
    border: 0.05em dashed rgb(186, 102, 255);
}


.company-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 20px rgba(91, 84, 233, 0.2);
}

.overlay {
    display: flex; /* Use flexbox layout for overlay content */
    flex-direction: column; /* Arrange content in a column within overlay */
    flex-grow: 1; /* Allow overlay to grow and fill available space */
}


.ticker {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.market-cap {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Media Queries for Responsive Design */
@media (min-width: 320px) {
    .company-box {
        padding: 10px;
    }
    .ticker {
        font-size: 1.5rem;
    }
}

@media (min-width: 480px) {
    .company-box {
        padding: 10px;
    }
    .ticker {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .company-box {
        padding: 10px;
    }
    .ticker {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .company-box {
        padding: 10px;
    }
    .ticker {
        font-size: 2.25rem;
    }
}

@media (min-width: 1200px) {
    .company-box {
        padding: 10px;
    }
    .ticker {
        font-size: 2.5rem;
    }
}

.company-link {
    background: linear-gradient(135deg, #87cefa, #1e90ff); /* Set a gradient background for company links */
    border: 1.5px solid #1e90ff; /* Set a border for company links */
    color: white; /* Set the text color for company links */
    padding: 5px 0; /* Add padding on top and bottom of the company links */
    text-align: center; /* Center-align the text within company links */
    text-decoration: none; /* Remove underline from company links */
    display: inline-block; /* Display links as inline blocks */
    font-size: 15px; /* Set the font size for company links */
    font-weight: 600; /* Set the font weight for company links */
    letter-spacing: 0.5px; /* Set letter spacing for company links */
    margin: 2px 0; /* Add vertical margin to company links */
    cursor: pointer; /* Change cursor to pointer on hover */
    border-radius: 10px; /* Round the corners of company links */
    transition: background-color 0.2s ease, border-color 0.2s ease; /* Smooth transition for background and border color changes */
    width: 100%; /* Set the width of the links to 100% of the container */
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    margin-top: auto; /* Push the links to the bottom of the flex container */
}



.company-link:hover {
    background-color: #87ceeb;
    border-color: #0000cd;
    box-shadow: 0px 20px 20px rgb(97, 0, 177);
}



.bg-light-green {
    background: #e8f5e9; /* Light green background color */
}

.bg-light-blue {
    background: #e3f2fd; /* Light blue background color */
}

.bg-light-pink {
    background: #fce4ec; /* Light pink background color */
}

.bg-light-yellow {
    background: #fff8e1; /* Light yellow background color */
}
