body,
html {
  font-family: "Lato", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
}
h1 {
}
h1 strong {
  font-weight: 900;
}
h2 {
  line-height: 20px;
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #555;
}
h3 {
  font-size: 16px;
  font-weight: 700;
}
h4 {
  font-size: 20px;
  color: #666;
}
h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}
p {
  /*	font-family: 'Open Sans', sans-serif; */
  /*	font-family: 'Dongle', sans-serif; */
  font-family: "Arsenal", sans-serif;
}
a {
  color: #81ace3;
}
a:hover,
a:focus {
  text-decoration: none;
  color: #222;
}
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
.clearfix {
  display: inline-block;
}
* html .clearfix {
  height: 1%;
}
.clearfix {
  display: block;
}
ul,
ol {
  padding: 0;
  webkit-padding: 0;
  moz-padding: 0;
  list-style: none;
}
hr {
  height: 3px;
  width: 60px;
  text-align: center;
  position: relative;
  background: #81ace3;
  border: 0;
  margin: 10px auto 30px;
}

p.kaanto {
  unicode-bidi: bidi-override;
  direction: rtl;
}

/* Huomiotekstit punaisella */
.huomio,
p.huomio {
  color: #c00;
}
#engjudge {
  display: none;
}

#fci3,
#fci4,
#fci5,
#fci10 {
  display: none;
}

#fci6,
#fci7,
#fci8,
#fci9 {
  display: none;
}

.btn1 {
  border: none;
  display: inline-block;
  margin: 4px 6px;
  cursor: pointer;
  background-image: url("../img/fin-icon.png");
  background-size: 50px;
  background-color: rgba(0, 0, 0, 0);
  width: 50px;
  height: 50px;
}

.btn2 {
  border: none;
  display: inline-block;
  margin: 4px 6px;
  cursor: pointer;
  background-image: url("../img/eng-icon.png");
  background-size: 50px;
  background-color: rgba(0, 0, 0, 0);
  width: 50px;
  height: 50px;
}

/* Navigation */
#menu {
  padding: 5px;
  transition: all 0.8s;
}
#menu.navbar-default {
  background-color: rgba(129, 172, 227, 0.95);
  border-color: rgba(231, 231, 231, 0);
}
#menu a.navbar-brand {
  text-transform: uppercase;
  font-size: 22px;
  color: #000;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
#menu a.navbar-brand i.fa,
#menu a.navbar-brand .navbar-favicon {
  color: #000;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
#menu a.navbar-brand img.navbar-favicon {
  display: block;
}
#menu.navbar-default .navbar-nav > li > a {
  text-transform: uppercase;
  color: #000;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}
#menu.navbar-default .navbar-nav > li > a:hover {
  color: #5a8fd4;
}
.on {
  /*	background-color: #222222 !important; */
  background-color: #81ace3 !important;
  padding: 0 !important;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #5a8fd4 !important;
  background-color: transparent;
}
.navbar-toggle {
  border-radius: 0;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #81ace3;
  border-color: #81ace3;
}
.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #000;
}
/* Home Style */
header {
  background: url(../img/header-bg2026.jpg) no-repeat center center;
  background-size: cover;
  color: #333;
  position: relative;
  height: 100%;
  margin-top: 50px;
  padding-bottom: 40px;
}
header p {
  color: #333;
  font-size: 20px;
  margin-bottom: 80px;
}
.intro-text {
  position: relative;
  padding-top: 300px;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 200px;
}
.intro-text H1 {
  font-size: 60px;
  text-transform: uppercase;
  color: #000;
}
.btn-default {
  color: #000;
  font-family: "Open Sans", sans-serif;
  background-color: rgba(129, 172, 227, 0.3);
  border: 2px solid #81ace3;
  margin: 0 8px;
  padding: 12px 24px;
  font-size: 16px;
  transition: all 0.5s;
  border-radius: 4px;
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active {
  background-color: #81ace3;
  color: #000;
  border-color: #81ace3;
}
/* Services Section */
#services-section {
  padding: 120px 0;
  background-image: -moz-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/2.jpg");
  background-image: -webkit-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/2.jpg");
  background-image: -ms-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/2.jpg");
  background-image: linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/2.jpg");
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed !important;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  /*	background-color: #fff; */
}
#services-section h4 {
  font-weight: 700;
}
.space {
  margin-top: 40px;
}
#services-section i.fa {
  font-size: 40px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #81ace3;
}

