/*--- Google Roboto-font import ----*/
@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Kelly+Slab&display=swap');

/*---- Bootstrap Padding Fix ----*/
[class*="col-"] {
    padding: 1rem;
}

/*--- Custom CSS ----*/
html, body {
    /*Basic settings*/
    height: 100%;
    width: 100%;
    max-width: 100%;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 1em;
    color: #222;
    background-color: #f8f8ff;
    position: relative;
    overflow-x: hidden;
    overflow-y: scroll;
    /*Smooth scrolling*/
    scroll-behavior: smooth;
}

h1 {
    font-family: 'Kelly Slab';
    color: #222;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 1rem;
    font-size: 52.5px;
}

@media screen and (max-width: 500px) {
    h1 {
        font-size: 40px;
    }
}

h2 {
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1em;
    color: #222;
}

p, ul {
    line-height: 1.5em;
    margin-bottom: 1.5em;
}

.navbar {
    padding: .8rem;
}

@media screen and (min-width: 992px) {
    #navigation {
        height: 100px;
    }
}

.navbar-brand {
    padding-top: 0px;
    padding-bottom: 0px;
    max-height: 100px;
}

.nav-link {
    font-size: 1.5em !important;
}

nav .navbar-nav li a {
    color: #f8f9fa !important;
}

nav .navbar-nav li a:hover {
    color: #ff0000 !important;
}

nav .navbar-nav li a:active {
    color: #f8f9fa !important;
    background-color: #6c757d !important;
}

/*Link dropdown click color to red*/
.dropdown-menu a:active {
    background-color: #ff0000;
}

.logoSmall {
    /* width="610" height="63" */
    max-width: 100%;
    height: auto;
}

/*--- CONTENT ----*/
.mainbullet {
    list-style-type: square;
}

.iconline {
    /*Tricks to keep icon and text on same line*/
    display: inline-flex;
    vertical-align: middle;
}

/*Because fixed-top navigation*/
#Yritys {
    padding-top: 120px;
    padding-bottom: 25px;
}

@media screen and (max-width: 707px) {
    #Yritys {
        padding-top: 145px;
    }
}

#Palvelut {
    padding-top: 25px;
    padding-bottom: 25px;
}

@media screen and (max-width: 991px) {
    #Palvelut {
        padding-top: 50px;
    }
}

/*Maintains the image text readeable on the edges of breakpoints*/
.palveluIMG {
    min-width: 200px;
}

#Referenssit {
    padding-top: 25px;
    padding-bottom: 25px;
}

@media screen and (max-width: 991px) {
    #Referenssit {
        padding-top: 50px;
    }
}

.mobiledropdown {
    display: none;
}

/*Swapping between desktop and mobile dropdown texts*/
@media screen and (max-width: 825px) {
    .desktopdropdown {
        display: none;
    }

    .mobiledropdown {
        display: block;
    }
}

#Yhteystiedot {
    padding-top: 25px;
    padding-bottom: 25px;
}

@media screen and (max-width: 991px) {
    #Yhteystiedot {
        padding-top: 50px;
    }
}

#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 15px;
}

/* Some vertical padding when yhteystiedot on top of each other*/
@media screen and (max-width: 700px) {
    .yhteystieto {
        padding-bottom: 20px;
    }
}

.optimik-line {
    display: block;
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    background-color: #ff0000;
    height: 1px;
    opacity: 0.95;
}

#Referenssit:before {
    display: block;
    content: " ";
    margin-top: -65px;
    height: 65px;
    visibility: hidden;
}

footer {
    background-color: #3f3f3f;
    color: #d5d5d5;
    padding-top: 2rem;
}

/*--- Google Material Icon settings ----*/
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
    /* CUSTOM: CSS tricks to inline with text */
    position: relative;
    top: -1px;
    left: 5px;
    margin-right: 10px;
    /*CUSTOM: CSS to get text inline with icon*/
    vertical-align: middle;
}