body {
    background-color: #4C5A27;
    /*background-image: url("taustakuva.jpg");*/
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
    /*background-color: transparent;*/
 }

 main {
    padding: 0 1em 1em 1em;
}

footer {
    padding: 0 1em 1em 1em;
}

nav.navbar {
    border-bottom: 1px solid rgba(0,0,0,.5);
}

div.sisalto {
    margin-right: auto;
    margin-left: auto;
    max-width: 1080px;
}

.piilossa {
    display: none;
}

/* Kortit */

.card-header {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    background-color: #f7f5e7;
}

.card-header h2, .card-header h3 {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    font-weight: bold;
}

/* Tällä saa linkin toimimaan stretched-linkin alta. */
.card.linkkikortti a.toinenlinkki {
    position: relative;
    z-index: 2;
}

.card.linkkikortti:hover, .card.linkkikortti:focus-within {
    background-color: #f8f9fa;
    border: 2px solid black;
}

.card.linkkikortti:hover .card-header, .card.linkkikortti:focus-within .card-header {
    background-color: #4C5A27;
    color: #f7f5e7;
}

.card.linkkikortti:focus-within a {
    outline: none;
}

img.pikselikuva {
    image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;          /* Firefox                        */
    image-rendering: -o-crisp-edges;            /* Opera                          */
    image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
    image-rendering: pixelated;                 /* Chrome                         */
    image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;   /* IE8+                           */
}

/* Tavutus ja tasaus */

p, li {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    /*text-align: justify;*/
}

/* Linkit */

a {
    color: blue;
    text-decoration: underline;
}

a:focus {
    outline: 3px solid #0066ff;
    outline-offset: 2px;
}

.navbar-brand, .nav-link, .hyppylinkit a {
    color: black !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.nav-link:hover, .hyppylinkit a:hover {
    text-decoration: underline !important;
}

.hyppylinkit {
    background-color: #ffc107;
    margin: 0;
}

.hyppylinkit:focus-within {
    padding: 0.75rem;
}

.hyppylinkit a {
    padding: 0.5rem;
    margin: 0.75rem;
    position: absolute;
    top: -100rem;
}

.hyppylinkit a:focus {
    position: relative;
    top: 0;
}

/* Teksti */
@font-face {
    font-family: "Candara";
    src: url("../fontit/Candara.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Rockwell";
    src: url("../fontit/Rockwell.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.text-muted {
    color: #4E565A !important;
}

body {
    font-family: Candara, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Rockwell, serif;
    line-height: 1.3;
}