/*
Theme Name: KKS
Theme URI: https://it-tupa.fi
Author: Mika Soininen
Author URI: https://it-tupa.fi
Description: Custom Theme for KKS from IT-Tupa Oy
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags:
Template: genesis
Text Domain: kks

Wellcome to use Custom Theme created by IT-Tupa Oy.
*/

body {
    margin: 0px;
    font-weight: normal;
    font-family: 'Open Sans', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    height: 100%;
    line-height: 1.2;
    margin: 0px;
    color: #EEE;
    outline-color: #333;
    background-color: #000000;
}

header {
	margin-bottom: 0px;
}

main.content {
  margin-right: 0px;
  padding: 20px;
  margin-bottom: 50px;
}

article.entry {
	border: none;
}

.site-header {
  position: relative;
  z-index: 1000;
  overflow: visible;
  background-color: #000000;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 100%;
  background-color: rgba(0,0,0,0.5);
  /* opacity: 80%; */
}

.site-header img {
  max-width: 100%;
}

.site-inner {
    padding-left: 20px;
    padding-right: 20px;
}

body:not(.home) .site-inner {
  position: relative;
  margin-top: 150px;
  /* top: 150px; */
}

.site-header .header-widget-area {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding-left: 30px;
}


.footer-widgets {
	/* background-color: #000; */
  /* background-color: #161616; */
    padding-top: 20px;
    padding-bottom: 20px;
    box-shadow: 0px 0px 15px #AAA;
}

