html {
    min-height: 100%;
}

body {
    font-family: 'sans';
    margin: 0;
    min-height: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: stretch;
    color: #777;
    box-sizing: border-box;
}

#header_wrapper {
    padding-bottom: 10px;
    background: linear-gradient(to left, #000, #fff) left top transparent no-repeat;
    background-position-y: 100%;
    background-position-x: center;
    background-size: 100% 10px;
}
#header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
#header #header_right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
}
#header #header_right a {
    color: #333;
    transition: color 0.3s ease;
    text-decoration: none;
}
#header #header_right a:hover {
    color: #000;
}
#header #header_right_top :not(:first-child) {
    margin-left: 40px;
}
#header #header_right_bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#header #header_right_bottom a {
    margin: 0 20px;
}
#header #header_right_bottom a:first-child {
    margin-left: 0;
}
#header #header_right_bottom a:last-child {
    margin-right: 0;
}
#header #header_logo {
    display: inline-block;    
}
#header #header_logout {
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    background-color: transparent;
}

#content_wrapper {
    flex-grow: 1;
}

#footer_wrapper {
    background-color: #777;
}
#footer {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.75rem;
}

#footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
#footer a:hover {
    color: #fff;
}

/********************************************************************************/

.button {
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background-color: #000;
    padding: 5px 25px;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    transition-property: box-shadow, background-color;
    transition-duration:  0.3s;
    user-select: none;
    
}
.button:not(.disabled):hover {
    background-color: #111;;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}
.button.disabled {
    cursor: not-allowed;
    background-color: #777;
}

@media only screen and (max-width: 600px) {
    #header #header_left { margin: 0 auto; }
    #header #header_right { margin: 0 auto; }
    #header #header_right_top { font-size: 0.75rem; text-align: center; margin-bottom: 10px; }
    #header #header_right_bottom { font-size: 0.75rem; text-align: center; }    
    #footer :first-child { order: 2; font-size: 0.5rem; margin: 0 auto; }
    #footer #footer_addr { order: 1; font-size: 0.5rem; margin: 0 auto; margin-bottom: 10px; }
    #footer :last-child { order: 0; margin: 0 auto; margin-bottom: 10px; }
}

/************************************************************************************/

.loader {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.loader div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent;
}
.loader div:nth-child(1) {
  animation-delay: -0.45s;
}
.loader div:nth-child(2) {
  animation-delay: -0.3s;
}
.loader div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
