/* Tämä on kaikille HTML-sivuille yhteinen CSS tiedosto, joka jakaa yhteiset tyylit kaikille */

/* Kaikille marginit nollille ja box-sizing*/
* {
    margin: 0px;
    box-sizing: border-box;
}

/* Fontin valinta Inter */
@font-face {
    font-family: Inter;
    src: url("Inter/Inter-VariableFont_opsz\,wght.ttf");
    font-weight: 100 900;
    font-style: normal;
}

/* Body käyttää fonttia */
body{
    font-family: "Inter", sans-serif;
}


/* Span-leikkaukset footerissa */
.mobiili{
    display: inline;
}


/* <p> muotoilu */
p{
    color: white;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 1.25rem;
}


/* h2 vakiona */
h2{
    color: white;
    font-size: 28px;
    margin-bottom: 1.25rem;

}

/* Headerin muotoilua */
header{
    width: 100%;
    background-color: #2F2F2F;
    border-bottom: 1px solid rgb(0, 0, 0);
}

/* Navigoinnin muotoilua */
.navipalkki{
    display: flex;
    flex-direction: row;
    
}

/* Navigoinnin muotoilua */
nav{
    display: flex;
    padding: 2rem;
    gap: 2rem;
    width: 100%;
    align-items: center;
}

/* Navigoinnin muotoilua */
.navilogo img{
    margin: 1rem;
    width: auto;
    max-height: 3.5rem;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 10px;
}

/* Footerin muotoilua */
footer{
    width: 100%;
    background-color: #FAFAFA; 
}

/* Footerin muotoilua */
.footervasen a{
    display: block;
    line-height: 1.5rem;
}

/* Footerin muotoilua */
.footerkaikki{
   display: flex; 
   gap: 3rem;
   padding: 3rem;
   border-top: 1px solid black;
}

/* Footerin muotoilua */
.footervasen{
    width: 25%;
}

/* Footerin muotoilua */
.footeroikea{
    width: 50%;

}

/* Footerin muotoilua */
.footeroikea p{
    color: rgb(0, 0, 0);
    font-size: 16px;
    margin-bottom: 1rem;
}

/* Footerin muotoilua */
.tyhjafooter{
    width: 10%;
}

/* Footerin muotoilua */
.tyhjafooter2{
    width: 15%;
    border-left: 1px solid black;
}

/* Input labels */
label{
    display: block;
    margin-bottom: 0.1rem;
    color: white;
    font-size: 13px;
    
}

/* Input kentät huoltolomake*/
input{
margin-bottom: 0.5rem;
padding: 0.2rem 0.2rem 0.5rem 0.1rem;
border: 0.25px solid black;
border-radius: 2px;
}

/* Input napit sivustolla*/
.nappi{
    padding: 1rem 1rem 1rem 1rem;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

/* Headerin <a> muotoilut*/
header a{
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 16px;
}

/* Footerin <a> muotoilut*/
footer a{
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 16px;
}

/* <a> muotoilut*/
a:hover {
  color: rgba(89, 132, 225, 0.325);
}

/* Pelkkä mobiili kaikille sivuille mm. header, footer ja navimuotoilua */
@media (max-width: 480px) {
    h1, h2{
        overflow-wrap: break-word;
    }

    .navilogo img{
        max-height: 3rem;
    }

    nav{
        padding: 0rem 1rem 1rem 1rem;
        gap:1rem;
    }
    .navipalkki{
        display: block;
    }

    .footerkaikki{
        display: block;
    }

    .footervasen{
     margin-bottom: 2rem;

    }

    .mobiili{
    display: block;
    }
  
}

/* Pelkkä tabletti kaikille sivuille mm. header, navi ja footer muotoilu*/
@media (min-width: 481px) and (max-width: 1024px) {

    nav{
    justify-content: space-evenly;
    width: 100%;
    align-items: center;
    }

    .footerkaikki{
        padding: 2rem;
    }

    .footervasen{
        width: 50%;
    }

    .footeroikea{
        width: 50%;
    }
    
}