.footer-widgets .wrap {
	margin-left: 0px;
	transform: none;
    text-align: center;
    text-wrap: pretty;
	display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.footer-widget-area.footer-widgets-1 {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-widgets .widget-title {
	margin-top: 10px;
	font-size: 18px;
	font-weight: 600;
}

.footer-widget-area {
    display: block;
}

.footer-widgets p {
	margin-bottom: 5px;
	margin-top: 5px;
}

.footer-fb-logo {
  max-height: 50px;
}

.site-footer {
  display: none;
}

h1.entry-title,
h1.archive-title,
h2.entry-title,
h2.archive-title {
	margin-top: 0px;
	margin-bottom: 30px;
}

h1, h2, h3, h4 {
	color: #528CFF;
    /* line-height: 36px; */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald';
	margin: 0px;
	padding-bottom: 0px;
	margin-top: 40px;
  margin-bottom: 10px;
  font-weight: normal;
}

h1,
h1.entry-title,
h1.archive-title {
  /* color: #ff9900; */
  font-size: 2em;
  margin-bottom: 1.1em;
  margin-top: 1.9em;
  text-transform: uppercase;
}

h1.entry-title {
  text-align: center;
}

h2 {
    font-size: 1.9em;
    margin-top: 1.1em;
}

h3 {
    font-size: 1.5em;
    margin-top: 1em;
}

h4 {
    font-size: 1.2em;
    margin-top: 0.9em;
}

h5 {
    font-size: 1.0em;
    margin-top: 0.8em;
}

p {
    margin-bottom: 10px;
}

button {
	background-color: #006600;
	color: white;
	font-weight: bold;
	border-radius: 4px;
}

ul.wp-block-list {
  margin-top:10px;
}

ul.wp-block-list li {
  margin-bottom: 10px;
}

a {
  color: #528CFF;
  
}

a:hover {
  color: #528CFF;
  text-decoration: none;
}

a[href$=".pdf"] {
  background-image: url('images/pdf.svg');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1.2em auto;
  display: inline-block;
  height: 1.3em;
  padding-left: 2.1em;
  vertical-align: middle;
}

.error-404 {
  text-align: center;
}

.kncc-banner--bar {
  background-color: #171717;
  border-top: 5px solid white;
}

details {
	margin-top: 30px;
}

details summary {
	font-size: 20px;
}

.entry-content {
  max-width: 1200px;
  margin: 0 auto;
}

.genesis-skip-link {
  display: none;
}

.custom-header {
  display: block;
  height: 300px;
  width: 100% !important;
  overflow: hidden;
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  background-position-y: top;
  position: absolute;
  top: 0px;
}

.custom-header .soliloquy-container,
.custom-header .soliloquy-wrapper,
.custom-header .soliloquy-viewport,
.custom-header .soliloquy-slider,
.custom-header .soliloquy-item {
height: 100% !important;
width: 100% !important;
max-height: 300px;
margin: 0 auto;
}

.custom-header .soliloquy-controls {
  display: none !important;
}

.custom-header .soliloquy-image {
position: static !important;
width: auto !important;
height: auto !important;
max-width: 100% !important;
max-height: 100% !important;
max-height: 300px;
height: 300px !important;
display: block;
margin: 0 auto;
}

.home .site-header {
  background-color: rgba(0,0,0,1);
}

.home .custom-header {
  position: relative;
}

.wp-block-quote {
  border-radius: 5px;
  border: 5px solid #528cff;
  background-color: transparent;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 0.2em;
}

.wp-block-button {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.wp-block-button a {
  border-radius: 8px !important;
  background: white;
  color: #0036A3;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 0 0 #FFFFFF;
  transition: box-shadow 0.2s ease, color 0.2s ease;
}

.wp-block-button a:hover {
  color: #000;
  box-shadow: 0 0 0 5px #FFFFFF;
}

.wp-block-list li {
  margin-bottom: 0.5em;
}

.wp-block-list li:last-child {
  margin-bottom: 0;
}

td a {
  margin-top: 5px;
  margin-bottom: 5px;
  height: auto !important;
}

table thead,
.wp-block-table thead {
  border-bottom: 3px solid #555;
}

table th,
.wp-block-table th,
table td,
.wp-block-table td {
  border: 1px solid #555 !important;
}

table th,
.wp-block-table th {
  white-space: nowrap;
}

.wp-block-esab-accordion-child {
  border: 1px solid #528CFF;
}

.wp-block-esab-accordion-child .esab__head {
  color: #528CFF;
  border: 4px solid transparent;
  padding: 5px;
  fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wp-block-esab-accordion-child:not(.esab__active_accordion) .esab__head:hover {
  border: 4px solid #528CFF;
  color: #FFFFFF;
}

.wp-block-esab-accordion-child.esab__active_accordion {
  border: 1px solid #528CFF;
}

.wp-block-esab-accordion-child .esab__head:hover h2,
.wp-block-esab-accordion-child .esab__head:hover h3,
.wp-block-esab-accordion-child .esab__head:hover h4,
.wp-block-esab-accordion-child .esab__head:hover h5,
.wp-block-esab-accordion-child .esab__head:hover h6,
.wp-block-esab-accordion-child.esab__active_accordion .esab__head h2,
.wp-block-esab-accordion-child.esab__active_accordion .esab__head h3,
.wp-block-esab-accordion-child.esab__active_accordion .esab__head h4,
.wp-block-esab-accordion-child.esab__active_accordion .esab__head h5,
.wp-block-esab-accordion-child.esab__active_accordion .esab__head h6,
.wp-block-esab-accordion-child.esab__active_accordion .esab__head{
  color: #FFFFFF;
}

.wpcf7-form {
  width: fit-content;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 40px;
  border-radius: 10px;
  background-color: #161616;
  padding: 20px;
  box-shadow: 5px 5px #212121;
}

.wpcf7-form > p {
  margin-bottom: 20px;
}

.wpcf7-form .wpcf7-form-control-wrap input {
  margin-top: 5px;
  margin-bottom: 5px;
}

.wpcf7-form .info {
  margin-top: -10px;
}

.wpcf7-form .info p {
  padding: 0px;
  margin: 0px;
  padding-left: 20px;
  color: #DDDDDD;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #528CFF;
  padding-top: 5px;
  padding-bottom: 5px;
}

.wpcf7-submit {
  cursor: pointer;
padding: 10px;
border-radius: 8px !important;
background: white;
color: #528CFF;
font-weight: 600;
border: none;
box-shadow: 0 0 0 0 #FFFFFF;
transition: box-shadow 0.2s ease, color 0.2s ease;
}

.wpcf7-submit:hover {
color: #000;
box-shadow: 0 0 0 5px #FFFFFF;
}

@media screen and (max-width: 640px) {
  .site-header .widget-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding-left: 10px;
      padding-right: 10px;
  }

  .custom-header,
  .custom-header .soliloquy-image{
      height: 150px !important;
  }

  .site-inner {
      padding-left: 5px;
      padding-right: 5px;
  }
}