.btn-primary {
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: #fff;
    --bs-btn-disabled-bg: #4d4d4d;
    --bs-btn-disabled-border-color: #4d4d4d;
}

.btn-secondary {
    --bs-btn-bg: #ff6600;
    --bs-btn-border-color: #ff6600;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d84200;
    --bs-btn-hover-border-color: #d84200;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d84200;
    --bs-btn-active-border-color: #d84200;
    --bs-btn-disabled-bg: #4d4d4d;
    --bs-btn-disabled-border-color: #4d4d4d;
}

html {
	font-size: 20px;
}

body {
	color: white;
	background-color: #ee4296;
	line-height: 1.6;
}

body.revealed {
	background-color: #ee4296;
}

main {
	position: relative;
	overflow: hidden;
	width: 100%;
}

main.unrevealed {
	min-height: 100vh;
}

h1, h2, h3, h4, h5 {
	margin-bottom: 0;
	line-height: 1.2;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

h2 {
	font-size: 2.5rem;
}

h3 {
	font-size: 1.2rem;
}

p {

}

.wrapper {
	width: 95%;
	max-width: 60rem;
}

.btn {
	-webkit-transition: opacity 0.5s ease;
		-ms-transition: opacity 0.5s ease;
			transition: opacity 0.5s ease;
}

.btn.hidden {
	pointer-events: none !important;
	opacity: 0;
}

a.btn:hover {
	text-decoration: none;
}

.custom-invalid-feedback {
	display: none;
	width: 100%;
	margin-top: .25rem;
	font-size: .875em;
	color: var(--bs-form-invalid-color);
}

.custom-invalid-feedback.show {
	display: block;
}

.bg {
	background-position-y: 0;
	background-position-x: 50%;
	background-size: cover;
	background-repeat: no-repeat;
}

a { color: white; text-decoration: none; }
a:hover { color: #ed4698; text-decoration: none; }

.color-pink {
	color: #ed4698;
}

.bubblegumpop {
	font-family: "bubblegum-pop-vanilla", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.text-wrap-1 {
	max-width: 36rem;
	margin: 0 auto;
}


/*
	MAIN CONTAINER
*/
.main-container {
	width: 100%;
    display: flex;
    flex-direction: column;
}

.main-container.unrevealed {
	min-height: 100vh;
}

@media (min-width: 1000px) and (max-aspect-ratio: 16/8) {
	.main-container.unrevealed {
		height: 100vh;
	}
}

.main-container .fill {
	flex-grow: 1;
	background-color: #330617;
}

.main-container.revealed .fill {
	background-color: #6c1939;
}


/*
	HEADER
*/
.header {
	position: relative;
	left: 50%;
	width: 100%;
	min-width: 96em;
	font-size: 1rem;

	-webkit-transform: translateX(-50%);
		-ms-transform: translateX(-50%);
			transform: translateX(-50%);
}

.main-container.unrevealed .header {
	background-color: #ee4296;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 80%;
    background-position-x: 50%;	
}

.header img {
	pointer-events: none;
}

.header img.header-bg {
	display: block;
	width: 100%;
}

.header img.nyt-kaupoissa {
	position: absolute;
    top: 5.5%;
    left: 65.4%;
    width: 14.4em;

    -webkit-transform: rotate(27deg);
    	-ms-transform: rotate(27deg);
    		transform: rotate(27deg);
}

.header img.nyt-kaupoissa.reveal-on-scroll {
	-webkit-transform: scale(0) rotate(0deg);
		-ms-transform: scale(0) rotate(0deg);
			transform: scale(0) rotate(0deg);

	-webkit-transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1.4) 0.5s;
		-ms-transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1.4) 0.5s;
			transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1.4) 0.5s;
}

.header img.nyt-kaupoissa.reveal-on-scroll.reveal {
	-webkit-transform: scale(1) rotate(27deg);
		-ms-transform: scale(1) rotate(27deg);
			transform: scale(1) rotate(27deg);
}