/* Ilmoittautuminen mobiilissa: yksi sarake, sisältö peräkkäin */
@media (max-width: 767px) {
  #services-section .ilmoittautuminen-row {
    display: block !important;
  }
  #services-section .ilmoittautuminen-row .col-md-6,
  #services-section .ilmoittautuminen-row .col-sm-6 {
    width: 100% !important;
    max-width: 100%;
    display: block !important;
  }
  #services-section .ilmoittautuminen-row .ilmoittautuminen-netti-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
  }
}

/* Gallery Section 
==============================*/

#works-section {
  padding: 120px 0;
  background-image: -moz-linear-gradient(
      top,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.85)
    ),
    url("../img/3.jpg");
  background-image: -webkit-linear-gradient(
      top,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.85)
    ),
    url("../img/3.jpg");
  background-image: -ms-linear-gradient(
      top,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.85)
    ),
    url("../img/3.jpg");
  background-image: linear-gradient(
      top,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.85)
    ),
    url("../img/3.jpg");
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed !important;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  /*	background-color: #f6f6f6; */
}
#works-section .tuomarit-toggle-wrap {
  margin-bottom: 16px;
}
#works-section .tuomarit-toggle-label {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}
#works-section .tuomarit-toggle-hint {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #555;
}
#works-section .tuomarit-toggle-btn {
  font-size: 12px;
  padding: 4px 10px;
  margin-right: 6px;
  color: #000 !important;
  background-color: #fff;
  border: 1px solid #81ace3;
}
#works-section .tuomarit-toggle-btn:hover {
  color: #000 !important;
  background-color: #e8f0fa;
  border-color: #81ace3;
}
#works-section .tuomarit-toggle-btn.active {
  background-color: #81ace3;
  color: #000 !important;
  font-weight: bold;
  border-color: #81ace3;
}

/* Tuomarit-napit mobiilissa / iPhone: pakota musta teksti ja näkyvä tausta/reunat */
@media (max-width: 767px) {
  #works-section .tuomarit-toggle-btn,
  #works-section .tuomarit-toggle-btn:hover,
  #works-section .tuomarit-toggle-btn:active,
  #works-section .tuomarit-toggle-btn.active,
  #works-section .tuomarit-toggle-btn.active:hover,
  #works-section .tuomarit-toggle-btn.active:focus {
    color: #000 !important;
    -webkit-text-fill-color: #000;
    background-color: #e8e8e8 !important;
    border: 1px solid #666 !important;
    -webkit-appearance: none;
    appearance: none;
  }
  #works-section .tuomarit-toggle-btn.active,
  #works-section .tuomarit-toggle-btn.active:hover,
  #works-section .tuomarit-toggle-btn.active:focus {
    background-color: #81ace3 !important;
    border-color: #5a8fd4 !important;
    color: #000 !important;
    -webkit-text-fill-color: #000;
  }
  /* FCI-ryhmänapit (Valitse ryhmä) – erottuvat taustasta mobiilissa */
  #works-section .btns {
    color: #000 !important;
    -webkit-text-fill-color: #000;
    background-color: #e8e8e8 !important;
    border: 1px solid #666 !important;
    -webkit-appearance: none;
    appearance: none;
  }
  #works-section .btns:hover,
  #works-section .btns:active,
  #works-section .btns.active,
  #works-section .btns.active:hover {
    color: #000 !important;
    -webkit-text-fill-color: #000;
  }
  #works-section .btns.active {
    background-color: #81ace3 !important;
    border-color: #5a8fd4 !important;
  }
}
.categories {
  padding-bottom: 30px;
  text-align: center;
}
ul.cat li {
  display: inline-block;
}
ol.type li {
  display: inline-block;
  margin-left: 20px;
}
ol.type li a {
  color: #aaa;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 0;
}
ol.type li a.active {
  color: #81ace3;
  border: 1px solid #81ace3;
}
ol.type li a:hover {
  color: #81ace3;
  border: 1px solid #81ace3;
}
.isotope-item {
  z-index: 2;
}
.isotope-hidden.isotope-item {
  z-index: 1;
}
.isotope,
.isotope .isotope-item {
  /* change duration value to whatever you like */
  -webkit-transition-duration: 0.8s;
  -moz-transition-duration: 0.8s;
  transition-duration: 0.8s;
}
.isotope-item {
  margin-right: -1px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.isotope {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition-property: height, width;
  -moz-transition-property: height, width;
  transition-property: height, width;
}
.isotope .isotope-item {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform, opacity;
  -moz-transition-property: -moz-transform, opacity;
  transition-property: transform, opacity;
}
.portfolio-item {
  margin-bottom: 30px;
}
.portfolio-item .hover-bg {
  height: 170px;
  overflow: hidden;
  position: relative;
}
.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #ddd;
  background: rgba(0, 0, 0, 0.66);
  padding: 17% 0 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}
