* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

/* -------- DESKTOP (default) -------- */

body {
    min-height: 100vh;
    background-image: url("assets/pencil.jpg");
    background-size: cover;           /* fills the screen, small crop is OK */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
    font-family: "Marck Script", cursive;
}

.overlay {
    width: 100%;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);

    display: flex;
    justify-content: center;
    align-items: center;

    padding-left: 3vw;
    padding-right: 5vw;
}

h1 {
    color: #8a8377;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.75);

    white-space: nowrap;                 /* one line */
    font-size: clamp(1.8rem, 3vw, 3.4rem);

    /* move text slightly to the right on PC */
    transform: translateX(6vw);
}

/* -------- PHONES & SMALL TABLETS -------- */

@media (max-width: 900px) {

    /* show the FULL picture with BOTH shadows */
    body {
        background-size: contain;        /* no cropping, whole image */
        background-position: center center;
        background-repeat: no-repeat;
        background-color: #000;          /* bars above/below are black */
    }

    .overlay {
        justify-content: center;         /* center text horizontally */
        align-items: center;             /* center text vertically */
        padding-left: 6vw;
        padding-right: 6vw;
    }

    h1 {
        transform: none;                 /* no extra shift on mobile */
        text-align: center;
        white-space: nowrap;             /* stay on one line */
        font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    }
}