/*
	MAIN CONTENT
*/
.main-content {
	position: relative;
	width: 100%;
}

.main-content.offset {
	margin-top: -39.3rem;
}


/*
	GRID
*/
.grid {
	position: relative;
	display: grid;
	gap: 1.56rem;
	padding: 2.7rem 0;
}

.grid.cols-3 {
 	grid-template-columns: repeat(3, 1fr);
}

.grid.cols-3 > div {
	display: flex;
	flex-direction: column;
}

.grid-text p {
 	margin: 0;
}

.grid-text a {
	display: block;
	font-weight: bold;
    margin-top: 1.2rem;
}

.grid .grid-media {
	position: relative;
	width: 100%;
	flex-shrink: 0;
}

.grid .grid-media video {
	display: block;
	width: 100%;
	border-radius: 2rem;
}

.grid .grid-text {
	padding: 2.4rem 0;
	flex: 1;
	box-sizing: border-box;
}

.grid .grid-text h3 {
	margin-bottom: -0.2em;
}

.grid .grid-text h2 {
	margin-bottom: 0.5rem;
}


/*
	COUNTDOWN
*/
.countdown {
	display: flex;
	flex-wrap: nowrap;
    margin: 0 auto;
    justify-content: center;
}

.countdown.countdown-cols-4 {
	max-width: 50%;
}

.countdown > * {
	width: 2.7em;
	text-align: center;
}

.countdown-time {
	font-family: "bubblegum-pop-vanilla", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 1.5em;
	color: white;
}

.countdown-label {
	font-family: "bubblegum-pop-vanilla", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 0.4em;
	color: white;
}

.reveal-countdown {
	position: absolute;
	top: 45%; left: 50%;
	width: 90%;
	max-width: 22em;
	font-size: 3.3rem;

	-webkit-transform: translateX(-50%);
		-ms-transform: translateX(-50%);
			transform: translateX(-50%);
}

.reveal-countdown .animate {
	animation: gelatine 0.5s 1 forwards;
	transform-origin: center;
}

@keyframes gelatine {
  0%   { transform: scale(1, 1); }

  10%  { transform: scale(0.7, 1.3); }
  20%  { transform: scale(1.3, 0.7); }

  35%  { transform: scale(0.8, 1.2); }
  50%  { transform: scale(1.15, 0.85); }

  65%  { transform: scale(0.92, 1.08); }
  80%  { transform: scale(1.05, 0.95); }

  90%  { transform: scale(0.98, 1.02); }
  100% { transform: scale(1, 1); }
}

.reveal-countdown .logo {
	display: block;
	margin: 0 auto;
	width: 6em;
}


.reveal-countdown .reveal-image {
	position: relative;
	display: block;
	margin: 0 auto;
	width: 6em;
}

.reveal-countdown .reveal-image img {
	display: block;
	width: 100%;
}

.reveal-countdown .reveal-image img.product-shadow {
	z-index: 1;
	position: relative;
}

.reveal-countdown .reveal-image img.product {
	opacity: 0; z-index: 2;
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;

	-webkit-transition: opacity 1.5s linear;
		-ms-transition: opacity 1.5s linear;
			transition: opacity 1.5s linear;
}

.reveal-countdown .reveal-image.reveal img.product {
	opacity: 1;
}


/*
	BOTTOM IMAGE
*/
.bottom-image {
	position: relative;
	margin-top: 1.6rem;
}

.bottom-image .link-wrapper {
	position: absolute;
	top: 50%; left: 2rem;
	max-width: 19rem;
}

.bottom-image a {
	position: relative;
	display: block;
	font-size: 2.5rem;
	line-height: 1.2;

	-webkit-transition: transform 0.3s ease;
		-ms-transition: transform 0.3s ease;
			transition: transform 0.3s ease;

	-webkit-transform: scale(1);
		-ms-transform: scale(1);
			transform: scale(1);
}