.hover-bg .hover-text > h4 {
  opacity: 0;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  color: #ddd;
}
.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.hover-bg .hover-text > i {
  opacity: 0;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  transition: all 0.3s;
}
.hover-bg:hover .hover-text > i {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
}
.hover-bg:hover .hover-text {
  opacity: 1;
}
#works-section i.fa {
  font-size: 40px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #81ace3;
}
/* About Section */
#about-section {
  padding: 120px 0;
  background-color: #fff;
}
#about-section p {
  margin-top: 20px;
  margin-bottom: 30px;
}
/* Tiedustelut: mobiilissa lisää tilaa sponsorin logon ja yhteystietojen väliin */
@media (max-width: 767px) {
  #about-section .tiedustelut-left-col {
    margin-bottom: 96px;
  }
}
/* Team Section */
#team-section {
  padding: 100px 0;
  background-image: -moz-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-image: -webkit-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-image: -ms-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-image: linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed !important;
  border-top: 1px solid #eee;
  /*    border-bottom: 1px solid #eee; */
}
.section-title.center {
  padding: 30px 0;
}
.section-title h2 {
  margin-bottom: 30px;
}
#works-section .section-title {
  text-align: center;
}
#works-section .section-title h2,
#works-section .section-title hr {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.tuomarit-rotu-table {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.tuomarit-rotu-table th,
.tuomarit-rotu-table td {
  text-align: center;
}
.rotu-detail > p {
  text-align: center;
}
img.img-circle.team-img {
  width: 150px;
  height: 150px;
  border: 4px solid transparent;
  transition: all 0.5s;
}
#team-section .team .thumbnail:hover > img.img-circle.team-img {
  border: 4px solid #81ace3;
  font-size: medium;
}
#team-section .thumbnail {
  background: transparent;
  border: 0;
}
#team-section .thumbnail .caption {
  padding: 9px;
}
/* Achivements Section */
#achievements {
  padding: 80px 0;
  background-color: #81ace3;
}
.achievement-box {
  text-align: center;
  margin: 20px 0;
}
.achievement-box h4 {
  font-size: 16px;
  color: #222;
  text-transform: uppercase;
}
.achievement-box span.count {
  color: #000;
  font-size: 50px;
  font-weight: 500;
  display: block;
}
/* Contact Section */
#contact-section {
  padding: 120px 0 60px 0;
  background-image: -moz-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-image: -webkit-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-image: -ms-linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-image: linear-gradient(
      top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../img/1.jpg");
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed !important;
  /*    border-top: 1px solid #eee; */
  border-bottom: 1px solid #eee;

  /*	background-color: #f6f6f6; */
}

#about {
  background-image: -moz-linear-gradient(
      top,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.5)
    ),
    url("../img/taustat/skitta.jpg");
  background-image: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.5)
    ),
    url("../img/taustat/skitta.jpg");
  background-image: -ms-linear-gradient(
      top,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.5)
    ),
    url("../img/taustat/skitta.jpg");
  background-image: linear-gradient(top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    url("../img/taustat/skitta.jpg");
  background-size: cover !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed !important;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

#contact-section h3 {
  font-size: 20px;
  font-weight: 400;
}
#contact-section form {
  padding: 30px 0;
}
#contact-section i.fa {
  color: #81ace3;
  font-size: 16px;
  margin-bottom: 10px;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact-section .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 2px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}
#contact-section .form-control:focus {
  border-color: inherit;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}
#contact-section .btn {
  background: transparent;
  border: 2px solid #81ace3;
  border-radius: 4px;
  padding: 10px 20px;
  margin-top: 20px;
  color: #81ace3;
}
#contact-section .btn:hover,
#contact-section .btn:focus {
  background: #81ace3;
  border: 2px solid #81ace3;
  color: #000;
}
#contact-section .text-danger {
  color: #cc3300;
  text-align: left;
}

