/* kotsf.com — plain CSS replacing Bootstrap 4. Only the base styles,
   layout classes and components the templates and page content use. */

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
}
main, nav, footer { display: block; }

h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { margin-top: 0; margin-bottom: 1rem; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
b, strong { font-weight: bolder; }
small { font-size: .875em; font-weight: 400; }

a { color: #007bff; text-decoration: none; background-color: transparent; }
a:hover { color: #0056b3; text-decoration: underline; }

img, svg { vertical-align: middle; }
img { border-style: none; }

button {
  margin: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  -webkit-appearance: button;
}
button:not(:disabled) { cursor: pointer; }
button:focus:not(:focus-visible) { outline: 0; }

/* ---- layout ---- */
.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-12, .col-md-4, .col-md-6, .col-md-8 { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

/* ---- utilities ---- */
.m-0 { margin: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ml-3 { margin-left: 1rem !important; }
.p-0 { padding: 0 !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-middle { vertical-align: middle !important; }
.mh-100 { max-height: 100% !important; }
.border-0 { border: 0 !important; }
.rounded-sm { border-radius: .2rem !important; }
.text-muted { color: #6c757d !important; }
.text-dark { color: #343a40 !important; }
a.text-dark:hover, a.text-dark:focus { color: #121416 !important; }
.bg-light { background-color: #f8f9fa !important; }
.list-unstyled { padding-left: 0; list-style: none; }
.bold { font-weight: bold; }
.narrow { max-width: 30rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.visually-hidden { display: none; }

/* ---- page frame ---- */
@media screen and (min-width: 601px) {
  main { min-height: calc(-40px + 100vh); padding-top: 56px; }
}
footer > .container { padding-right: 15px; padding-left: 15px; }

/* ---- navbar ---- */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
}
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.navbar-brand {
  display: inline-block;
  padding-top: .3125rem;
  padding-bottom: .3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}
.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: .5rem 0; }
.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }
.navbar-collapse:not(.show) { display: none; }
.navbar-collapse.collapsing { display: block; height: 0; overflow: hidden; transition: height .35s ease; }
.navbar-toggler {
  padding: .25rem .75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(0, 0, 0, .5);
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: .25rem;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: no-repeat center center / 100% 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-brand { color: rgba(0, 0, 0, .9); }
.navbar-nav .nav-link { color: rgba(0, 0, 0, .5); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: rgba(0, 0, 0, .7); text-decoration: none; }
.navbar-nav .nav-link.active { color: rgba(0, 0, 0, .9); }

@media (min-width: 768px) {
  .navbar { flex-flow: row nowrap; justify-content: flex-start; }
  .navbar-nav { flex-direction: row; }
  .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; }
  .navbar-collapse, .navbar-collapse:not(.show) { display: flex; flex-basis: auto; }
  .navbar-toggler { display: none; }
}

/* ---- portfolio cards ---- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: .25rem;
}
.card-title { margin-bottom: .75rem; }
.card-subtitle { margin-top: -.375rem; margin-bottom: 0; }
.card-text:last-child { margin-bottom: 0; }

/* ---- project carousel ---- */
.carousel-row { background-color: #333; }
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-inner::after { display: block; clear: both; content: ""; }
.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  max-height: 400px;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform .6s ease-in-out;
}
.carousel-item.active, .carousel-item-next, .carousel-item-prev { display: block; }
.carousel-item-next:not(.carousel-item-left), .active.carousel-item-right { transform: translateX(100%); }
.carousel-item-prev:not(.carousel-item-right), .active.carousel-item-left { transform: translateX(-100%); }
@media (prefers-reduced-motion: reduce) { .carousel-item { transition: none; } }

.carousel-control-prev, .carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  opacity: .5;
  transition: opacity .15s ease;
}
.carousel-control-prev:hover, .carousel-control-prev:focus,
.carousel-control-next:hover, .carousel-control-next:focus { color: #fff; outline: 0; opacity: .9; }
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: 50% / 100% 100% no-repeat;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}
.carousel-caption { max-width: 380px; margin: 0 auto; }
div.carousel-image-container, div.carousel-video-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
