@media screen and (min-width: 800px) {

    h2 {
        font-size: 140%;
        font-weight: normal;
        padding: 0.5em 0;
        margin: 0.5em auto;
        border-bottom: solid 1px #ddd;
    }

    h3 {
        font-size: 85%;
        font-weight: bold;
        padding: 0.5em 0;
        margin: 1em auto;
        color: #666;
    }

    p {
        margin: 1em auto;
        padding: 0 1em;
    }

    table.rowhead th, table.rowhead td {
        border-bottom: solid 1px #eee;
        padding: 0.5em 1em;
    }

    .main {
        text-align: left;
        margin: 1em auto;
        padding: 0 1em;
        clear: both;
    }


    .banner {
        text-align: right;
        font-size: 80%;
        color: #ccc;
        padding: 1em;
    }

}
@media screen and (max-width: 640px) {

    h2 {
        font-size: 125%;
        font-weight: normal;
        padding: 0.25em 0em;
        margin: 1em auto;
        border-bottom: solid 1px #ddd;
        color: #666;
    }

    h3 {
        font-size: 85%;
        font-weight: bold;
        padding: 0.5em 0;
        margin: 1em auto;
        color: #666;
    }

    p {
        margin: 0 auto;
        padding: 0.5em 0.5em;
    }

    table.rowhead th, table.rowhead td {
        padding: 0.5em 0.5em;
        font-size: 90%;
    }


    .main {
        text-align: left;
        margin: 0 auto;
        padding: 0.5em 0.5em;
        clear: both;
    }

    .banner {
        text-align: center;
        font-size: 80%;
        color: #ccc;
        padding: 0.5em;
    }

}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *


 */

.maticons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 110%;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

.maticons.small {
    font-size: 80%;
}
.maticons.big {
    font-size: 125%;
}
.maticons.super {
    font-size: 160%;
}

.maticons.blue {
    color: yellowgreen;
}
.maticons.green {
    color: limegreen;
}
.maticons.gray {
    color: gray;
}
.maticons.gold {
    background: #333;
    background: -webkit-linear-gradient(top, #fceabb 0%,#fccd4d 50%,#f8b500 51%,#fbdf93 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.attention {
    color: #ff6070;
}


body {
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI","Noto Sans Japanese","ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
    line-height: 1.4em;
    color: #333;
    margin: 0 auto;
    padding: 0 0;
}

input, select, textarea {
    padding: 0.25em 0.5em;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 90%;
    margin: 0.25em auto;
}


p.center, div.center {
    text-align: center;
}

p.note, div.note, span.note {
    font-size: 80%;
    color: #888;
}

div.actions, p.actions {
    font-size: 80%;
    text-align: right;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    font-size: 90%;
}
table.rowhead {
    width: 100%;
}

table.rowhead th {
    padding: 0.5em 1em;
    color: #666;
    font-size: 85%;
    background: linear-gradient(to bottom, #eee, #ddd);
}

table.rowhead tr:last-child th, table.rowhead tr:last-child td {
    border-bottom: solid 1px #eee;
}

table.rowhead tr:first-child th, table.rowhead tr:first-child td {
    border-top: solid 1px #eee;
}

table.colhead td {
    padding: 0.5em 0.5em;
    text-align: left;
}
table.colhead th {
    padding: 0.5em 0.5em;
    text-align: right;
}

td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }


form {
    display: inline;
}

label {
    font-weight: bold;
    color: #666;
    font-size: 80%;
}

.alert-wrapper {
    position: absolute;
    width: 100%;
    top: 50px;
    text-align: center;
}

.alert {
    margin: 0 auto;
    padding: 1em 1em;
    z-index: 9999;
    text-align: center;
    font-weight: bold;
    font-size: 90%;
    background-color: #e78;
    color: white;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.4);
}

.alert a {
    color: white;
}

a:link, a:visited {
    color: #0066c0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.button.small {
    height: 28px;
    line-height: 28px;
    font-size: 80%;
    padding: 0 1em;
    font-weight: normal;
}

