:root{
    --primary-color: #5fa2db;
    --secondary-color: #31d2f2;
    --tertiary-color: #f2f2f2;
    --dark-color: #333;
    --light-color: #fff;
    --disabled-color: #e9ecef;
    --hover-color: #73e6ee85;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --font-size: 1rem;
    --font-weight: 400;
    --line-height: 1.5;
    --border-radius: 0.25rem;
    --transition: all 0.3s linear;

    --active-btn-color-on: #0d6efd;
    --active-btn-color-off: #fff;

    --toggle_width: 50px;
    --toggle_height: 25px;
}

body{
    margin: 0;
    font-family: 'Roboto', sans-serif;
}
.t{
    border: 1px solid black;
}
.bg-image{
	position: absolute;
	background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
	z-index: -1;
    width: 100%;
    height: 100%;
}
.bg-index{
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}
.bg-services{
    background-image: url('../images/background1.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
}
.bg-about{
    background-image: url('../images/background2.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
}
.bg-contact{
    background-image: url('../images/background3.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
}
/*navbar*/
.logo{
    position: absolute;
    top: 0;
    width: 10vw;
    z-index: 1;
}
.brandname{
    position: absolute;
    margin-left: 10vw;
}
.brandname a{
    text-decoration: none;
    color: black;
}
.brandname a:hover{
    text-decoration: none;
    color: #5fa2db;
}
.nav-spacer{
    width: 30vw;
}
.navbar{
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1;
    background-color: white;
}
.navlinks{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    gap: 3vw;
    margin-top: 3vh;
    margin-right: 5vw;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.7);
}
.navlinks a{
    text-decoration: none;
    color: black;
}
.navlinks a:hover{
    text-decoration: underline;
    color: #5fa2db;
}
.container{
    margin-top: 14vh;
}
.active a{
    text-decoration: underline;
    color: #5fa2db;
    border: 1px solid black;
}
.active a:visited{
    color: #5fa2db;
    text-decoration: underline;
}


/*footer*/
.footer{
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    text-align: center;
}
/*flex system*/
.container{
    z-index: 1;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px; /*row, column*/
    padding-top: 3vh;
    padding-bottom: 80px;
}

.row{
    display: inline-flex;
    width: 100%;
    flex-wrap: wrap;
}
.center{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 1vh;
}
/*main item cards, have item-header inside, centered*/
.item{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 90vw;
    min-height: 20vh;
    border: 1px solid black;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    gap: 15px 15px;
}
.item-header{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 3vh;
    padding-top: 15px;
}
.item-header h2{
    margin-top: 10px;
}
.item-body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 80vw;
    min-height: 1vh;
}
.item-image{
    width: 250px;
    overflow:hidden;
    border-radius: 10px;
    height: inherit;
    border:2px solid black;
}
.item-image img{
    display: block;
    width: 100%;
    max-width: 248px;
    height: auto;
    border-radius: 10px;
    border: 1px solid white;
}
.item-image-description{
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 25px;
    width: 50vw;
    min-height: 1vh;
}
.item-image-description p{
    width: 100%;
}

.double_space{
    line-height: 2;
}

.button{
    text-decoration: none;
    color: black;
    background-color: #5fa2db;
    padding: 10px 15px;
    border-radius: 5px;
}
.button:hover{
    text-decoration: none;
    color: white;
    background-color: #31d2f2;
}

/*progress bar*/
.progress_container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-height: 1vh;
    padding-top: 3vh;
}

