
@font-face {
    font-family: 'Ruukki-Distillery-gothink';
    font-style: normal;
    font-weight: normal;
    letter-spacing: 0.5rem;
    src: local('Ruukki-Distillery'), url('resources/fonts/Mahottajafonttiloinen.eot') format('eot'),
    url('resources/fonts/Mahottajafonttiloinen.oft') format('oft'),
    url('resources/fonts/Mahottajafonttiloinen.ttf') format('ttf'),
    url('resources/fonts/Mahottajafonttiloinen.woff') format('woff'),
    url('resources/fonts/Mahottajafonttiloinen.svg') format('svg');
}

@font-face {
    font-family: '';
    font-style: normal;
    font-weight: normal;
    src: local('Ruukki-Distillery'), url('resources/fonts/Mahottajafonttiloinen.eot') format('eot'),
    url('resources/fonts/Mahottajafonttiloinen.oft') format('oft'),
    url('resources/fonts/Mahottajafonttiloinen.ttf') format('ttf'),
    url('resources/fonts/Mahottajafonttiloinen.woff') format('woff'),
    url('resources/fonts/Mahottajafonttiloinen.svg') format('svg');
}

h3,
h2,
h1 {
    font-family: var(--family);
    font-kerning: normal;
    -webkit-font-kerning: normal;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: var(--weight);
}

p,
h4,
a,
button {
    font-family: 'Ruukki-Distillery-gothink', Fallback, sans-serif;
    line-height: 100%;
}

h1,
h2 {
    font-variation-settings: 'wght'800, 'wdth'63;
    /*letter-spacing: -0.04em;*/
    text-transform: uppercase;
    line-height: 100%;
}

p,
i {
    font-variation-settings: 'wght'415, 'wdth'104;
}

a,
button {
    font-variation-settings: 'wght'1200, 'wdth'104, 'slnt'0;
}

a:hover,
button:hover,
#send:hover {
    font-variation-settings: 'wght'900, 'wdth'104, 'slnt'-10;
}

button {
    font-variation-settings: 'wght'800, 'wdth'63;
    letter-spacing: 0.3em;
    text-align: center;
    text-transform: uppercase;
}

.confirmbutton{
    transition-delay:1s;
    width: 20vw;
    max-width: 84px;
}

select, option {
    font-family: 'Ruukki-Distillery-gothink', Fallback, sans-serif;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    line-height:100%; 
    font-size: calc(2vh - 6px); 
    font-weight: 600;
    padding: 4px;   
}

option {
    font-family: 'Ruukki-Distillery-gothink', Fallback, sans-serif;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    line-height:100%; 
    font-size: calc(2vh - 2px); 
    font-weight: 500;
    padding: 4px;   
}

@media (hover: hover) and (pointer: fine) {
    :root {
        --emptyw: 15vh;
        --emptyh: 100vh;
        --sectionheight: 100vh;
        --mobil-hide: block;
        --1stwidth: 70vw;
        --1sttextwidth: 800px;
        --2ndtextwidth: 94vw;
        --2ndtextmaxwidth: 1500px;
        --3rdtextwidth: 900px;
        --contactwidth: 600px;
        --benefitswidth: 400px;
        --2ndheight: 100vh;
        --2ndmaxheight: 84vh;
        --3rdheight: 100vh;
        --family: 'Ruukki-Distillery-gothink', Fallback, sans-serif;
        --officemaxheight: 76vh;
        --footerh: 100vh;
        --footerw: ;
        --globew: auto;
        --footerf: column;
        --footerff: center;
        --footerkmh: 60vh;
    }
}

@media screen and (min-width: 2200px) and (pointer: fine) {
    :root {
        --var: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    :root {
        ---emptyw: 0px;
        --emptyh: 0px;
        --sectionwidth: 100%;
        --mobil-hide: none;
        --2ndheight: ;
        --3rdheight: 70vh;
        --1sttextwidth: 100%;
        --2ndtextwidth: 100%;
        --3rdtextwidth: 100%;
        --family: 'Ruukki-Distillery-gothink', Fallback, sans-serif;
        --weight: 'wght'800, 'wdth'63;
        --globemh: 80vh;
        --globew: auto;
    }
}

@media (hover: none) and (pointer: coarse) {
    :root {
        --footerw: 100vw;
        --tacsw: 100vw;
        --tacsp: calc(5vw + 15px);
        --globew: 100vw;
    }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
    :root {
        --footerh: 40vw;
        --2ndmaxheight: 300vh;
        --officemaxheight: 200vh;
        --mobil-hide: block;
        --globew: 100vw;
        --footerf: row;
        --footerff: flex-start;
        --footerkmh: 30vh;
    }
}

@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
    :root {
        --globew: 100vw;
        --footerf: column;
        --footerff: center;
        --footerkmh: 60vh;
    }
}

#body {
    overscroll-behavior: none !important;
}

body {

    /* letter-spacing: 0.2rem; */
    line-height: 175%;
    text-transform: uppercase; 
    font-weight: 400;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;


    margin: 0;
    overflow-x: hidden;
    background: var(--bgcolor);

    a:hover {
        color: var(--brandcolor);
    }

    -webkit-transition: all 0.6s ease;
    -moz-transition: all 0.6s ease;
    -o-transition: all 0.6s ease;
    transition: all 0.6s ease;
}

