/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4F4F4;
    color: #333;
}

header {
    text-align: center;
    padding: 20px 10px;
    background-color: #00539C;
    color: white;
}

h1 {
    font-size: 28px; /* Adjusted for mobile */
    font-weight: bold;
}

h2 {
    font-size: 22px; /* Adjusted for mobile */
    font-weight: bold;
    margin: 10px 0;
}

a:link, :visited {
    color: #fff;
    text-decoration: underline;
}

.scroll-hint {
    font-size: 16px;
    margin: 10px 0;
    color: black;
}

.arrow-icon {
    font-size: 60px;
    color: black;
}

/* Main content */
main {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Section Styles */
.top-section {
    text-align: center;
    padding: 60px 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* Justified text in top section */
.justified-text {
    text-align: justify;
    max-width: 600px; /* Make it wider than h2 */
    margin: 20px auto; /* Center the text */
    font-size: 16px;
    line-height: 1.5;
}

/* Section Layout */
.section {
    background-color: #87BFEF; /* Sky Blue */
    margin: 10px;
    width: calc(100% - 20px); /* Ensure padding */
    max-width: 100%;
    padding: 20px 10px;
    text-align: center;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Section image styles */
.section-image {
    max-width: 120px;
    max-height: 120px;
    display: block;
    margin: 0 auto 20px; /* Center the image with margin below */
}

.value-box {
    margin: 20px 0;
}

.value {
    font-size: 40px;
    font-weight: bold;
    color: #E00025;
}

.description {
    font-size: 16px;
    color: #333;
}

canvas {
    margin: 10px auto;
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 10px;
}

.footer-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

footer a {
    color: #87BFEF;
    text-decoration: none;
}

/* Desktop-specific styles */
@media only screen and (min-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .scroll-hint {
        font-size: 18px;
    }

    .arrow-icon {
        font-size: 100px;
    }

    .section {
        margin: 20px;
        padding: 40px 20px;
        width: calc(100% - 40px); /* Maintain spacing */
    }

    .value {
        font-size: 52px;
    }

    .description {
        font-size: 18px;
    }

    canvas {
        margin: 20px auto;
    }
}

/* Mobile-specific styles for the Intro text */
@media only screen and (max-width: 767px) {
    .justified-text {
        padding: 0 20px; /* Adds more space on the sides for mobile */
    }
}