#works-section .btns:active,
.btns.active {
  padding: 1px 6px;
  border-width: 2px;
  border-style: outset;
  border-color: -internal-light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
  background-color: darkgrey;
  color: black;
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}
/* Social Section */
#social-section {
  padding: 30px 0;
  background-color: #81ace3;
  text-align: center;
}
#social-section .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#social-section .social i.fa {
  font-size: 24px;
  padding: 4px 5px;
  color: #000;
  transition: all 0.5s;
}
#social-section .social i.fa:hover {
  color: #333;
}
/* Footer */
#footer {
  background-color: #222222;
  color: #777;
  padding: 15px 0 10px 0;
  text-align: center;
}
#footer p {
  font-size: 13px;
  margin-top: 10px;
}
#footer a {
  color: #999;
}
#footer a:hover,
a:focus {
  text-decoration: none;
  color: #81ace3;
}

@media (max-width: 1024px) {
  #menu a.navbar-brand {
    text-transform: uppercase;
    font-size: 14px;
    color: #000;
    font-weight: 900;
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  # .xs-font {
    font-size: 9px;
  }
  .col-xs-7 {
    width: 50%;
  }
  .col-xs-5 {
    width: 50%;
  }
}

@media (max-width: 992px) {
  .navbar-header {
    float: none;
  }
  .navbar-left,
  .navbar-right {
    float: none !important;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-collapse {
    border-top: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .navbar-fixed-top {
    top: 0;
    border-width: 0 0 1px;
  }
  .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar-nav {
    float: none !important;
    margin-top: 7.5px;
  }
  .navbar-nav > li {
    float: none;
  }
  .navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .collapse.in {
    display: block !important;
  }
}
Here
  is
  a
  demo
  on
  JSFIDDLE.
  Older
  Versions
  If
  you’re
  using
  a
  version
  of
  Bootstrap
  before
  3.1
  then
  this
  is
  the
  code
  you
  will
  need
  to
  change
  the
  navbar
  breakpoint:-
  @media
  (max-width: 992px) {
  .navbar-header {
    float: none;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-collapse {
    border-top: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar-nav {
    float: none !important;
    margin: 7.5px -15px;
  }
  .navbar-nav > li {
    float: none;
  }
  .navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 768px) {
  #menu a.navbar-brand {
    text-transform: uppercase;
    font-size: 13px;
    color: #000;
    font-weight: 900;
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .content {
    padding: 40% 0 0;
  }

  /* Header pienempi tableteilla ja mobiililla */
  header {
    max-height: 72vh;
    min-height: 320px;
    padding-bottom: 24px;
  }
  .intro-text {
    padding-top: 200px;
    padding-bottom: 120px;
  }

  .xs-font {
    font-size: 9px;
  }
  .col-xs-7 {
    width: 50%;
    padding-left: 60px;
  }
  .col-xs-5 {
    width: 50%;
  }
}

@media (max-width: 603px) {
  #menu.navbar-default {
    background-color: #81ace3;
  }
  #menu a.navbar-brand {
    font-size: 12px;
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  /* Header pienempi puhelimella – kuva ei vie koko näyttöä, turkoosi viiva ei leikkaa päivämäärää */
  header {
    background-size: contain;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
    padding-top: 0;
    padding-bottom: 16px;
    margin-top: 60px;
    max-height: 52vh;
    min-height: 280px;
    height: auto;
  }

  .intro-text {
    padding-top: 0;
    padding-bottom: 72px;
  }

  label {
    float: none !important;
  }
  .hover-bg .hover-text {
    padding: 12% 10%;
  }
  #fci1 .col-xs-5 {
    width: 50%;
  }
  #fci1 .col-xs-7 {
    width: 50%;
  }
  #fci3 .col-xs-5 {
    width: 40%;
  }
  #fci3 .col-xs-7 {
    width: 60%;
  }
  #fci4 .col-xs-5 {
    width: 40%;
  }
  #fci4 .col-xs-7 {
    width: 60%;
  }
  #fci5 .col-xs-5 {
    width: 40%;
  }
  #fci5 .col-xs-7 {
    width: 60%;
    padding-left: 10px;
  }
  #fci6 .col-xs-5 {
    width: 40%;
  }
  #fci6 .col-xs-7 {
    width: 60%;
  }
  #fci7 .col-xs-5 {
    width: 40%;
  }
  #fci7 .col-xs-7 {
    width: 60%;
  }
  #fci10 .col-xs-5 {
    width: 40%;
  }
  #fci10 .col-xs-7 {
    width: 60%;
  }
  .col-xs-7 {
    width: 50%;
    padding-left: 30px;
  }
  .col-xs-5 {
    width: 50%;
  }
}

