/*presales kampanjasivu ja arvontasivu*/
body:has(.presales) #section-tertiary h3 {
    margin: 0;
    padding: 7rem 0 8rem;
    color: var(--color4);
    font-size: 3rem;
    text-align: center;
}
body:has(.presales):not(.sivu1) #showcase .hero-slider__text-content {
    padding: 21rem 2rem 10rem 2rem !important;
}
.valitse label.d-block {
    font-size: 21px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}
body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
    font-size: 5.5rem;
}
body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
    font-size: 4.5rem;
}
body:has(.arvontasivu) #main-before > section.content-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
body:has(.arvontasivu) #main-before > section.content-section:has(.arvontaotsikko) {
    padding-top: 7rem;
    padding-bottom: 0;
}
body:has(.presales) #showcase .hero-slider__text-content_inner h3 {
    font-size: 1.8rem;
}
body:has(.arvontasivu) #showcase p {
   	font-weight: 400;
    text-transform: none;
    font-size: 1.5rem;
	display: block !important;
}
body:has(.kampanjasivu) #showcase p {
   	font-weight: 400;
    text-transform: none;
    font-size: 1rem !important;
	display: block !important;
	max-width:1000px;
	margin:0 auto;
	text-shadow: 0px 2px 12px rgb(0 0 0 / 80%);
}
.kyselylomake button.btn.btn-switcher-primary {
    font-weight: 600;
    text-transform: uppercase;
    font-style: italic;
}
body:has(.presales) ul.desktop-main-menu, body:has(.presales) nav {
    display: none;
}
body:has(.presales).nav-gradient .site-header__top {
    background: rgba(0, 0, 0, 0.80) !important;
}
body:has(.presales) .site-header {
    background: transparent;
}
.kyselylomake {
color: var(--color4) !important;
    margin: 10px auto 0px;
    padding: 30px 40px;
    width: 100%;
    max-width: 800px;
    background-color: var(--color3);
    border-radius: 0;
    margin-bottom: 0;
}
.kyselyots h2 {
    font-weight: 700 !Important;
    text-transform: uppercase !important;
    font-size: 4rem !important;
    margin: 0 auto;
}
.valitse label.d-block, .form-group.formField-plaintext.step3 {
    font-size: 21px;
    border-bottom: 2px solid var(--color1);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
	text-align:center;
}
.kyselylomake .form-group {
    width: 100% !important;
}
label.formRadioLabelHolder.valitse {
    padding-left: 2rem;
}
.form-group.formField-plaintext.step3 {
    font-size: 21px;
}
.hide-form-title span.formCheckboxLabel {
    display: none;
}
.kyselylomake a:hover {
    color: var(--color4);
}
.nostoalue .hero-slider__text-content_inner h2 {
    font-size: 3.2rem !important;
}
.nostoalue .hero-slider__text-content {
    max-width: 1000px !important;
}
body:has(.presales) .align-left h2.contentlist__item-title, body:has(.presales) .editor-content__item:not(.align-center) .contentlist__item-title, body:has(.presales) .contentlist .contentlist__item-title {
    text-align: left !important;
	margin-left: 0 !important;
	    color: var(--color2) !Important;
}

body:has(.presales) .align-left .contentlist__item-title h2, body:has(.presales) .align-left .contentlist__item-title h1, body:has(.presales) .editor-content__item-editor h2, body:has(.presales) .editor-content__item-editor h1 {
    text-align: left !important;
	margin-left: 0 !important;
    color: var(--color2) !Important;
}
body:has(.presales) h2.contentlist__item-title {color: var(--color2) !Important;}
body:has(.presales) .editor-content__item-editor h1 {
    font-size:2.5rem;
}
section.content-section:has(.arvonnanehdot) {
    padding-top: 1rem;
    font-size: 13px;
}
.kyselylomake button.btn.btn-switcher-primary:hover {
    background: var(--color4);
    color: var(--color5);
}
.nostoalue a.btn.btn-switcher-primary.btn-switcher-highlight {
    background: var(--color1) !important;
    border-color: var(--color1) !important;
}
.nostoalue a.btn.btn-switcher-primary.btn-switcher-highlight:hover {
    background: var(--color4) !important;
    border-color: var(--color5) !important;
}
.hero-slider__item .hero-slider__text-content h1 {
        margin-bottom: 1rem;
    }
