/* 
/
/   TYPOGRAPHY
/
*/

@font-face
{
    font-family: h1;
    src: url(fonts/FjallaOne-Regular.ttf);
}


@font-face
{
    font-family: p;
    src: url(fonts/RobotoCondensed-VariableFont_wght.ttf);
}


@font-face
{
    font-family: i;
    src: url(fonts/RobotoCondensed-Italic-VariableFont_wght.ttf);
}


html
{
    font-size: 12pt;
}

body
{
    font-family: p;
}


h1, h2, h3
{
    display: block;
    font-family: h1;
    font-weight: lighter;
}


h1
{
    font-size: 1.5rem;
    margin-top: 64px;
    margin-bottom: 16px;

    color: rgb(56, 79, 0);
}


h2
{
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 0px;
}

h3
{
    font-size: 1.0rem;
    margin-top: 1.0rem;
    margin-bottom: 0.2rem;
}

p, td, th
{
    font-family: p;
    font-size: 1.0rem;
    margin: 0 auto;
}

p
{
    margin-top: 4px;
}

b
{
    font-family: p;
    font-weight: bold;
}

i
{
    display: block;
    font-family: i;
    font-size: 1.2rem;
    margin: 32px auto;
    color: rgb(56, 79, 0);
    font-weight: bold;
    hyphens: none;
}

a, a.link, a.active, a.visited
{
    font-family: p;
    color: rgb(51, 51, 51);
    text-decoration: none;
}


hr
{
    margin: 12px auto 32px auto;
}




/* 
/
/   HTML and BODY
/
*/

html, body
{
    margin: 0;
    padding: 0;
}

html, body
{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body
{
    overflow-y: scroll;
    background: linear-gradient(45deg, rgb(8, 8, 8), rgb(16, 16, 16));
}

*
{
    box-sizing: border-box;
}

#pagewrapper
{
    width: 100%;
    margin: auto;
    background-color: rgb(255, 255, 255);
}




/* 
/
/   HEADER
/
*/

header
{
    background-image: url("img/header_background.jpg");
    background-size: cover;
    background-position: center bottom;
    text-align: center;
    overflow: auto;
}



header img
{
    margin: auto;
    width: 80%;
    margin: 48px auto;
}





/* 
/
/   NAVIGATION
/
*/

nav
{
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0px;
    overflow: auto;

    background-color: rgb(8, 8, 8);
}

nav button
{
    flex: 1 1 100%;
    background-color: rgb(32, 32, 32);
    
    border: 1px solid rgb(80, 80, 80);
    border-top: none;
    border-radius: 2px;
    
    margin: 2px;
    margin-top: 4px;
    margin-bottom: 4px;

    box-shadow: 0px 0px 2px rgb(80, 80, 80);

    transition: all 0.333s;
}

nav button:first-child
{
    margin-left: 4px;
}

nav button:last-child
{
    margin-right: 4px;
}

nav button:hover
{
    background-color: rgb(255, 200, 0);
    border-color: rgb(80, 80, 80);
    box-shadow: 0px 0px 8px rgb(128, 128, 128);
}

.active_nav_button, .active_nav_button:hover
{
    background-color: rgb(255, 229, 137);

}

.active_nav_button p
{
    color: rgb(16, 16, 16);
}


nav button p
{
    font-family: h1;
    margin: 12px auto;
    color: rgb(255, 255, 255);
    pointer-events: none;
}


/* 
/
/   MAIN
/
*/
main
{
    margin: 0;
    overflow: auto;
    min-height: 100vh;
}



/* 
/
/   ARTICLE
/
*/


article
{
    margin: 16px;
}

.text_centered
{
    text-align: center;
}


article h1
{
    border-bottom: 2px solid rgb(56, 79, 0);
    text-align: center;
    padding-bottom: 4px;
}



/* Collage services*/
#palvelut_collage
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

#palvelut_collage div
{
    font-family: p;
    font-size: 1.0rem;
    font-weight: bold;
    padding: 8px;
    background-color: rgb(255, 200, 0);
    border-radius: 2px;
}

#palvelut_collage div:nth-child(2n)
{
    background-color: rgb(255, 229, 137);
}

/* Table prices */
#table_prices
{
    margin: auto;
    max-width: 512px;
    background-color: rgb(240, 240, 240);
    padding: 4px;
    border-radius: 2px;
    text-align: left;
    margin-bottom: 32px;
}

th
{
    background-color: rgb(8, 8, 8);
    color: rgb(255, 255, 255);
}

tr:nth-child(2n)
{
    background-color: rgb(250, 250, 250);
}

th, td
{
    padding: 4px;
}





/* 
/
/   FOOTER
/
*/


footer
{
    background: linear-gradient(0deg, rgb(8, 8, 8), rgb(16, 16, 16));
    overflow: auto;

    border-top: 1px solid rgb(255, 200, 0);
}

footer article
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    column-gap: 32px;
    margin-bottom: 80px;
}

footer h3, footer p, footer a
{
    align-items: stretch;
    color: rgb(255, 255, 255);
    padding: 0;
}

footer h3
{
    flex: 100%;
    margin: 16px auto 0px auto;
    text-align: center;
    color: rgb(255, 200, 0);
}





/* 
/
/   FOR DESKTOP VERSION
/
*/


@media only screen and (min-width: 800px)
{
    #pagewrapper
    {
      width: 800px;
    }

    header img
    {
        width: auto;
        height: 180px;
    }
}