.bottom-image a:hover {
	-webkit-transform: scale(0.9);
		-ms-transform: scale(0.9);
			transform: scale(0.9);
}

.bottom-image img.uusi-energia {
    position: absolute;
    width: 15.3rem;
    top: -15%;
    left: 47%;
}

.bottom-image img.people {
	position: relative;
	display: block;
	width: 78.8%;
	margin-left: auto;
}


/*
	LINK BANNER
*/
.link-banner {
	font-size: 2.5rem;
	padding: 1.5rem;
	background-color: #52102b;
}

.link-banner .link-wrapper {
	max-width: 7.5em;
	margin: 0 auto;
}

.link-banner a {
	position: relative;
	display: block;
	font-size: 1em;
	line-height: 1.2;

	-webkit-transition: transform 0.3s ease;
		-ms-transition: transform 0.3s ease;
			transition: transform 0.3s ease;

	-webkit-transform: scale(1);
		-ms-transform: scale(1);
			transform: scale(1);
}

.link-banner a:hover {
	-webkit-transform: scale(0.9);
		-ms-transform: scale(0.9);
			transform: scale(0.9);
}


@media all and (min-width: 1921px) {

	html {
		font-size: 1.041667vw;
	}

}


@media all and (max-width: 1300px) {

	html {
		font-size: 18px;
	}

}

@media all and (max-width: 1100px) {

	html {
		font-size: 16px;
	}

}

@media all and (max-width: 1000px) {

	html {
		font-size: 18px;
	}

	.wrapper {
		width: 90%;
		max-width: none;
	}

	.header img.nyt-kaupoissa {
	    top: 1%;
	    left: 55%;
	}

	.reveal-countdown {
		font-size: 2.8rem;
	}

	.grid {
		padding-bottom: 1.5rem;
	}

    .grid.cols-3 {
	    grid-template-columns: repeat(2, 1fr);
	}

	.grid.cols-3 > div:last-child:nth-child(odd) {
		/* Styles for last "odd" grid */
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - 2rem) / 2);
	}

	.bottom-image {
		margin-top: 15%;
	}

	.bottom-image img.uusi-energia {
		width: 35%;
		left: 34%;
	}

	.bottom-image img.people {
		width: 110%;
		left: -2%;
	}

}

@media all and (max-width: 799px) {

	.countdown.countdown-cols-4 {
		max-width: 80%;
	}

}

@media all and (max-width: 699px) {

	.header {
		width: 90em;
		min-width: 0;
        font-size: 2.9vw;
	}

	.header img.nyt-kaupoissa {
		width: 12em;
	}

	.reveal-countdown {
		font-size: 10vw;
	}

	.main-container.revealed .main-content {
		margin-top: -105%;
    }

	.grid {
		padding: 1.5rem 0;
	}

	.grid.cols-3 {
	    grid-template-columns: 1fr;
	}

	.grid.cols-3 > div:last-child:nth-child(odd) {
		/* Back to default values */
		grid-column: auto;
		justify-self: stretch;
		width: auto;
	}

	.grid .grid-text {
		padding-top: 2rem;
		padding-bottom: 0.5rem;
	}

	.grid .grid-media video {
	    width: 90%;
	    margin: 0 auto;
	    max-width: 350px;
	}

	.bottom-image {
		margin-top: 29%;
	}

	.bottom-image .link-wrapper {
		margin: 2rem auto;
	}

	.bottom-image img.uusi-energia {
        width: 62%;
        left: 14%;
        top: -22%;
	}

	.bottom-image img.people {
		width: 160%;
		left: -40%;
	}

}

@media all and (max-width: 499px) {

	.text-wrap-1 .huutomerkki {
		display: none;
	}

}


@media all and (max-width: 399px) {

	.link-banner {
		font-size: 2.3rem;
	}

}

@media all and (max-width: 350px) {

	html {
		font-size: 16px;
	}

	.grid .grid-media video {
	    width: 80%;
	}

}