.ehdot label.d-block {font-size:13px;}
@media (min-width:992px) {
body:has(.kampanjasivu) h2.contentlist__item-title {
		font-size:2.6rem;
	}
}
@media (max-width:1400px) {
	body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 4.5rem;
	}
	body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 4.2rem;
	}
}
@media (max-width:1200px) {
	body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 4rem;
	}
	body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 3.6rem;
	}
	body:has(.presales):not(.sivu1) #showcase .hero-slider__text-content {
		padding: 15rem 2rem 5rem 2rem !important;
	}
	.kysely-cover {
		padding-left: 25px;
		padding-right: 25px;
	}
	.nostoalue .hero-slider__text-content_inner h2 {
		font-size: 2.4rem !important;
	}
}
@media (max-width:991px) {
	body:has(.kampanjasivu) .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
	body:has(.presales) .editor-content__item-editor h1 {
		font-size:2rem;
	}
	#main-content .ots-keskitys .contentlist__item-title {
		text-align: center;
	}
}
@media (max-width:767px) {
	body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 3.5rem;
	}
	body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 3rem;
	}
	body:has(.presales) #showcase .hero-slider__text-content_inner h3 {
		font-size: 1.5rem;
	}
	body:has(.presales) #showcase p {
		font-size: 1.3rem;
	}
	body:has(.presales) #section-tertiary h3 {
		font-size: 2.2rem;
	}
	body:has(.arvontasivu) #main-before > section.content-section:has(.arvontaotsikko) {
		padding-top: 4rem;
	}
	.nostoalue .hero-slider__text-content_inner h2 {
		font-size: 1.4rem !important;
	}
	body:not(.sivu1) .nostoalue .hero-slider__text-content {
		padding: 7rem 1rem 2rem;
	}
	.kyselylomake {
		padding: 30px 15px;
	}
}
@media (max-width:575px) {
	body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.kampanjasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 2.2rem;
	}
	body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h2, body:has(.arvontasivu):not(.sivu1) #showcase .hero-slider__text-content h1 {
		font-size: 1.85rem;
	}
	body:has(.presales) .editor-content__item-editor h1 {
		font-size:1.4rem;
	}
	body:has(.presales) #showcase .hero-slider__text-content_inner h3 {
		font-size: 1.1rem;
	}
	body:has(.arvontasivu) #showcase p {
		font-size: 1.1rem;
	}
	body:has(.presales) #section-tertiary h3 {
		font-size: 1.8rem;
	}
	body:has(.presales):not(.sivu1) #showcase .hero-slider__text-content {
        padding: 9rem 1rem 3rem 1rem !important;
    }
	body:has(.presales) #showcase a.btn {
		padding: 0.75rem 1rem !important;
	}
	body:has(.kampanjasivu) #showcase p {
        font-size: 0.9rem !important;
    }
}
/*presales kampanjasivun ja arvontasivun muotoilut päättyy*/

.sivu1 #showcase h1, body:not(.sivu1) #showcase h1 {
    font-size: 4.25rem;
	text-shadow: 0 0 10px rgb(0,0,0,0.3);
	    margin: 0 0;
}
.laskuri {
    padding-bottom: 48px !important;
}
@media (max-width:991px) {
	.sivu1 #showcase h1, body:not(.sivu1) #showcase h1 {
		font-size: 3.5rem;
	}
}
@media (max-width:767px) {
	.sivu1 #showcase h1, body:not(.sivu1) #showcase h1 {
		font-size: 2.7rem;
	}
}
@media (max-width:560px) {
	.sivu1 #showcase h1, body:not(.sivu1) #showcase h1 {
		font-size: 2rem;
	}
}
/* Ryhmäliikunta vko-kalenteri*/
table.viikko {
	overflow:auto;
	margin:25px 0;
	border-collapse: collapse;
	border:0;
}
table.viikko tr {
    width: 14.285%;
    display: inline-block;
    float: left;
}
table.viikko tr td {
    display: block;
    width: 100%;
    padding: 5px;
    text-align: center;
    clear: both;
    float: left;
	min-height: 107px;
	border-style: solid;
    border-collapse: collapse;
    border-spacing: unset;
    border-width: 1px;
    border-color: #808080;
	font-size: 13px;
}
table.viikko tr td:first-child {
	min-height:unset;
}
table.viikko td:nth-child(odd) {
    background: #eee;
}


	/*border-fixes*/
	table.viikko tr td,
	table.viikko td:nth-child(odd) {
    	border-right: 0;
    	border-bottom: 0;
	}
	table.viikko tr:last-child td:nth-child(odd),
	table.viikko tr:last-child td:nth-child(even) {
		border-right:1px solid;
	}
	table.viikko tr td:last-child {
		border-bottom:1px solid;
	}
	
	@media (max-width:800px) {
	table.viikko tr {
		float: none;
		width: 100%;
	}
	table.viikko tr td {
		min-height:unset;
		border-right:1px solid !important;
	}
	table.viikko tr td:last-child {
		border-bottom:2px solid;
	}
}

/* GymPlus related fixes */
#main-content #gp-embed-v2:last-child {
	display: block !important;
	margin: 0 auto;
}