
/*
*  nakkim.org - projektisivu
*  Main style configurations
*  Ville Ilkka, 2017
*/


@font-face {
    font-family: UbuntuMono-R;
    src: url(fonts/UbuntuMono-R.ttf);
}

/* main elements */
/* html, body, header, nav footer */

html {
    min-height: 100%;
    width: 100%;
}

body {
    min-height: 100%;
    width: 100%;

    background-color: #f2f2f2;
    /*background-color: #4fc1e9;*/

    /*font: 75% Arial, Helvetica, sans-serif;*/
    font-family: 'Noto Sans', sans-serif;
    color: #666;

}

header {
    position: relative;

    height: 200px;
    width: 100%;
    max-width: 900px;

    margin: auto;
    margin-top: 10px;
    padding: 30px 0 10px 0;
    
    border: 1px solid black;

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

    /*background: url(../images/ilya-pavlov-87438.jpg) no-repeat center center fixed;*/
    background: url(../images/bk-test.jpg); no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 8px 24px 0 rgba(0, 0, 0, 0.19);
    
}

nav {
    position: absolute;
    bottom: 0;

    padding-bottom: 10px;
    
    height: 50px;
    width: 100%;

    font-size: 60%;
}

nav ul {
    list-style-type: none;

    margin: 0 10px 0 10px;
    padding: 0;

    overflow: hidden;

    font-family: 'UbuntuMono-R';
    font-size: 26px;
    color: white;
}

nav li {
    float: right;

    margin: 2px 5px 2px 5px;
}

nav li.active {
    border-bottom: 3px solid white;
}

nav a,
nav a:hover,
nav a:active {
    text-decoration: none;
    color: white;
}


footer {
    height: 150px;
    width: 50%;
    max-width: 900px;

    margin: auto;

    margin-top: 30px;
    margin-bottom: 10px;
}

footer p {
    margin: 0 0 3px 0;
    text-align: center;
}

footer ul {
    list-style-type: none;

    margin: auto;
    padding: 0;

    overflow: hidden;
    text-align: center;
}

#footer-ul-wrapper {
    width: 100%;
    height: 25px%;

    text-align: center;;
}

footer li {
    display: inline;
    text-align: center;
    margin: 2px 5px 2px 5px;
}

footer a,
footer a:hover,
footer a:active {
    width: 100%;
    height: 100%;
    
    text-decoration: underline;
    color: black;
}


/* main content wrapper */
/* #main-content-wrapper, #main-content, #contact-select, section */ 

#main-content-wrapper {
    height: 1000px;
    width: 100%;
    max-width: 900px;

    padding: 0 0 30px 0;
    
    background-color: #f2f2f2;
}

#main-content {
    min-height: 800px;
    
    margin: 15px 0 0 0;

    background-color: #f2f2f2;

    font-size: 75%;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 8px 24px 0 rgba(0, 0, 0, 0.19);
}

#main-content p {
    margin-top: 0.2rem;
}


/* remove padding and add white background */

#main-content-info-area {
    padding-left: 0;
    padding-right: 0;
}

#main-content-text-area {
    padding-bottom: 10px;
    
    background-color: white;

    border-bottom-left-radius: 10px;
}

.content-image {
    width: 100%;

    border: solid 1px black;
}
    
#contact-select {
    height: 100%;
    width: 100%;

    background-color: f2f2f2;

    border: 2px solid white;
    /*
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;*/
}

#project-select-box {
    margin: 40px 10px 20px 10px;
    /*padding: 10px 10px 10px 10px;*/
}

#project-select-box p{
    margin: 20px 0px 10px 0px;
    /*padding: 10px 10px 10px 10px;*/
}

#project-select-box ul {
    margin: 0;
    padding: 0;
}

#project-select-box li {
    width: 100%;
    margin: 5px 0 5px 0;
    /*padding: 8px 10px 8px 10px;*/

    border: 1px solid #808080;

    background-color: #e6e6e6;

    list-style: none;
}

#project-select-box .sub-ul li {
    width: 100%;

    padding: 0 40px 0 0;
    margin: 10px 10px 5px 0;

    background-color: #f2f2f2;

    border: none;

    list-style: none;
}


#project-select-box .active {
    border-right: 10px solid #666666;
}

#project-select-box a,
#project-select-box a:active,
#project-select-box a:hover {
    display: block;

    margin: 8px 10px 8px 10px;

    color: black;
    text-decoration: none;
}

.contact-select-box {
    margin: 20px 10px 20px 10px;
    padding: 10px 10px 10px 10px;
    
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 8px 24px 0 rgba(0, 0, 0, 0.19);
    
    border: 1px solid #f2f2f2;

    background-color: white;
}

.contact-select-box p {
    margin-top: 0;
    margin-bottom: 0.2rem;
}

#contact-email {
    font-weight: bold;    
}

section {
    
    margin-top: 20px;
    margin-right: 20px;

    background-color: white;
}

p.paragraph-header {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.2rem;
}




/* mobile users and msller devices */

@media only screen and (max-width:575px){

    /*
       remove background color and box-shadow from
       mobile users 
    */ 

    body {
        padding-left: 10px;
	padding-right: 10px
    }
    
    #contact-select {
        background-color: white;
    }

    .contact-select-box {
	box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.2), 0 0px 0px 0 rgba(0, 0, 0, 0.19);;
    }

    #project-select-box {
	box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.2), 0 0px 0px 0 rgba(0, 0, 0, 0.19);;
    }

    nav ul {
	font-size: 16px;
    }
}

@media only screen and (min-device-width: 767px) and (max-device-width: 991px) {

    /* adjust paddings */

    body {
	padding-left: 25px;
	padding-right: 25px;
    }

    nav ul {
	font-size: 20px;
    }
}

@media only screen and (min-device-width: 575px) and (max-device-width: 767px) {

    /* adjust paddings */
    body {
	padding-left: 10px;
	padding-right: 10px;
    }

    /* navbar font size */
    
    nav ul {
        font-size: 20px;
    }
}

