body {
    width:530px;
    margin-left: auto;
    margin-right: auto;
    background-color: #deeff8;
}

header {
    width: 100%;
    margin: 0;
    background-color: #d2dbec;
    padding: 5px;
}

header img {
    width: 100%;

}

nav {
    margin-bottom: 10px;
    width: 100%;
    display: table;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 4px 0;
}

div.nav {
    display: table-cell;
    text-align: center;
    background-color: #292929;
    color: #ffffff;
    height: 32px;
    vertical-align: middle;
}

div.nav a {
    color: #ffffff;
    display: block;
    text-decoration: none;
}

footer {
    text-align: center;
    font-size: 0.8em;
}

#content .tb {
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
}

#content .tc1 {
    display: table-cell;
    width:30%;
    background-color: #d2dbec;
    padding: 5px 5px 5px 10px;
    font-weight: bold;
    font-size: 0.8em;
    vertical-align: middle;
}

#content .tc2 {
    display: table-cell;
    width: auto;
    background-color: #ffffff;
    padding: 5px;
}


#content .tctl {
    padding-top: 25px;
    border-radius: 15px 0 0 0; 
}

#content .tctr {
    padding-top: 25px;
    border-radius: 0 15px 0 0; 
}

#content .tcbr {
    padding-bottom: 25px;
    border-radius: 0 0 15px 0; 
}

#content .tcbl {
    padding-bottom: 25px;
    border-radius: 0 0 0 15px; 
}

#content .center {
    text-align: center;
}

#content .widthFull {
    width: 90%;
}

#content .float {
    float: left;
}

#content .clrfloat {
    clear: both;
}

#content div.widthFull {
    margin-left: auto;
    margin-right: auto;
}

#content div.title {
    font-size: 0.8em;
    margin-bottom: 5px;
}

#content textarea.widthFull {
    resize: vertical; 
    min-height: 50px;
}

input.widthFull.submit {
    padding: 10px;
    border-radius: 10px;
    background-color: #216492;
    color: #ffffff;
    border: none;
}

div.btn {
    width: 90%;
    padding: 18px 0 18px 0;
    border-radius: 10px;
    background-color: #292929;
    color: #ffffff;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

div.btn a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: normal;
    display: block;
}

.red {
    color: red;
}

.center {
    text-align: center;
}

h4.subtitle {
    text-align: center;
    margin: 5px;
}

.comment {
    width:80%;
    margin: 10px auto 10px auto;
    border-radius: 10px;
    padding: 5px;
}

.backbtn {

}

#checkPanel {
    width: 90%;
    background-color: #d2dbec;
    margin: 10px auto 5px auto;
    padding: 15px;
    border-radius: 15px;
}

.checkError {
    margin-top: 5px;
    margin-bottom: 5px;
}

.checkErrorMsg {
    text-align: center;
    margin: 20px auto 20px auto;
    font-size: 1.2em;
    font-weight: bold;
}

table.formView {
    width: 100%;
}

.btpack {
    margin-top: 10px;
    margin-bottom: 10px;
}

.btpack input.widthFull {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.mailInfo {
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}

@media screen and (max-width: 639px) {
    body {
        width:100%;
        margin: 0;
    }

    header {
        padding: 5px 0 5px 0;
    }

    #content .tb {
        display: block;
        background-color: #d2dbec;
    }

    #content .tb:nth-child(even) {
        background-color: #afc6ec;
    }

    #content .tb:last-child {
        background-color: #d2dbec;
    }

    #content .tc1 {
        display: block;
        width: 90%;
        font-size: 1.0em;
    }

    #content .tb:nth-child(even) div.tc1 {
        background-color: #afc6ec;
    }    

    #content .tb:last-child div.tc1 {
        background-color: #d2dbec;
    }    

    #content .tc2 {
        display: block;
        width:auto;
        background-color: #d2dbec;
    }

    #content .tb:nth-child(even) div.tc2 {
        background-color: #afc6ec;
    }

    #content .tb:last-child div.tc2 {
        background-color: #d2dbec;
    }

    #content .tc2 input {
        font-size: 1.5em;
    }

    #content .tc2 select {
        font-size: 1.5em;
    }

    #content .tctl, #content .tctr, #content .tcbr, #content .tcbl {
        border-radius: 0; 
    }

    div.btn {
        padding: 18px 0 18px 0;
    }

    div.btn a {
        font-size: 1.2em;
        font-weight: bold;
    }
}