.progress { 
    width: 30%;
    height: 10px; 
    position: relative;
    background: #555;
    border-radius: 25px;
    padding: 5px;
    box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.3);
  }

  #progress1{
    width: 100%;
  }

  .progress_bar{
    display: block;
    width: 0%;
    height: 100%;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: rgb(43,194,83);
    background-image: linear-gradient(
      center bottom,
      rgb(43,194,83) 37%,
      rgb(84,240,84) 69%
    );
    box-shadow: 
      inset 0 2px 9px  rgba(255,255,255,0.3),
      inset 0 -2px 9px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
  }

  .progress > div:after, .animate > div > div{
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    z-index: 1;
    background-size: 50px 50px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow: hidden;
  }
  .animated-bar{
    animation: move 2s linear infinite;
  }
  .striped-image{
    background-image: linear-gradient(
        -45deg, 
        rgba(255, 255, 255, .2) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, .2) 50%, 
        rgba(255, 255, 255, .2) 75%, 
        transparent 75%, 
        transparent
      );
  }
  .progress_text{
    display: flex;
    width:100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: white;
  }
  @keyframes move {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 50px 50px;
    }
  }

  /*form controls*/
  .w50{
    min-width: 45%;
  }

  .form_item{
    display: flex;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    min-height: 1vh;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 35px;
  }
  .form_label label{
    min-width: 120px;
  }
  .form_item input{
    width: 100%;
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  .form_item input:focus{
    border-color: #5fa2db;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(95, 162, 219, 0.25);
  }

/*buttons*/
.btn{
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn-primary{
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover{
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-primary:focus{
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}
.btn-primary:active{
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}

.active-btn{
    opacity: 0;
}

.active-btn+label{
    user-select: none;
    color: var(--active-btn-color-on);
    border: 1px solid var(--active-btn-color-on);
    background-color: var(--disabled-color);
    border-radius: 5px;
    padding: 15px 10px;
}
.active-btn+label:hover{
    -moz-box-shadow: -0 0 2px 2px var(--hover-color);
    -webkit-box-shadow: 0 0 2px 2px var(--hover-color);
    box-shadow: 0 0 2px 2px var(--hover-color);
}
.active-btn:checked+label{
    color: var(--active-btn-color-off);
    background-color: var(--active-btn-color-on);
    border: 1px solid var(--active-btn-color-off);
    border-radius: 5px;
    padding: 15px 10px;
}

/* toggle check */
.toggle{
	height: 0;
	width: 0;
	visibility: hidden;
}

.toggle_label {
    text-wrap: nowrap;
	cursor: pointer;
	width: var(--toggle_width);
	height: var(--toggle_height);
	background: grey;
	display: block;
	border-radius: var(--toggle_width);
	position: relative;
    text-indent: calc(var(--toggle_width) + 15px);
}

.toggle_label:after {
	content: '';
	position: absolute;
	top: 5px;
	left: 5px;
	width: calc(50% - 10px);
	height: calc(100% - 10px);
	background: #fff;
	border-radius: var(--toggle_width);
	transition: 0.3s;
}

.toggle:checked + .toggle_label {
	background: #bada55;
}

.toggle:checked + .toggle_label:after {
	left: calc(100% - 5px);
	transform: translateX(-100%);
}

.toggle_label:active:after {
	width: var(--toggle_width);
}

.time_slots{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.5;
    column-gap: 20px;
    width: 100%;
    min-height: 1vh;
    padding-top: 3vh;
}

/*shrink navbar when screen is below 990px*/
@media screen and (max-width: 990px) {
    .navlinks{
        margin-top: 50px;
        justify-content: center;
    }
    .nav-spacer{
        width: 0;
    }
    .container{
        margin-top: 95px;
    }
}
/*shrink navbar when screen is below 392px*/
@media screen and (max-width: 392px) {
    .navlinks{
        margin-top: 90px;
        justify-content: center;
        gap: 8px;
    }
    .nav-spacer{
        width: 0;
    }
    .container{
        margin-top: 140px;
    }
    .progress_text{
        font-size: 0.8rem;
    }
    .form_item{
        margin-bottom: 4px;
        margin-top: 4px;
    }
    .footer{
        padding: 5px 5px;
    }
}

.span_section{
    display: flex;
    flex-direction: column;
    width: 40%;
    min-width: 220px;
}

.ul_hours li{
    min-width: 210px;
    white-space: nowrap;
}

.span_100{
    display: inline-block;
    width: 100px;
}