body{
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    border-top: 1vh solid #e1e1e1;
    background-color: #0c1021;
    margin: 0;
    padding: 0;
    height: 100%;
}

a {
    color: rgba(255,255,255,0.6);
}
#lampadario {
    position: absolute;
    left: 15%;
    top: 1vh;
    z-index: 9999999999999999999999999999 !important;
}
input[value="off"]:checked ~ label:after {
    content: " ";
    width: 20px !important;
    height: 20px !important;
    top: 0;
    position: absolute;
    left: 0;
    margin-left: 15px;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
    border-radius: 100%;
    border: 2px solid rgba(255,255,255,0.03);
}
#filo {
    position: relative;
    background-color: #000000;
    width: 2px;
    height: 153px;
    left: 50%;
    margin-left: -1px;
    z-index: 1;
    -webkit-transform-origin: 0% 0%;
       -moz-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
         -o-transform-origin: 0% 0%;
            transform-origin: 0% 0%;
    -webkit-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
       -moz-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
        -ms-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
         -o-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
            animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
}
#filo:after {
    content: " ";
    left: -6.5px !important;
    top: 98%;
    position: absolute;
    border-bottom: 15px solid #000000;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    height: 0;
    width: 15px;
    z-index: 9999999999999999999999999999 !important;
}
#lampadina {
    position:relative;
}
input[value="off"]:checked ~
#filo {
    -webkit-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
       -moz-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
        -ms-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
         -o-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
            box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
}
input[value="off"]:checked ~
#filo:after {
    -webkit-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
       -moz-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
        -ms-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
         -o-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
            box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
}

input {
    position: absolute;
    width: 90px;
    height: 70px;
    top: 150px;
    margin-left:-45px;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}

input[value="on"] {
    top: 150px;
}
input[value="off"] {
    top: -100px;
}
input[value="on"]:checked {
    top: -100px;
}
input[value="on"]:checked + input[value="off"] {
    top: 150px;
}

label {
    width: 51px;
    height: 51px;
    top: 164px;
    position: absolute;
    left: 0;
    margin-left: -24px;
    -webkit-border-radius: 100%;
       -moz-border-radius: 100%;
        -ms-border-radius: 100%;
         -o-border-radius: 100%;
            border-radius: 100%;
    -webkit-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
       -moz-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
        -ms-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
         -o-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
            animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
}           
input[value="off"]:checked ~
label {
    background: rgba(255,255,255,0.03);
    -webkit-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
       -moz-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
        -ms-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
         -o-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
            box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
}
input[value="on"]:checked ~
label {
    background: rgba(255,255,255,1);
    -webkit-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
       -moz-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
        -ms-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
         -o-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
            box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
}

input[value="off"]:checked ~
label:after {
    content: " ";
    width: 15px;
    height: 15px;
    top: 0;
    position: absolute;
    left: 0;
    margin-left: 15px;
    -webkit-border-radius: 100%;
       -moz-border-radius: 100%;
        -ms-border-radius: 100%;
         -o-border-radius: 100%;
            border-radius: 100%;
    border: 2px solid rgba(255,255,255,0.03);
}
#sorpresa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}
input[value="off"]:checked ~
#lampadina #sorpresa {
    opacity: 0;
}
input[value="on"]:checked ~
#lampadina #sorpresa {
    opacity: 1;
}


@-webkit-keyframes oscillaFilo {
    from {
        -webkit-transform:rotate(5deg);
    } to {
        -webkit-transform:rotate(-5deg);
    }
}
@-moz-keyframes oscillaFilo {
    from {
        -moz-transform:rotate(5deg);
    } to {
        -moz-transform:rotate(-5deg);
    }
}
@-ms-keyframes oscillaFilo {
    from {
        -ms-transform:rotate(5deg);
    } to {
        -ms-transform:rotate(-5deg);
    }
}
@-o-keyframes oscillaFilo {
    from {
        -o-transform:rotate(5deg);
    } to {
        -o-transform:rotate(-5deg);
    }
}
@keyframes oscillaFilo {
    from {
        transform:rotate(5deg);
    } to {
        transform:rotate(-5deg);
    }
}

@-webkit-keyframes oscillaLampadina {
    from {
        -webkit-transform: rotate(3deg) translate(-16.4px,-1px);
    } to {
        -webkit-transform: rotate(-3deg) translate(16.4px,-1px);
    }
}
@-moz-keyframes oscillaLampadina {
    from {
        -moz-transform: rotate(3deg) translate(-16.4px,-1px);
    } to {
        -moz-transform: rotate(-3deg) translate(16.4px,-1px);
    }
}
@-ms-keyframes oscillaLampadina {
    from {
        -ms-transform: rotate(3deg) translate(-16.4px,-1px);
    } to {
        -ms-transform: rotate(-3deg) translate(16.4px,-1px);
    }
}
@-o-keyframes oscillaLampadina {
    from {
        -o-transform: rotate(3deg) translate(-16.4px,-1px);
    } to {
        -o-transform: rotate(-3deg) translate(16.4px,-1px);
    }
}
@keyframes oscillaLampadina {
    from {
        transform: rotate(3deg) translate(-16.4px,-1px);
    } to {
        transform: rotate(-3deg) translate(16.4px,-1px);
    }
}

