html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.background-image {
    background-image: url('../images/bg.jpg');
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children horizontally */
    justify-content: flex-start;
    padding: 20px;
    color: white;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px; /* Slight top spacing */
}

/* Style the main SVG specifically */
.container img[src="images/trans-gang.svg"] {
    width: 100vw; /* Fill full viewport width on all screens */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto 20px auto; /* Center SVG with bottom spacing */
}

/* Style social media icons */
.container img.ref {
    width: 40px; /* Enforce 40x40 size */
    height: 40px;
    display: inline-block;
    vertical-align: middle;
}

.hcontent, .content, .card {
    padding: 20px;
    border-radius: 10px;
    margin: 10px 0;
    width: 80%;
    max-width: 600px;
    box-sizing: border-box;
}

.hcontent {
    padding: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.content {
    background: rgba(0, 0, 0, 0.1);
}

.card {
    background: #000;
    text-align: center;
}

#content1, #content2 {
    transform: scale(0.85);
}

.ref {
    -webkit-box-reflect: below 4px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.25));
}

.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    color: white;
    border-radius: 10px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

/* Media query for smaller screens (e.g., iPhone) */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }
    .hdr {
        font-size: 20px;
    }
    .container {
        margin-top: 5px;
        padding: 10px;
    }
    .container img[src="images/trans-gang.svg"] {
        width: 90vw; /* Slightly smaller than viewport width on mobile */
        max-width: 100%; /* Ensure it fits within viewport */
        height: auto;
    }
    .container img.ref {
        width: 40px; /* Ensure icons stay 40x40 */
        height: 40px;
    }
}

/* Media query for medium screens */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
    .hdr {
        font-size: 24px;
    }
}

/* Media query for larger screens */
@media (min-width: 1098px) {
    .hdr {
        color: #fff;
    }
}