/*STYLE SHEET FOR THE MAIN INDEX PAGE*/



   body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* background: #fff4e9; */
    background: #f9f9f9;
    line-height: 1.5rem;
}

/* Main wrapper */
.main {
    width: 75%;
    margin: 20px auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 2fr 1fr; /* Image left, description right */
    grid-template-rows: auto auto;  /* Two rows */
    gap: 20px;
}

/* Image left, description right */
.image-box {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
}

.image-box img {
    width: 450px;
    max-width: 100%;
    height: auto;
}

/* Description on the right of the image */
.description-box {
    grid-column: 2;
    grid-row: 1;
    text-align: justify;    
    line-height: 1.5rem;
}

/* Competition text under the image */
.competition-box {
    grid-column: 1;
    grid-row: 2;
}

/* Buttons to the right of competition text */
.link-list {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    align-self: start;
}

.link_button {
    display: inline-block;
    width: 200px;
    background-color: #033660;
    border: 1px solid #033660;
    border-radius: 5px;
    color: white;
    margin: 10px 0 0 10px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: rgb(0, 59, 209) 2px 2px 5px;
}

.link_button:hover {
    background-color: #055a8c;
    border-color: #055a8c;
}

/* Footer full width at bottom */
footer {
    margin-top: auto;
    width: 100vw;
    background: #033660;
    color: white;
    text-align: center;
    padding: 15px;
    line-height: 1.5rem;
}

@media (max-width: 600px) {

    .main {
        width: 95%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .image-box,
    .description-box,
    .competition-box,
    .link-list {
        width: 95%;
        order: unset; /* remove grid ordering */
    }

    .link-list {
        margin-top: 10px;
        text-align: center;
    }

    .link_button {
        width: 100%;
        margin: 10px 0;
    }
}

