﻿/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 50px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  max-width: 1000px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 26px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  overflow: hidden;
  padding: 15px 20px 0;
  background-color: #669bdd;
  color: white;
}

.modal-header .stit {color:#fff}

.modal-body {padding:20px 20px 10px;font-size:1.167em;line-height:1.5;background-color: #FEFEFE;}
.modal-body dl {overflow:hidden;border:1px solid #d4d4d4;border-top:2px solid #0091df}

.modal-footer {
  padding: 15px 20px 30px;
  /* background-color: #b85c5c; */
  color: white;
}

.time_wrap dl {display:flex; flex-wrap:wrap;}
.time_wrap dt {float: left;width: 35%;padding: 10px;border-right: 1px solid #d4d4d4;border-bottom: 1px solid #d4d4d4;background:#f3f4f6;color:#0099fe;text-align:center}
.time_wrap dd {float: left;width: 65%;padding: 10px;border-bottom: 1px solid #d4d4d4;}
.time_wrap dt:last-of-type, .time_wrap dd:last-of-type {border-bottom:0}

.btn_reg {height:32px;padding:0 12px;border:1px solid #e50060;border-radius:3px;line-height:31px;background:#fff;color:#e50060}
.btn_reg:hover {background:#e50060;color:#fff}
.btn_end {line-height:32px}


@media screen and (min-width:768px) {
    .modal-body {padding:40px 40px 10px;font-size:1.333em}
    .time_wrap dd {padding: 10px 27px}
}

@media screen and (min-width:1024px) {
  .time_wrap dt {width:25%}
  .time_wrap dd {width:75%}
}