html, body {
    width: 100%;
    height: 100%;
    overflow: auto;
}

a:link, a:visited {
    color: #9c0000 !important;
    text-decoration: underline;
}
a:hover, a:hover {
    color: #ff0000 !important;
    text-decoration: underline;
}

p {
    margin: 0 0 5px 0;
    padding: 0;
}
td p:last-child {
    margin: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

.gray {
    color: #ccc;
}

#body {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 30px 5% 0 5%;
    background: #222 url('../images/background.png') fixed center bottom no-repeat;
}

.container {
    max-width: 800px;
    min-height: 100%;
    margin: 0 auto;
    padding: 0 0 10px 0;
    background: #fff;
    border: 2px solid #555;
    border-bottom-width: 0;
}

#header {
    position: relative;
}

#logo {
    width: 100%;
}

#logout {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
}

#menu {
    width: 100%;
}
#menu td {
    padding: 20px 0;
}
#menu td.left {
    text-align: left;
}
#menu td.center {
    text-align: center;
}
#menu td.right {
    text-align: right;
}

#main {
    padding: 0 20px;
}

#register {
    margin-left: 10px;
}

#items {
    width: 100%;
}

.item {
    border-style: solid;
    border-width: 1px 0 0 0;
    border-color: #ccc;
}
.item td {
    padding: 20px 0;
}

.item-date {
    width: 120px;
    color: #ccc;
}
.item-deadline {
    width: 200px;
    color: #ccc;
}

.item-attachment,
.item-video {
    width: 30px;
    font-size: 20px;
    text-align: center;
}

.item-grade {
    width: 120px;
    text-align: center;
}

.remodal {
    text-align: left;
}

.grade-column {
    width: 30px;
}

.square {
    border-radius: 0 !important;
}

.required {
    color: red
}
