body {
    overflow-y: auto;
    overflow-x: hidden;
}

#bg {
  position: fixed; 
  top: -50%; 
  left: -50%; 
  width: 200%; 
  height: 200%;
}

#bg img {
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  margin: auto; 
  min-width: 50%;
  min-height: 50%;
}

#logo {
    text-align: center;
    z-index: 5;
    position: relative;
    margin-top: 20px;
}

#scene { 
    height: 500px;
    margin: 0 auto;
    width: 1000px;
    padding: 0;
    text-align: center;
}

.layerYellow {
    background: rgba(255,162,0,0.5);
	-webkit-box-shadow: 0 0 32px rgba(255,180,0,0.75), 0 0 32px rgba(255,180,0,0.75);
	box-shadow: 0 0 32px rgba(255,180,0,0.75), 0 0 32px rgba(255,180,0,0.75);   
}

.layerBlue {
    background: rgba(0,150,255,0.5);
	-webkit-box-shadow: 0 0 32px rgba(0,163,255,0.75), 0 0 32px rgba(0,163,255,0.75);
	box-shadow: 0 0 32px rgba(0,163,255,0.75), 0 0 32px rgba(0,163,255,0.75);   
}

.layerGreen {
    background: rgba(18,255,0,0.4);
	-webkit-box-shadow: 0 0 32px #6dd026, 0 0 32px #6DD026;
	box-shadow: 0 0 32px #6dd026, 0 0 32px #6DD026;
}

.layerViolet {
    background: rgba(72,0,255,0.5);
	-webkit-box-shadow: 0 0 32px rgba(107,46,237,0.75), 0 0 32px rgba(107,46,237,0.75);
	box-shadow: 0 0 32px rgba(107,46,237,0.75), 0 0 32px rgba(107,46,237,0.75);
}

.layerOrange {
    background: rgba(255, 69, 0, 0.5);
	-webkit-box-shadow: 0 0 32px rgba(237, 90, 46, 0.75), 0 0 32px rgba(237, 68, 46, 0.75);
	box-shadow: 0 0 32px rgba(237, 90, 46, 0.75), 0 0 32px rgba(237, 68, 46, 0.75); 
}

.layerRose {
    background: rgba(255, 0, 88, 0.5);
	-webkit-box-shadow: 0 0 32px rgba(237, 46, 119, 0.75), 0 0 32px rgba(237, 46, 105, 0.75);
	box-shadow: 0 0 32px rgba(237, 46, 119, 0.75), 0 0 32px rgba(237, 46, 105, 0.75);
}

.layerBlueBlack {
    background: rgba(29, 0, 255, 0.5);
	-webkit-box-shadow: 0 0 32px rgba(46, 83, 237, 0.75), 0 0 32px rgba(46, 97, 237, 0.75);
	box-shadow: 0 0 32px rgba(46, 83, 237, 0.75), 0 0 32px rgba(46, 97, 237, 0.75);
}

/* ------------------ */
/* BOX POSITION/COLOR */

.shaarli {
	margin-left: 20px;
}

.shaarli span {
	width: 250px;
	height: 250px;
	line-height: 230px;
	z-index: 0;
}

.deviant {
	margin-left: 225px;
	margin-top: 150px;        
}

.deviant span {
	width: 325px;
	height: 200px;
	line-height: 305px;
	z-index: 1;
}

.portfolio {
	margin-left: 400px;
	margin-top: 15px;        
}

.portfolio span {
	width: 310px;
	height: 210px;
	line-height: 170px;
	z-index: 0;
}

.github {
 	margin-left: 690px;
	margin-top: 180px;  
}

.github span {
	width: 270px;
	height: 220px;
	line-height: 220px;
	z-index: 1;
	font-family: sans-serif;
}

.choice { 
    z-index: 2;
    top: 50px !important;
    display: inline-block !important;
}

