
/*
*  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 {
    margin: 0;

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

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

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

}

@media only screen and (min-width: 650px){
    .col-lg-offset-2 {
        margin-left: 16.66666667%;
    }
    .col-lg-8 {
        width: 66.66666667%;
    }
}

.main-header {
    font-family: 'UbuntuMono-R';
    position: relative;
    margin-bottom: 50px;

    height: 300px;
    width: 100%;

    margin-bottom: 70px;

    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/test.jpg');
    /* background: 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); */
}

.site-heading {
    padding: 100px 0 50px;
    margin: auto;
    color: white;
    text-align: center;
}

.site-heading > h1 {
    font-size: 48px;
    font-weight: bold;
    /* max-width: 90%; */
}

.subheading {
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid orange; /* The typwriter cursor */
    /* white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
      typing 3.5s steps(40, end),
      blink-caret .75s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
  }

  .custom-btn {
    padding: 10px 25px;
    margin: 20px 15px 50px 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    background: transparent;
    outline: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.btn-1 {
    border: 1px solid #000;
    background-color: rgba(255,255,255,0.3);
}

.btn-1:hover {
    z-index: 2;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1.05);
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1.05);   
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1.05);
    transition: all 200ms ease-in;
    transform: scale(1.05);
}

.btn-left {
    float: left;
}

.btn-right {
    float: right;
}

nav {
    position: absolute;
    top: 0;
    right: 0;

    margin-top: 10px;
    padding-bottom: 10px;
    
    height: 50px;

    font-size: 60%;
}

nav ul {
    list-style-type: none;

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

    overflow: hidden;

    font-family: 'UbuntuMono-R';
    font-size: 18px;
    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;
}


#main-footer {
    height: 150px;
    width: 100%;

    margin: auto;

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

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

#main-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;;
}

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

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


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


.post-preview > a {
    color: #404040;
}
.post-preview > a:hover,
.post-preview > a:focus {
    text-decoration: none;
    color: #0085a1;
}
.post-preview > a > .post-title {
    font-size: 30px;
    margin-top: 30px;
    margin-bottom: 10px;
}
.post-preview > a > .post-subtitle {
    margin: 0;
    font-weight: 300;
    margin-bottom: 10px;
}
.post-preview > .post-meta {
    color: #808080;
    font-size: 18px;
    font-style: italic;
    margin-top: 0;
}
.post-preview > .post-meta > a {
    text-decoration: none;
    color: #404040;
}
.post-preview > .post-meta > a:hover,
.post-preview > .post-meta > a:focus {
    color: #0085a1;
    text-decoration: underline;
}

@media only screen and (min-width: 768px) {
    .post-preview > a > .post-title {
    font-size: 36px;
    }
}

.section-post {
    margin-bottom: 28px;
    padding-bottom: 28px;
}

.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;
}

.media-content {
    margin: 30px 0 50px 0;
    padding: 2px 0 2px 0;
}

.media-button {
    margin: 0 5px 0 5px;
    display:inline-block;
    border:0;
    width:50px;
    height:50px;
    position: relative;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1); 
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1); 
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1);
    transition: all 200ms ease-in;
    transform: scale(1);   
}

.media-button-img {
    width: 100%;
    height: 100%;
}

.media-button:hover {
    /* box-shadow: 0px 0px 10px #000000; */
    z-index: 2;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1.1);
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1.2);   
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1.2);
    transition: all 200ms ease-in;
    transform: scale(1.2);
}

.legend-button {
    margin: 0 2px 0 2px;
    display:inline-block;
    border:0;
    width:15px;
    height:15px;
    position: relative;
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1); 
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1); 
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1);
    transition: all 200ms ease-in;
    transform: scale(1);   
}

.legend-container {
    max-width: 450px;
    float: left;
    margin-right: 70px;
    margin-bottom: 10px;
}

.legend-container ul {
    padding-left: 5px;
}

.legend-container li {
    text-decoration: none;
    list-style-type: none;
}

/* mobile users and msller devices */

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

    .legend-container {
        width: 100%;
    }

    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;
    }
}

