/* ===========================================
   Alex Firlik Website Master Phase IV Layout
   =========================================== */

/* ---------- Page ---------- */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f8;
    color: #000;
}

.page {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px;
}

/* ---------- Header ---------- */

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #1f6fd6;
    margin-bottom: 10px;
}

.header .subtitle {
    color: #555;
    font-size: 1em;
    margin-top: -5px;
}

/* ---------- Main Content Box ---------- */

.main-box {
    background-color: #fff;
    border: 2px solid #1f6fd6;
    border-radius: 12px;
    padding: 20px;
}

/* ---------- Intro / Outro ---------- */

.intro-box {
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95em;
}

.intro-box p {
    margin-bottom: 1em;
}

/* ---------- Content Sections ---------- */

.section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

/* Alternate image side automatically */
.section:nth-of-type(even) {
    flex-direction: row-reverse;
}

/* ---------- Text ---------- */

.text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ---------- Images ---------- */

.image {
    flex: 1;
    text-align: center;
}

.image img {
    max-width: 85%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: auto;
}

/* ---------- Buttons ---------- */

.home-button {
    display: block;
    width: 220px;
    margin: 30px auto 10px;
    padding: 8px 16px;

    background-color: #1f6fd6;
    color: white;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    border-radius: 8px;
    box-shadow: 1px 1px 4px rgba(0,0,0,.2);

    transition: background-color .2s ease;
}

.home-button:hover {
    background-color: #3a82f6;
}

/* ---------- Mobile ---------- */

@media (max-width:700px) {

    .section {
        flex-direction: column !important;
    }

    .image img {
        max-width: 100%;
    }

}