/*
Theme Name: MSA Remontit
Theme URI: https://it-tupa.fi
Author: Mika Soininen
Author URI: https://it-tupa.fi
Description: Custom Theme 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: custom

Wellcome to use Custom Theme created by IT-Tupa Oy.
*/

html {
	font-family: sans-serif;
	-ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body.page {
	background-color: #f2f2f2;
    color: #222;
    font-family: 'Roboto', serif;
    font-size: 16px;
    line-height: 1.6;
	margin: 0;

	background-image: url(/wp-content/uploads/2025/02/bodybg.jpg);
	background-position: left top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body .is-layout-flex {
    display: flex
;
    justify-content: space-evenly;
}

header {
	margin-bottom: 0px;
}

h1 {
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 62px;
    color: #a70e13;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

h2, h3 {
    font-size: 36px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    margin-bottom: 30px;
    padding: 0;
}

.h2-punainen {
    font-size: 52px;
    color: #a70e13;
}

p {
    margin: 0 0 24px;
    padding: 0;
}

.entry-content {
    width: 100%;
    overflow: hidden;
}

h2 {
    max-width: 100%;
  overflow-wrap: break-word; 
  word-wrap: break-word;     
  word-break: break-word;
  white-space: normal;
}

.entry-content ol, .entry-content p, .entry-content ul, .quote-caption {
    margin-bottom: 25px;
}

.site-container {
    margin: 0px;
    width: 100%;
    max-width: 100%;
    background-color: rgba(255,255,255,0.8);
}

.site-header {
    margin: 0 auto;
    min-height: 100px;
    box-shadow: 1px 1px 10px #f1f1f1;
    border-top: 8px solid #a70e13;
    border-bottom: 1px solid #e6e6e6;
    width: 100%;
    background-color: #fff;
    padding-top: 0px;
    position: relative;
}

.title-area {
    width: 100%;
    background-color: #fff;
    /* padding: 27px; */
    padding: 0px;
    min-height: 139px;
    position: absolute;
    top: 0px;
    max-width: 223px;
    -webkit-box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.48);
    -moz-box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.48);
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.48);
    left: 5%;
    z-index: 999;
    align-content: center;
}

.title-area img {
    display: block;
    margin: 0px auto;
    padding: 0px;
}

.header-nav-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 15%;
}

.header-contact-info a {
    margin-left: 30px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    top: 37px;
    color: rgb(68, 68, 68);
    text-decoration: none;
}

.header-contact-info a:hover {
    background-color: #f1f1f1;
    text-decoration: none;
}

.nav-primary {
    font-size: 14px;
}

.nav-primary a {
    color: rgb(68, 68, 68);
    font-size: 1.35em;
}

.nav-primary a:hover {
    color: white !important;
}

.nav-primary .wrap {
    margin-bottom: 0px;
    display: flex;
    justify-content: flex-end;
}

.soliloquy-container {
    width: 100%;
    max-width: 100% !important;
    max-height: none !important;
}

.soliloquy-container .soliloquy-image {
    width: 100%;
}

.soliloquy-caption {
    display: inline-block;
}

@keyframes zoomIn {
            from {
                transform: scale(0); /* Alkaa nollakoosta */
                opacity: 0; /* Läpinäkyvä alussa */
            }
            to {
                transform: scale(1); /* Kasvaa täyteen kokoon */
                opacity: 1; /* Täysin näkyvä lopussa */
            }
        }

.soliloquy-caption {
    position: absolute;
    z-index: 1120;
    width: auto !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translate(-50%,-100px);
    padding: 0px !important;
    background-color: transparent !important;
    
}