.choice span {
    border: 6px solid #FFFFFF;
    border-radius: 5px;
    color: #FFFFFF;
    display: inline-block;
    font-size: 60px;
    position: absolute;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(39, 39, 39, 0.75);
    -webkit-transform-origin: center center;
    transform-origin: center center;  
}


/* ------------------ */
/* ----- PORTFOLIO --- */

.content a {
    color: white;
}

.menu {
    position: relative;
	z-index: 2;
    color: white;
    font-size: 20px;
    text-align: center;
    
    margin-left: -40px;
}

.menu li {
    display: inline-block;
    list-style: none;
}

.layer.cv a {
    width: 100px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.menu li a {
    font-weight: bold;
    font-family: arial;
    width: 190px;
    text-align: center;
    display: inline-block;
    border: 4px solid #ddd;
    text-shadow: 1px 1px 1px black, 0px 0px 1px #5c5c5c;
    background: rgba(0,150,255,0.3);
    border-radius: 10px;
    padding: 10px 35px 10px 35px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.menu .layerBlue {
    background: rgba(46, 187, 239, 0.7);   
}

.menu .layerGreen{
    background: rgba(64, 229, 52, 0.7);
}

.menu .layerYellow{
    background: rgba(244, 162, 32, 0.7);
}

.menu .layerViolet{
    background: rgba(136, 89, 255, 0.7);      
}

.menu .layerOrange{
    background: rgba(255, 124, 100, 0.7);      
}

.menu .layerRose {
    background: rgba(230, 89, 165, 0.7);   
}

.menu .layerBlueBlack {
    background: rgba(68, 114, 188, 0.7);   
}


.menu li a:before {
    left: 80%;
    opacity: 0;
    position: absolute;
    font-size: 125%;
    font-family: arial;
    color: #fff;
    content: ">";  
    margin-top: -3px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.menu .layerBlue:hover {
    background: rgb(43, 149, 224);
}

.menu .layerGreen:hover{
    background: rgb(88, 180, 21);
}

.menu .layerYellow:hover{
    background: rgb(229, 143, 70);
}

.menu .layerViolet:hover{
    background: rgb(122, 85, 216);      
}

.menu .layerOrange:hover{
    background: rgb(180, 64, 60);      
}

.menu .layerRose:hover {
    background: rgb(226, 95, 177);   
}

.menu .layerBlueBlack:hover {
    background: rgb(40, 73, 163);   
}

.menu li a:hover:before {
    left: 90%;
    opacity: 1;
}

.menu a {
    text-decoration: none;
    color: white;
}

.content>div{
    text-align: left;
    margin: 0 auto;
    border: 6px solid #FFFFFF;
    border-radius: 5px;
    z-index: 2;
    position: relative;
    padding: 10px;
    margin-top: 50px;
    color: white;
    font-size: 20px;
    text-shadow: 1px 1px 5px black;
    width: 90%;
}


.content .layerBlue {
    background: rgba(78, 120, 149, 0.9);   
}

.content .layerGreen {
    background: rgba(88, 150, 96, 0.9);   
}

.content .layerYellow {
    background: rgba(147, 100, 92, 0.9);   
}

.content .layerViolet {
    background: rgba(121, 90, 152, 0.9);   
}

.content .layerRose {
    background: rgba(123, 68, 89, 0.9);   
}

.content .layerBlueBlack {
    background: rgba(34, 72, 124, 0.9);   
}

#lib li{
    margin-bottom: 20px;
}

.content h2 {
    text-align: center; 
    margin-bottom: 35px;
}

.content h2:after {
    content: ' ';
    position: absolute;
    width: 90%;
    height: 2px;
    background: white;
    margin-top: 45px;
    left: 50%;
    margin-left: -45%;
    -webkit-box-shadow: 1px 1px 2px rgb(68, 68, 68);
    box-shadow: 1px 1px 2px rgb(68, 68, 68);
}

#kodro li img {
    margin-left: 32px;
    margin-right: 30px;
    margin-top: 10px;
    border: 2px solid white;
    border-radius: 5px;
}

#kodro li {
    margin-bottom: 20px;
    margin-right: 20px;
}

