@font-face {
    font-family: 'Product Sans';
    src: url('./font/Product Sans Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Product Sans Light';
    src: url('./font/Product Sans Light.ttf') format('truetype');
    font-weight: lighter;
    font-style: normal;
}

:root {
    --yellow: #FCB03F;
    --grey: #707070;
    --black: #050505;
    --marginpercent: 18%;
    --margin: 390px;

    --about-title-fs: 3.55vw;
    --about-title-lh: 4vw;

    --about-text-fs: 1.55vw;
    --about-text-lh: 2vw;

    --factnum-fs: 6vw;
    --factnum-lh: 5vw;

    --factd-fs: 1.56vw;
    --factd-lh: 2vw;
}

.margin390 {
    margin: 0px min(var(--margin), var(--marginpercent));
}

* {
    margin: 0px;
    box-sizing: border-box;
    font-family: Product Sans;
}

.lightfont {
    font-family: 'Product Sans Light';
}

a,
a:hover,
a:visited,
.underline {
    font-family: "Product Sans";
    -webkit-text-decoration: none;
    text-decoration: none;
    background-image: linear-gradient(to top, var(--yellow), var(--yellow));
    background-position: 100% 100%;
    background-size: 100% 25%;
    background-repeat: no-repeat;
    color: inherit;
    -webkit-transition: background-size .15s ease-out;
    transition: background-size .15s ease-out;
    outline: none;
}

a:hover {
    background-size: 100% 100%;
}

a.nobg {
    background: none;
}

.yellow {
    color: var(--yellow) !important;
}

.fancy span:after {
    content: "";
    position: absolute;
    left: 0;
    top: auto;
    background-repeat: repeat-x;
    z-index: -1;
    background-image: url("../images/Steel.svg");
    align-self: center;
    vertical-align: middle;
    width: 100%;
    height: 22px;
}


.fancy span {
    padding-left: 20%;
    padding-right: 20%;
    background-color: white;
}

.about {
    font-weight: bold;
    font-size: var(--about-title-fs);
    line-height: var(--about-title-lh);
    color: var(--black);
    font-family: "Product Sans";
    text-align: center;
}

.abouttext {
    font-weight: normal;
    font-size: var(--about-text-fs);
    line-height: var(--about-text-lh);
    text-align: left;
    color: var(--grey);
    text-align: center;

}

.certi {
    font-family: "Product Sans";
    font-weight: bold;
    font-size: 35px;
    line-height: 48px;
    text-align: center;
    color: var(--black);

}

.cerilist {
    margin-top: 2%;
    font-family: "Product Sans";
    font-weight: normal;
    font-size: var(--about-text-fs);
    line-height: var(--about-text-lh);
    color: var(--grey);
}

.textleft {
    text-align: left !important;
}

.name {
    font-family: "Product Sans";
    font-weight: bold;
    font-size: 31px;
    line-height: 56px;
    text-align: left;
    color: var(--black);

}

.bgheader {
    height: 80vh;
}

.bgheader::before {
    background-attachment: fixed;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.factsnumber {
    font-weight: bold;
    font-size: var(--factnum-fs);
    line-height: var(--factnum-lh);
    text-align: left;
    color: var(--yellow);
}

.factsdetail {
    font-weight: normal;
    font-size: var(--factd-fs);
    line-height: var(--factd-lh);
    text-align: left;
    color: var(--grey);

}

.news {
    font-weight: bold;
    font-size: 68px;
    line-height: 56px;
    text-align: left;
    color: var(--black);
}

.imgdiv {
    width: min(960px);
}

.svghover {
    position: relative;
    float: right;
    transition: top ease 0.5s;
    -webkit-transition: top ease 0.5s;
    -moz-transition: top ease 0.5s;
    -o-transition: top ease 0.5s;
}

.svghover:hover {
    top: -38px;
}

@media (max-width: 40em) {
    :root {
        --margin: 36px;

        --factnum-fs: 13vw;
        --factnum-lh: 9vw;

        --factd-fs: 3.4vw;
        --factd-lh: 2vw;

        --about-title-fs: 5.4vw;
        --about-title-lh: 5vw;

        --about-text-fs: 4vw;
        --about-text-lh: 5vw;
    }

    .bgheader::before {
        background-position: -240px 0px;
    }

    .news {
        font-size: 36px;
        line-height: 35px;
    }

    .abouttext {
        margin-left: auto;
        margin-right: auto;
        text-align: center !important;
    }

    .about {
        text-align: center;
        font-size: 42px;
        line-height: 35px;
    }

    .factsnumber, .factsdetail {
        text-align: center;
    }
}

@media only screen and (min-width: 41em) and (max-width: 50em) {
    :root {

        --factnum-fs: 8vw;
        --factnum-lh: 6vw;

        --factd-fs: 3.4vw;
        --factd-lh: 2.4vw;

        --about-title-fs: 5.4vw;
        --about-title-lh: 5vw;

        --about-text-fs: 4vw;
        --about-text-lh: 5vw;
    }
}

.certicard {
    transition: transform 0.3s ease-out;
    position: relative;
}

.certicard:hover {
    transform: translate(0, -20px);
}


.certicard:hover div h1 {
    color: #050505;
}

.certicard:hover div {
    background-color: var(--yellow);
}