.soliloquy-container .soliloquy-caption .soliloquy-caption-inside {
    background: rgba(0, 0, 0, .7);
    font-size: 40px;
    // line-height: 1.25;
    display: block;
    color: #fff;
    text-shadow: 0 1px 1px #000;
    text-align: center;
    padding: 30px;
    height: 100% !important;
    
    -webkit-animation-name: zoomIn;
    animation-name: zoomIn;
        -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.soliloquy-pager {
    text-align: left !important;
    margin-left: 20px !important;
}

.soliloquy-controls-direction {
    display: none;
}

.soliloquy-container:hover .soliloquy-controls-direction {
    display: block;
}

.soliloquy-prev,
.soliloquy-next {
    background-color: transparent !important;
}

.yhteysnappi a {
    background: #a70e13;
    border: none;
    text-align: left !important;
    border-radius: 0;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    padding-top: 12px;
    padding-right: 24px;
    padding-bottom: 12px;
    padding-left: 24px;
    
    -webkit-transition: all 0.1sease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1sease-in-out;
}

.yhteysnappi a:hover {
    background: #333;
}

.yhteysnappi a:after {
    content: '\2794';
    font-weight: bold;
    font-size: 20px;
    margin-left: 10px;
}

@-webkit-keyframes wobble-skew-on-hover {
  16.65% {
    -webkit-transform: skew(-12deg);
    transform: skew(-12deg);
  }
  33.3% {
    -webkit-transform: skew(10deg);
    transform: skew(10deg);
  }
  49.95% {
    -webkit-transform: skew(-6deg);
    transform: skew(-6deg);
  }
  66.6% {
    -webkit-transform: skew(4deg);
    transform: skew(4deg);
  }
  83.25% {
    -webkit-transform: skew(-2deg);
    transform: skew(-2deg);
  }
  100% {
    -webkit-transform: skew(0);
    transform: skew(0);
  }
}
@keyframes wobble-skew-on-hover {
  16.65% {
    -webkit-transform: skew(-12deg);
    transform: skew(-12deg);
  }
  33.3% {
    -webkit-transform: skew(10deg);
    transform: skew(10deg);
  }
  49.95% {
    -webkit-transform: skew(-6deg);
    transform: skew(-6deg);
  }
  66.6% {
    -webkit-transform: skew(4deg);
    transform: skew(4deg);
  }
  83.25% {
    -webkit-transform: skew(-2deg);
    transform: skew(-2deg);
  }
  100% {
    -webkit-transform: skew(0);
    transform: skew(0);
  }
}

.yhteysnappi a:hover, .yhteysnappi a:focus, .yhteysnappi a:active {
  -webkit-animation-name: wobble-skew-on-hover;
  animation-name: wobble-skew-on-hover;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

.entry-content > .is-nowrap {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.entry-content > .is-nowrap > .wp-block-group {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content > .wp-block-group {
    padding-left: 10px;
    padding-right: 10px;
}

.tausta2 {
    background-image: url(/wp-content/uploads/2025/02/msa-tausta-2.jpg);
	background-position: left top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

.yhteistyokumppanit a:hover img {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.footer-widgets {
    background-color: #111;
    color: #fff;
    clear: both;
    font-size: 14px;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.footer-widgets-1 {
    width: 100%;
    text-align: center;
}

.footer-widgets .custom-html-widget {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.footer-widgets h4 {
    width: 100%;
    margin: 0px;
    color: #fff;
    font-size: 32px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
}

.footer-some {
    display: inline-flex;
    margin-top: 0px;
}

.footer-some a {
    padding: 0px;
    display: inline-flex;
    background-color: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.footer-some a:hover {
    background-color: rgb(255, 0, 8);
}

.footer-some a img {
    max-width: 100%;
    background-color: white;
    border-radius: 50%;
}

.footer-some a img:hover {
    filter: grayscale(20%);
}

.footer-some a.facebook img {
    margin-left: -2px;
    margin-top: -3px;
}

@media screen and (max-width: 1200px) {

    .title-area {
        width: auto;
        background-color: #fff;
        padding: 0;
        margin-bottom: 20px;
        min-height: 91px;
        position: relative;
        max-width: none;
        box-shadow: none;
        display: inline-block;
    }

    .site-header .wrap {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 20px;
    }

    .title-area {
        width: auto;
        background-color: #fff;
        padding: 0;
        min-height: 91px;
        position: relative;
        max-width: none;
        box-shadow: none;
        display: inline-block;
    }
    
    .header-nav-row {
        display: inline-flex;
        position: relative;
    }

}

@media screen and (max-width: 480px) {
    h2 {
        font-size: 1.6em;
    }
}