@media (max-width: 460px) {
  header {
    max-height: 48vh;
    min-height: 260px;
  }
  .intro-text {
    padding-bottom: 56px;
  }
  .xs-font {
    font-size: 9px;
  }
  .xsmed {
    font-size: 9px;
  }
  #fci5 .col-xs-7 {
    width: 55%;
    padding-left: 0px;
  }
  #fci5 .col-xs-5 {
    width: 45%;
  }
  .col-xs-7 {
    width: 50%;
    padding-left: 0px;
  }
  .col-xs-5 {
    width: 50%;
  }
}

@media (max-width: 420px) {
  .xs-font {
    font-size: 8px;
  }

  #fci1 .col-xs-5 {
    width: 45%;
  }
  #fci1 .col-xs-7 {
    width: 55%;
  }
  #fci3 .col-xs-5 {
    width: 50%;
  }
  #fci3 .col-xs-7 {
    width: 50%;
  }
  #fci5 .col-xs-7 {
    width: 55%;
    padding-left: 0px;
  }
  #fci5 .col-xs-5 {
    width: 45%;
  }
  #fci6 .col-xs-5 {
    width: 40%;
  }
  #fci6 .col-xs-7 {
    width: 60%;
  }
  #fci7 .col-xs-5 {
    width: 40%;
  }
  #fci7 .col-xs-7 {
    width: 60%;
  }
}

@media (max-width: 360px) {
  .hover-bg .hover-text {
    padding: 22% 10%;
  }

  .xsborder {
    margin: 0px;
    padding: 0px;
  }
  #fci1 .col-xs-5 {
    width: 45%;
  }
  #fci1 .col-xs-7 {
    width: 55%;
  }
  #fci6 .col-xs-5 {
    width: 30%;
  }
  #fci6 .col-xs-7 {
    width: 70%;
  }
  #fci7 .col-xs-5 {
    width: 30%;
  }
  #fci7 .col-xs-7 {
    width: 70%;
  }
  .col-xs-7 {
    width: 55%;
    padding: 0px;
  }
  .col-xs-5 {
    width: 45%;
    padding-left: 0px;
  }
}

/* Aikataulut: kaksi saraketta vierekkäin, vasen sarake oikealle tasattu, mobiilissa kaikki peräkkäin */
.aikataulu-keha-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: flex-start;
}
.aikataulu-keha-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aikataulu-keha-col-left {
  align-items: flex-end;
}
.aikataulu-keha-col-right {
  align-items: flex-start;
}

/* Aikataululaatikot: yhtenäinen leveys, pisteviiva nimen ja määrän välissä */
.aikataulu-keha-box {
  width: 300px;
  min-width: 300px;
  border: 1px solid #333;
  margin: 8px 0;
  padding: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
  box-sizing: border-box;
}
.aikataulu-keha-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.aikataulu-keha-table .aikataulu-header {
  font-weight: bold;
  font-size: 15px;
  padding: 2px 0;
}
.aikataulu-keha-table .aikataulu-tuomari {
  font-weight: bold !important;
}
.aikataulu-keha-table .aikataulu-maara-solu {
  text-align: right;
  width: 2em;
  padding-right: 12px;
  padding-left: 2px;
  box-sizing: border-box;
}
.aikataulu-keha-table .aikataulu-klo-solu {
  text-align: right;
  width: 3.5em;
  padding-left: 10px;
  padding-right: 4px;
}
.aikataulu-keha-table .aikataulu-note {
  padding: 2px 0;
}
.aikataulu-keha-table .aikataulu-subtitle {
  font-style: italic;
}
/* Pisteviiva (dot leader) koiran nimen ja määrän välissä */
.aikataulu-rivi-dots {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  vertical-align: baseline;
}
.aikataulu-nimi {
  min-width: 0;
  flex: 0 1 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.aikataulu-pisteviiva {
  flex: 1;
  min-width: 8px;
  border-bottom: 1px dotted #bbb;
  margin: 0 2px;
  align-self: flex-end;
  margin-bottom: 3px;
}
.aikataulu-rivi-dots .aikataulu-maara {
  flex-shrink: 0;
  text-align: right;
  min-width: 1.5em;
  padding-right: 12px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .aikataulu-keha-wrapper {
    flex-direction: column;
  }
  .aikataulu-keha-col-left,
  .aikataulu-keha-col-right {
    align-items: stretch;
  }
  .aikataulu-keha-box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