a.button.red {
    background-color: #d66;
    background: linear-gradient(#d66, #d44);
    border: solid 1px #b33;
    color: white;
    text-shadow: 0 1px 0 rgba(167, 84, 84, 1), 0 0 0 rgba(255, 255, 255, 0);
}

a.button.red:hover {
    border: solid 1px #c33;
    background: linear-gradient(#d66, #c33);
}

a.button,
input[type="submit"],
input[type="button"] {
    box-sizing: border-box;
    display: inline-block;
    height: 36px;
    text-align: center;
    text-decoration: none;
    line-height: 36px;
    margin: 0 0;
    padding: 0 1em;
    font-size: 100%;
    font-weight: normal;
    border: solid 1px #aaa;
    border-radius: 4px;
    background-color: #eee;
    background: linear-gradient(#eee, #ddd);
    cursor: pointer;
    color: #444;
    text-shadow: 0 1px 0 rgba(250, 250, 250, 1), 0 0 0 rgba(255, 255, 255, 0);
}

a.button.eye,
input[type="submit"].eye,
input[type="button"].eye {
    background-color: #f0c14b;
    background: linear-gradient(#ffd15b, #e0b13b);
    border-color: #a88734 #9c7e31 #846a29;
    border: solid 1px #a08040;
    text-shadow: 0 1px 0 rgba(245, 220, 180, 1), 0 0 0 rgba(255, 255, 255, 0);
}

a.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(#eee, #ccc);
    border: solid 1px #999;
}

a.button.eye:hover,
input[type="submit"].eye:hover,
input[type="button"].eye:hover {
    border: solid 1px #907030;
    background: linear-gradient(#ffd15b, #e0b13b);
}


.footer {
    color: #888;
    text-align: center;
    font-size: 70%;
    padding: 1em 0;
}
.footer a {
    color: #888;
}

.top-buttons { text-align: center; }
.top-buttons #new-attendance,
.top-buttons #close-attendance {
    font-size: 140%;
    padding: 0.5em 0.75em;
    margin: 0.5em 0.5em;
    height: 2.5em;
    background: linear-gradient(to bottom, #eee, #ccc);
}

span.bigger {
    font-size: 150%;
}

nav.pagination {
    font-size: 100%;
    text-align: center;
    margin: 1em auto;
}

nav.pagination span {
    padding: 0 0.25em;
}

nav.pagination span.page {
    font-size: 90%;
}
nav.pagination a, nav.pagination em {
    margin-left: 0.25em;
    margin-right: 0.25em;
}
nav.pagination em {
    font-style: normal;
    font-size: 90%;
}


.header {
    background-color: #333;
    height: 60px;
}

.header .home a {
    float: left;
    color: white;
    font-size: 150%;
    margin: 0 auto;
    padding: 0.25em 0.25em;
}

.header h1 {
    float: left;
    display: inline;
    font-size: 90%;
    text-align: left;
    border: none;
    margin: 0 auto;
    padding: 0.8em 0.25em;
    font-weight: bold;
    color: #666;
}

.header .banner {
    font-size: 90%;
    text-align: right;
}
.header .banner a {
    color: #ccc;
}

.header form {
    display: inline;
}

.admin-menu {
    background-color: #eee;
    font-size: 80%;
    text-align: center;
    padding: 0.5em 0;
    margin: 0 auto;
}
.admin-menu ul {
    margin: 0 auto;
    padding: 0 0;
}
.admin-menu li {
    display: inline;
    margin: 0 0.5em;
    padding: 0 0;
}

.username {
    background-color: #def;
    color: #26c;
    font-size: 90%;
    border: solid 1px #26c;
    padding: 0.1em 1em;
    border-radius: 4px 4px;
    margin: 0 0.25em;
    line-height: 2em;
}
.username:hover {
    background-color: #cde;
    text-decoration: none;
}

.badge {
    font-size: 80%;
    color: darkgoldenrod;
    background-color: #fec;
    padding: 0.25em 0.5em;
    border-radius: 4px 4px;
}
.badge a {
    color: darkgoldenrod;
}

.errors {
    font-size: 85%;
    color: #c36;
}

.field_with_errors select {
    background-color: #fdd;
    border: solid 1px red;
}
