
/* =========================================
   ROB HOGENMILLER - ABOUT ME
   Mobile First
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;

    background: #f1f1f1;
    color: #222;
}

/* Top bar */

.rob {
    width: 100%;
    height: 100vh;

    background: url("../img/rob.jpeg") no-repeat center center;
    background-size: contain;
}

/* Main page */

.content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;

    background: #fff;
}

/* =========================================
   HEADINGS
   ========================================= */

h1 {
    margin: 5px 0 20px;

    font-size: 2.2rem;
    line-height: 1.2;
    text-align: center;

    color: #111;
}

h2 {
    margin: 35px 0 15px;
    padding-bottom: 7px;

    font-size: 1.5rem;
    line-height: 1.3;

    color: #111;

    border-bottom: 2px solid #222;
}

h3 {
    margin: 25px 0 10px;

    font-size: 1.2rem;
    line-height: 1.3;
}

/* Yo soy Rob */

h1 + h2 {
    margin-top: 0;
    border-bottom: 0;
    text-align: center;
    font-style: italic;
}

/* =========================================
   TEXT
   ========================================= */

p {
    margin: 0 0 20px;

    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================
   IMAGES
   ========================================= */

img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 20px auto;
}

/*
   This overrides the inline style
   on racing.jpg on small screens.
*/

.content img[style] {
    width: 100% !important;
    max-width: 555px !important;
    height: auto !important;
}

/* =========================================
   LINKS
   ========================================= */

a {
    color: #0645ad;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: #c00000;
    text-decoration: underline;
}

/* =========================================
   NORMAL PAGE LINKS
   ========================================= */

.content > p a {
    display: inline-block;

    padding: 4px 0;
    margin-right: 10px;
}

/* =========================================
   BIBLE NAVIGATION
   ========================================= */

/*
   Make Bible links easy to tap on phones.
*/

.content h2 + a,
.content h2 + a ~ a {
    display: inline-block;

    margin: 4px 3px;
    padding: 7px 10px;

    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;

    font-size: 0.95rem;
    line-height: 1.3;

    text-decoration: none;
}

/* Hide the ugly "/" separators */

.content h2 + a::after,
.content h2 + a ~ a::after {
    content: "";
}

/*
   Since the HTML contains "/" between links,
   make the separators visually harmless.
*/

.content h2 + a {
    margin-left: 0;
}

/* =========================================
   DESKTOP
   ========================================= */

@media (max-width: 701px) {

    .content {
        margin: 30px auto;
        padding: 35px 45px;

        border: 1px solid #ddd;
        border-radius: 10px;

        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.05rem;
    }

    .rob {
        width: 100%;
        max-width: 500px;
       height:200px;
        
    }

    /*
       Desktop Bible navigation can stay compact.
    */

    .content h2 + a,
    .content h2 + a ~ a {
        display: inline;

        margin: 0;
        padding: 0;

        background: none;
        border: 0;

        line-height: 2;
    }
}

/* =========================================
   TABLETS
   ========================================= */

@media (min-width: 501px) and (max-width: 700px) {

    .content {
        padding: 25px 25px 40px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    p {
        font-size: 1.02rem;
    }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 400px) {

    .content {
        padding: 18px 12px 35px;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .content img {
        margin: 18px auto;
    }

    /*
       Smaller tap targets for very small screens,
       while still keeping them comfortable.
    */

    .content h2 + a,
    .content h2 + a ~ a {
        padding: 6px 8px;
        margin: 3px 2px;

        font-size: 0.9rem;
    }
}

/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 340px) {

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.94rem;
    }

    .content {
        padding-left: 10px;
        padding-right: 10px;
    }
}

