/* 
 * Responsive layout styles for the website
 * Handles overall page structure and layout adjustments
 */

/* Base responsive layout styles */
body {
    min-width: auto;
}

/* Large screens (up to 1200px) */
@media screen and (max-width: 1200px) {

    /* Adjust main containers */
    header,
    footer,
    #navigation nav,
    #ads,
    #facebook,
    #profile-list .content,
    .message {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Adjust promo section */
    header.small .promo-text .promo-motto {
        background-position: right center;
    }


    .message {
        width: 95%;
        box-sizing: border-box;
    }
}

/* Medium screens / tablets (up to 992px) */
@media screen and (max-width: 992px) {

    /* Adjust miss list layout */
    #profile-list .content {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    /* Adjust footer layout */
    footer {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    footer p.text,
    footer p.links {
        width: 100%;
        float: none;
        text-align: center;
        box-sizing: border-box;
    }

    /* Adjust promo text */
    header.large p {
        font-size: 48px;
        line-height: 60px;
    }

    header.large .promo-text span.promo-crown {
        zoom: 0.85;
    }

    header.small .promo-text .promo-motto{
        background-position: right bottom;
        height: 125px;
    }
}

/* Small screens / mobile (up to 768px) */
@media screen and (max-width: 768px) {

    /* Adjust header */
    header.small,
    header.large {
        background-size: auto 100%;
        padding-bottom: 22px;
    }

    header.large .promo-text span.promo-crown {
        zoom: 0.75;
    }

    /* Adjust miss winners display */
    #miss-winners ul {
        display: flex;
        flex-direction: column;
    }

    #miss-winners ul li {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }

    /* Adjust main miss display */
    #miss-main {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }

    #miss-latest {
        width: 100%;
        float: none;
    }

    #miss-latest ul {
        display: flex;
        flex-wrap: wrap;
    }

    #miss-latest ul li {
        width: 33.33%;
        box-sizing: border-box;
        padding: 5px;
    }

    /* Facebook container */
    #facebook {
        height: auto;
        min-height: 200px;
    }
}

/* Extra small screens (up to 480px) */
@media screen and (max-width: 480px) {

    /* Further reduce columns */
    #miss-latest ul li {
        width: 50%;
    }

    /* Adjust header text */
    header.large p {
        font-size: 36px;
        line-height: 44px;
        top: 40px;
    }

    /* Simplify layout */
    #navigation {
        height: auto;
        min-height: 97px;
    }

    /* Adjust logo for very small screens */
    #logo h1 {
        width: 200px;
        height: 140px;
        padding: 10px;
    }

    /* Stack footer elements */
    footer p.links span {
        height: 1px;
        overflow: hidden;
        visibility: hidden;
    }

    footer p.links a {
        padding: 5px 0;
    }

    header.small .promo-text .promo-motto {
        background-position: right bottom;
        height: 75px;
    }
    header.large .promo-text {
        flex-direction: column;
    }
    header.large .promo-text p {
        top: 0;
        width: auto;
    }
    header.large .promo-delimiter {
        display: none;
    }
    header.large .promo-motto {
        max-width: 100%;
        align-items: center;
    }
    header.large .promo-text span.promo-crown {
        zoom: 0.5;
    }
}