/* ============================================================
   CribCoders page CSS
   Modernized 25% / 50% / 25% grid layout
   ============================================================ */

/* -----------------------------
   PAGE BACKGROUND
   ----------------------------- */

#background {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: teal;
}

.stretch {
    width: 100%;
    height: 100%;
}


/* -----------------------------
   MAIN WRAPPER
   ----------------------------- */

#wrapper {
    background: teal;
    width: 90%;
    min-width: 770px;
    max-width: 1024px;
    margin: 20px auto 0 auto;
    border: 1px solid #008080;
    border-radius: 22px;
    position: relative;
    box-sizing: border-box;
    text-align: left;
}

#outer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: teal;
    color: #000000;
    box-sizing: border-box;
    border-radius: 22px;
}

#clearheader {
    height: 42px;
}


/* -----------------------------
   SHARED TEXT / BUTTON STYLES
   ----------------------------- */

.roundc {
    border-radius: 22px;
}

.normbut {}

.normbut:hover {
    color: #800080;
}



.lilyellow {font-family:verdana;font-size:15px;font-style:bold;color:#FFFF00;text-align:center}
.lilyellowl {font-family:verdana;font-size:15px;font-style:bold;color:#FFFF00;text-align:left}
.lilyellowc {font-family:verdana;font-size:15px;font-style:bold;color:#FFFF00;text-align:center}
.lilyellowr {font-family:verdana;font-size:15px;font-style:bold;color:#FFFF00;text-align:right}
.lilyellown {font-family:verdana;font-size:15px;font-style:bold;color:#FFFF00}

.lilwhite {font-family:verdana;font-size:15px;font-style:bold;color:#FFFFFF}
.lilwhitel {font-family:verdana;font-size:15px;font-style:bold;color:#FFFFFF;text-align:left}
.lilwhitec {font-family:verdana;font-size:15px;font-style:bold;color:#FFFFFF;text-align:center}
.lilwhiter {font-family:verdana;font-size:15px;font-style:bold;color:#FFFFFF;text-align:right}

.mmedwhite {font-family:verdana;font-size:18px;font-style:bold;color:#FFFFFF}
.mmedwhitel {font-family:verdana;font-size:18px;font-style:bold;color:#FFFFFF;text-align:left}
.mmedwhitec {font-family:verdana;font-size:18px;font-style:bold;color:#FFFFFF;text-align:center}
.mmedwhiter {font-family:verdana;font-size:18px;font-style:bold;color:#FFFFFF;text-align:right}

.bigyellowc {font-family:verdana;font-size:40px;font-style:bold;color:#FFFF00;text-align:center}
.bigyellowl {font-family:verdana;font-size:40px;font-style:bold;color:#FFFF00;text-align:left}
.bigyellowr {font-family:verdana;font-size:40px;font-style:bold;color:#FFFF00;text-align:right}

.medyellow {font-family:verdana;font-size:25px;font-style:bold;color:#FFFF00;text-align:center}
.medyellown {font-family:verdana;font-size:25px;font-style:bold;color:#FFFF00}
.medyellowc {font-family:verdana;font-size:25px;font-style:bold;color:#FFFF00;text-align:center}
.medyellowl {font-family:verdana;font-size:25px;font-style:bold;color:#FFFF00;text-align:left}
.medyellowr {font-family:verdana;font-size:25px;font-style:bold;color:#FFFF00;text-align:right}

.mmedyellow {font-family:verdana;font-size:18px;font-style:bold;color:#FFFF00;text-align:center}
.mmedyellown {font-family:verdana;font-size:18px;font-style:bold;color:#FFFF00}
.mmedyellowc {font-family:verdana;font-size:18px;font-style:bold;color:#FFFF00;text-align:center}
.mmedyellowl {font-family:verdana;font-size:18px;font-style:bold;color:#FFFF00;text-align:left}
.mmedyellowr {font-family:verdana;font-size:18px;font-style:bold;color:#FFFF00;text-align:right}


/* -----------------------------
   OPTIONAL SPINNER
   ----------------------------- */

.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -50px;
    margin-top: -50px;
    text-align: center;
    z-index: 1234;
    overflow: auto;
    width: 100px;
    height: 102px;
}


/* ============================================================
   MAIN THREE-COLUMN AREA
   ============================================================ */

.crib-main-grid {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.crib-left,
.crib-center,
.crib-right {
    min-width: 0;
    box-sizing: border-box;
}

/* Explicit placement keeps the three areas unambiguous. */
.crib-left {
    grid-column: 1;
}

.crib-center {
    grid-column: 2;
}

.crib-right {
    grid-column: 3;
}


/* ============================================================
   LEFT AND RIGHT APP COLUMNS
   ============================================================ */

.crib-left,
.crib-right {
    padding-top: 10px;
    padding-bottom: 20px;
}

/*
   Each application is a fixed-width unit.
   The image is centered over its caption.
*/
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 140px;
    margin-bottom: 28px;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

/* Left-side app blocks hug the left side of their 25% grid column. */
.crib-left .app-item {
    margin-left: 30px;
    margin-right: auto;
}

/* Right-side app blocks mirror them against the right edge. */
.crib-right .app-item {
    margin-left: auto;
    margin-right: 30px;
}

.app-item input[type="image"],
.app-item img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 3px auto;
}

.app-item-text {
    width: 140px;
    margin: 0;
    text-align: center;
    line-height: 1.05;
}

.app-item-link {
    width: 140px;
    margin-top: 3px;
    text-align: center;
}


/* ============================================================
   CENTER COLUMN
   ============================================================ */

.crib-center {
    padding: 20px 25px;
    text-align: center;
}

.welcome-screen {
    width: 100%;
    padding-top: 40px;
    box-sizing: border-box;
    text-align: center;
}

.welcome-logo {
    margin: 0 0 35px 0;
}

.welcome-heading {
    margin: 0 0 2px 0;
}

.welcome-description {
    max-width: 600px;
    margin: 0 auto;
}

.welcome-app-message {
    margin-top: 40px;
}


/* ============================================================
   LEFT COLUMN BOTTOM AREA
   ============================================================ */

.left-bottom {
    width: 170px;
    margin: 5px auto 0 15px;
    text-align: center;
}

.privacy-button {
    margin-top: 35px;
    background-color: #0066CC;
}


/* ============================================================
   FEEDBACK FORM
   ============================================================ */

#feedback {
    margin-top: 40px;
    text-align: center;
    background-color: #FF991C;
}

.formbackground {
  background-color: #FF991C;
}

.formtable {
    margin-left: auto;
    margin-right: auto;
}

.form-center {
    text-align: center;
}

.form-left {
    text-align: left;
}

.feedback-back-button {
    margin-top: 30px;
    background-color: #0066CC;
}


/* ============================================================
   FOOTER / SUPPORT
   ============================================================ */

#footer {
    width: 100%;
    box-sizing: border-box;
}

.support-area {
    margin-top: 10px;
    padding-bottom: 5px;
    text-align: center;
}

.support-button {
    background-color: #0066CC;
}


/* ============================================================
   RESPONSIVE BEHAVIOR
   ============================================================ */

@media (max-width: 700px) {

    #wrapper {
        width: 96%;
        min-width: 0;
    }

    .crib-main-grid {
        grid-template-columns: 1fr;
    }

    .crib-center {
        grid-column: 1;
        grid-row: 1;
    }

    .crib-left {
        grid-column: 1;
        grid-row: 2;
    }

    .crib-right {
        grid-column: 1;
        grid-row: 3;
    }

    .crib-left .app-item,
    .crib-right .app-item {
        margin-left: auto;
        margin-right: auto;
    }

    .left-bottom {
        margin-left: auto;
        margin-right: auto;
    }

    .formtable {
        width: 100%;
    }

    .myspendbook-page {
        width: 94%;
        padding: 25px 18px;
    }

    .myspendbook-row {
        grid-template-columns: 1fr;
    }

    .myspendbook-icon {
        margin-bottom: 15px;
    }

    .myspendbook-info {
        padding: 0;
        text-align: center;
    }
}


/* ============================================================
   MYSPENDBOOK PAGE
   ============================================================ */

.myspendbook-page {
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    background: teal;
    box-sizing: border-box;
    padding: 35px 30px;
}

/* top full-width area */
.myspendbook-top {
    width: 100%;
    text-align: center;
    margin-bottom: 35px;
}

/* one 30 / 70 row */
.myspendbook-row {
    display: grid;
    grid-template-columns: 20% 80%;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    padding: 18px 0;
}

/* left image/icon area */
.myspendbook-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* right text area */
.myspendbook-info {
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

/* icons */
.myspendbook-icon img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

/* optional spacing between rows */
.myspendbook-row + .myspendbook-row {
    border-top: 1px solid #333;
}

/* bottom full-width area */
.myspendbook-bottom {
    width: 100%;
    text-align: center;
    padding-top: 25px;
    margin-top: 15px;
}

/* home link area */
.myspendbook-home {
    width: 90%;
    max-width: 800px;
    margin: 15px auto 0 auto;
    text-align: left;
}

/* page footer */
.myspendbook-footer {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