:root {
    --bgcolor: #ffffff;
    --switchfill: black;
    --brandcolor: #000000;
    --thumbBG: rgb(180, 180, 180);
}

body::-webkit-scrollbar {
    width: 12px;
}

body,
html {
    scrollbar-width: thin;
    scrollbar-color: #303030 black;
}

body::-webkit-scrollbar-track {
    background: black;
}

body::-webkit-scrollbar-thumb {
    background-color: #303030;
    border-radius: 10px;
    border: 4px solid black;
}

::-moz-selection {
    color: var(--bgcolor);
    background: #b2b1bb;
}

::selection {
    color: var(--bgcolor);
    background: #b2b1bb;
}

.width100vw {
    min-width: 100vw;
}

.width25vw {
    min-width: 25vw;
}

.width75vw {
    min-width: 75vw;
}

.textlink,
a {
    font-family: 'Ruukki-Distillery-gothink', Fallback, sans-serif;
    font-size: 24px;
    padding-left: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

img[data-srcset],
[data-srcset] {
    opacity: 0;
}

img,
[srcset] {
    opacity: 1;
    transition: opacity 2s 0s;
}

#page {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
}

.section {
    background-color: var(--bgcolor);
    transition: background-color 1s;
    display: flex;
    box-sizing: border-box;
    height: var(--sectionheight);
    width: var(--sectionwidth);
    max-width: var(--sectionwidth);
}

.pik>source,
.pik>img {
    will-change: transform;
    width: 100%;
    object-fit: cover;
    margin: 0px;
    padding: 0px;
}


h1 {
    font-size: 230px;
}

h2 {
    font-size: 50px;
    font-weight: bold;
}

h3, p {
    font-size: 14px;
    line-height: 150%;
}

h4, a {
    font-size: 18px;
    line-height: 160%;
}

@media screen and (min-width: 320px) {
    h1 {
        font-size: calc(14px + 76 * ((100vw - 320px) / 680));
    }

    h2 {
        font-size: calc(14px + 8 * ((100vw - 320px) / 680));
    }
    
    h3, p {
        font-size: calc(6px + 3 * ((100vw - 320px) / 680));
    }
    
    h4, a {
        font-size: calc(8px + 3 * ((100vw - 320px) / 680));
    }

    a.anchor {
        font-size: 16px;
    }        
}

@media screen and (min-width: 2000px) {
    h1 {
        font-size: 96px;
    }
    h2 {
        font-size: 44px;
    }

    h3{
        font-size: 32px;
    }

    h3{
        font-size: 24px;
    }
    p {
        font-size: 8px;
    }    

    a {
        font-size: 20px;
    }

    a.anchor {
        font-size: 24px;
    }
}

.fancy {
    animation: anim1 1s ease-out;
}

.alt1.fancy {
    animation: anim2 1s ease-out;
}

.alt2.fancy {
    animation: anim3 0.65s ease-out;
}

.alt2b.fancy {
    animation: anim3b 1s ease-out;
}

.alt2c.fancy {
    animation: anim3c 1.65s ease-out;
}

.alt3.fancy {
    animation: anim4 2s ease-out;
}

.alt4.fancy {
    animation: anim2b 1s ease-out;
}

.alt5.fancy {
    animation: anim5 1s ease-out;
}

.alt6.fancy {
    animation: anim6 1s ease-out;
}

@keyframes anim1 {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes anim2 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes anim2b {
    0% {
        opacity: 0;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes anim3 {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes anim3b {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    25% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes anim3c {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    50% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes anim4 {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    25% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes anim5 {
    0% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes anim6 {
    0% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes rotate-center {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

#bigtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

#smalltitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s ease-out 0.6s, transform 0.4s ease-out 0.65s;
}

#g1,
#g2,
#g3,
#g4 {
    opacity: 0;
}

#hoveres {
    font-size: 20px;
}

@media screen and (min-width: 320px) {
    #hoveres {
        font-size: calc(20px + 4 * ((100vw - 320px) / 680));
    }
}

@media screen and (min-width: 2000px) {
    #hoveres {
        font-size: 30px;
    }
}

.disable-hover,
.disable-hover * {
    pointer-events: none !important;
}

.slide-img {
    opacity: 0;
    transition: opacity 2s;
}

.show {
    opacity: 1;
}

.localeDiv{
    padding:5px;
}

.rotate-center:hover {
    animation: rotate-center 0.6s ease-in-out both;
}

.badges {
    width: 110px;
    height: 110px;
    max-width: 30vw;
    max-height: 30vw;
    padding: 0px 23px 23px 0px;
    transition: all 0.5s;
    transform-origin: center center;
    cursor: pointer;
}

.badges:hover {
    transform: scale(1.1) rotate(10deg);
    cursor: pointer;
}

.email:before {
    background-image: url(resources/email_icon.png);
    background-size: 44px 30px;
    display: inline-block;
    width: 44px; 
    height: 30px;
    content: "";
}

.telefon:before {
    background-image: url(resources/tel_icon.png);
    background-size: 30px 30px;
    display: inline-block;
    width: 30px; 
    height: 30px;
    content: "";
}