.content hr {
    height: 1px;
    border: none;
    background: white;
    -webkit-box-shadow: 1px 1px 2px rgb(68, 68, 68);
    box-shadow: 1px 1px 2px rgb(68, 68, 68);
}

.copyright {
    font-size: 16px;
    font-style: italic;
    text-align: right;
}

footer {
    width: 100px;
    height: 100px;
    background: url('../img/top.png');
    position: fixed;
    bottom: 0px;
    z-index: 10;
    margin-left: 1000px;
    display: none;
    cursor: pointer;
}

footer:hover {
    background-position: 0 -100px;
}

.replace {
    z-index: 5;
    width: 100%;
}

#gen button {
    left: 50%;
    position: relative;
    margin-left: -100px;
    width: 200px;
}

/* ------------------ */
/* ----- PARTICLE --- */

.bg {
    position: fixed!important;
    margin-left: -50px;
    margin-top: -50px;
}

.depth-1 img {
    -webkit-animation: passifAnim 20s infinite;
    animation: passifAnim 20s infinite;   
}

.depth-2 img {
    -webkit-animation: passifAnim 10s infinite;
    animation: passifAnim 10s infinite;   
}

.depth-1{
    z-index: 0;
    opacity: 0.88;
}

.depth-2{
    z-index: 1;
}

@-webkit-keyframes passifAnim {
    from {
        -webkit-transform: rotate(0deg) translate(10px, 10px) rotate(0deg);
        transform: rotate(0deg) translate(10px, 10px) rotate(0deg)
    }
    to {
        -webkit-transform: rotate(360deg) translate(10px, 10px) rotate(-360deg);
        transform: rotate(360deg) translate(10px, 10px) rotate(-360deg)
    }   
}

@keyframes passifAnim {
    from {
        -webkit-transform: rotate(0deg) translate(10px, 10px) rotate(0deg);
        transform: rotate(0deg) translate(10px, 10px) rotate(0deg)
    }
    to {
        -webkit-transform: rotate(360deg) translate(10px, 10px) rotate(-360deg);
        transform: rotate(360deg) translate(10px, 10px) rotate(-360deg)
    }    
}


/* ------------------ */
/* --- TEST TRANSITION --- */

@-webkit-keyframes outBody {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
    to {
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
        opacity: 0;
    }    
}

@keyframes outBody {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
    to {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0;
    }    
}

.hidden {
    display: none;
}
    
canvas {
    display: none;   
}


/* ------------------ */
/* --- RESPONSIVE --- */

@media screen and (max-device-width: 960px), (max-width: 960px) {
    #scene {
         width: 100%;
        min-width: 400px;
    }
    
    .choice {
        left: 50% !important;
        margin-left: -190px;
    }
    
    .choice span {
        width: 350px !important;
        height: 80px !important;
        line-height: 80px !important;
        font-size: 40px !important;
    }
    
    #kodro ul li img:last-child {
        display: none;   
    }
    
    .shaarli {
        margin-top: 0px;
    }
    
    .deviant {
        margin-top: 120px;   
    }
    
    .portfolio {
        margin-top: 240px;   
    }
    
    .github {
        margin-top: 360px;   
    }
    
    .toHide {
        display: none;   
    }
    
    footer {
        left: 50%;
        margin-left: -50px;
    }
    
    #portfolio .choice {
        margin-left: 75px; 
        display: block !important;
    }
    
    #portfolio .choice span {
        width: 200px!important;
        height: 100px!important;
    }
}

@media screen and (max-device-width: 600px), (max-width: 600px) {
    #kodro ul li img:nth-last-child(2) {
        display: none;   
    }
}