@-webkit-keyframes ombraTesto {
    from {
        -webkit-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
    } to {
        -webkit-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
    }
}
@-moz-keyframes ombraTesto {
    from {
        -moz-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
    } to {
        -moz-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
    }
}
@-ms-keyframes ombraTesto {
    from {
        -ms-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
    } to {
        -ms-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
    }
}
@-o-keyframes ombraTesto {
    from {
        -o-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
    } to {
        -o-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
    }
}
@keyframes ombraTesto {
    from {
        transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
    } to {
        transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
    }
}





.paddingNone{
    padding: 0;
}
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(126, 239, 104, 0);
    outline: 0 none;
}
.form-control:focus{
    border-color: #ce0538;
    -webkit-box-shadow: none;
    box-shadow: none;
}
/** Scroll bar **/
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background-color: #e1e1e1;
    border-left: 0px solid #e1e1e1;
}
::-webkit-scrollbar-thumb {
    background-color: #ff5353;
    display: none;
}
::-moz-selection {
    background: #ff5353;
    color: #e1e1e1;
    display: none;
}
::selection {
    background: #ff5353;
    color: #e1e1e1;
    display: none;
}
/** Scroll bar **/
.home_intro{
    height: auto;
    min-height: 99vh;
}
.navbar_position{
    padding-top: 25px;
    font-family: 'Montserrat', sans-serif;
}
.navbar_position ul{
    margin: 0;
    padding: 0;
    float: right;
}
.navbar_position ul li{
    list-style: none;
    float: left;
}
.navbar_position ul li a{
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-size: 18px;
}
.navbar_position ul li a.active{
    color: #ff5353;

}
.navbar_position ul li a:hover{
    color: #ff5353;
}
.header_text{
    text-align: right;
    padding-top: 15%;
}
.header_text h1{
    font-family: 'Inconsolata', monospace;
    color:  #ff5353;
    font-size: 70px;
    font-weight: lighter;
    padding-bottom: 20px;
}
.header_text p{
    display: block;
    width: 65%;
    float: right;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    color: gray;
}

/** Education **/
#sectionTwo{
    background: #1a1a1a;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 30px;
    padding-right: 30px;
    background-image: url('../images/arrow_repeat.png');
    background-repeat: repeat-x;
    background-position: left top;
}
#education, #works{
    padding-top: 25px;
    padding-bottom: 25px;
    background: #1a1a1a;
}
#education h2, #works h2{
    position: relative;
    font-family: 'Inconsolata', monospace;
    color:  #ff5353;
    font-size: 26px;
    font-weight: lighter;
    margin-bottom: 50px;
    padding-bottom: 10px;
}
#education h2:before, #works h2:before{
    position: absolute;
    left: 0;
    bottom: -5px;
    width:  75px;
    height: 1px;
    background: gray;
    content: "";
}
.education_row span{
    display: inline-block;
    font-size: 13px;
    margin-bottom: 15px;
    color: gray;
}
#sectionThree{
    padding-top: 25px;
    padding-bottom: 75px;
    padding-left: 30px;
    padding-right: 30px;
}
.portfolio_title{
    padding-bottom: 45px;
    padding-top: 45px;
    text-align: center;
}
.portfolio_title button, .portfolio_title button:focus{
    color: #ff5353;
    outline: rgba(255, 255, 255, 0);
    border: 0 !important;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.075) inset, 0 0 0px rgba(126, 239, 104, 0);
    outline: 0 none;
}
.portfolio_title button.active{
    color: #fff;
}
.portfolio_title button:hover{
    color: #fff;
}
#parent .box{
    height: auto;
    min-height: 200px;
    padding: 10px;
}
#parent .box .box_inner{
    width: 100%;
    height: auto;
    min-height: 200px;
    background: #1a1a1a;
    color: #fff;
    padding: 25px;
}
#parent .box .box_inner h4{
    font-size: 18px;
    color: #ff5353;
}
#parent .box .box_inner p{
    font-size: 13px;
    padding-top: 15px;
}
#parent .box .box_inner i{
    position: absolute;
    right: 25px;
    bottom: 25px;
    font-size: 28px;
    float: right;
    color: #ff0;
    cursor: pointer;
    transition: all ease-in-out 200ms;
}
#parent .box:hover  .box_inner a i{
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari 3-8 */
    transform: rotate(90deg);
}
.footer{
    text-align: center;
    background: #000000;
    padding: 15px;
    font-size: 12px;
}



@media screen and  (max-width: 579px){
    .navbar_position ul li a{
        font-size: 15px;
    }
    .header_text{
        padding-top: 30%;
        padding-right: 15px;
    }
    .header_text h1{
        font-size: 35px;
    }
    .header_text p{
        width: 85%;
        font-size: 13px;
    }
    body{
        background-position: left 0 top 0;
        background-color: #0c1021;
        background-size: 35%;
    }
    .home_intro{
        height: auto;
        min-height: 95vh;
    }
    .navbar_position{
        padding-right: 15px;
    }
}
