/* ----------- GENERAL ---------- */

@font-face {
	font-family: 'comforta';
	src: url('../content/fonts/comfortaa-regular.eot');
	src: url('../content/fonts/comfortaa-regular.eot?#iefix') format('embedded-opentype'),
	url('../content/fonts/comfortaa-regular.woff2') format('woff2'),
	url('../content/fonts/comfortaa-regular.woff') format('woff'),
	url('../content/fonts/comfortaa-regular.ttf') format('truetype'),
	url('../content/fonts/comfortaa-regular.svg#comfortaaregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

*{
	box-sizing: border-box;
	font-family: 'comforta', 'Arial', sans-serif;
}

*:focus{
	outline-color: #3e00b0;
}

body{
	font-family: 'comforta', 'Arial', sans-serif;
	background: #f3f3f3;
}

body, p, div, h1, h2, h3, h4, h5, h6, ul, li{
	margin: 0;
	padding: 0;
}

h1{
	font-size: 38px;
    text-align: center;
    text-transform: uppercase;
    color: #3e00b0;
    margin-top: 40px;
    margin-bottom: 15px;
}

h2{
	font-size: 26px;
    color: #3e00b0;
    border-bottom: 2px solid #3e00b0;
    margin: 40px 0 20px 0;
    padding: 0 10px;
    word-break: break-all;
}


.button-container{
	text-align: center;
}

.button{
	text-decoration: none;
	font-size: 25px;
	color: #370da9;
	padding: 4px 20px;
	border: 2px solid #370da9;
	border-radius: 5px;
	display: inline-block;
	background: rgba(255,255,255,0);
	transition: all .4s ease;
}

.button:hover{
	background: #370da9;
	color: #f3f3f3;
}


/* ----------- GRID ---------- */

.row{
	width: 100%;
	display: flex;
    align-items: center;
}

.col-1-3{
	width: 30%;
	margin-right: 5%;
}

.col-1-3:last-child{
	margin-right: 0;
}


/* ----------- HEADER ---------- */

header{
	width: 100%;
	position: fixed;
	background: rgba(255,255,255,0.7);
	border-radius: 0 0 50px 50px;
	z-index: 1000;
}

header .col-1-3{
	padding: 20px 40px;
}

#logo-container{
	text-align: center;
}

#logo{
	width: 100%;
	max-width: 250px;
}



/* ----------- HOME ---------- */

#background{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: 400% 400%;
    background-position: 0% 50%;
	animation: animateBackground 25s ease infinite;
}

#wellcome{
	max-width: 1200px;
	width: 70%;
	margin: 0 auto;
}

#wellcome p{
	font-size: 20px;
    text-align: center;
	line-height: 1.1;
}

#upload-container{
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    width: 70%;
    margin: 0 auto;
    border: 2px solid #bebebe;
	margin-top: 10%;
}

#upload-container form{
    display: block;
    padding: 50px;
    border: 2px dotted #bebebe;
}

#fileUploadField{
	display: none;
}

.button{
	cursor: pointer;
}

#imageError{
	display: none;
    margin-top: 25px;
    animation: blink 2s ease infinite;
}

#submitButton{
	display: none;
	opacity: 0;
	margin: 30px auto;
	animation: appear 1s ease forwards;
}

#moodResult, #myMoodsContainer, #globalMoodsContainer{
	width: 80%;
	max-width: 1200px;
	padding: 5%;
	background: #fff;
	box-shadow: 0 6px 10px rgba(0,0,0,0.35);
	margin: 0 auto;
	margin-top: 100px;
	display: none;
	text-align: left;
	animation: displayResult 1s ease forwards;
}

#noCookieMoods{
	margin-top: 3%;
}

#imageCanvas{
	display: none;
}

#moodImage{
	text-align: center;
	padding: 0 10px;
}

#moodImage img{
	width: auto;
	max-height: 500px;
	max-width: 100%;
}

#moods{
	text-align: center;
}

#moodWrapper, .moodWrapper{
	padding: 0 10px;
}

#moodContainer, .cb-moodColor{
	width: 100%;
	height: 200px;
	background: #aaa;
	overflow: hidden;
}

#relColorsContainer{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.relColor{
	width: 200px;
    height: 200px;
    margin: 10px;
    flex-grow: 1;
	overflow: hidden;
	position: relative;
}

.moodColorValues, .rcValues, .global_moodColorValues{
	background: rgba(243, 243, 243, 0.7);
	transition: all .5s ease;
}

.moodColorValues, .global_moodColorValues{
	width: 200px;
	height: 100%;
	padding: 3%;
}

.rcValues{
	transform: translateY(100%);
    width: 85%;
    height: auto;
    margin: 0 auto;
    position: absolute;
    left: 7.5%;
    bottom: 0;
}

.rcValues{
	padding: 5% 7%;
}

.relColor:hover .rcValues, .cb-relColors:hover .rcValues{
	transform: translateY(0);
}

#saveButtonContainer{
	text-align: center;
    margin-top: 40px;
    word-break: break-all;
}

#successMsg{
	margin: 5% 0;
    text-align: center;
    font-size: 24px;
    color: #15bb42;
}

#moods label{
	display: inline-block;
	font-size: 24px;
	color: #370da9;
	margin: 3% 2%;
	opacity: 0.4;
	cursor: pointer;
	transition: opacity 0.5s ease;
}

#moods input:checked + label{
	opacity: 1;
}

#moods input:not(#moodSearch):not(.button){
	display: none;
}

#globalMoods:checked ~ #globalMoodsContainer{
	display: block;
}

#localMoods:checked ~ #myMoodsContainer{
	display: block;
}

#globalMoodsContainer h2{
    margin: 40px 0 5px 0;
}

#globalMoodsContainer h3{
	margin-bottom: 3%;
	font-size: 15px;
	color: #370da9;
	opacity: 0.7;
}

#globalMoodsContainer .colorBox{
	margin-bottom: 70px;
}

#globalMoodsContainer form{
	text-align: right;
	width: 70%;
	margin: 0 auto;
}


/* ----------- FORM ---------- */

#moodForm{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(255,255,255,0.8);
	padding: 10% 15%;
	z-index: 99999;
	display: none;
	animation: appear .5s ease;
}

#moodForm form{
	width: 65%;
    margin: 0 auto;
    background: #fff;
    padding: 5% 7%;
    border: 2px solid #3e00b0;
    max-width: 1200px;
}

#moodForm label{
	display: block;
    font-size: 18px;
    margin-bottom: 5px;
    color: #3e00b0;
}

#moodForm input:not(.button), #moodSearch{
	width: 100%;
    padding: 1% 2%;
    border: 1px solid #3e00b0;
    border-radius: 5px;
    margin-bottom: 25px;
    font-size: 15px;
}

#cancelButton{
	color: #ec6666;
    font-size: 20px;
    display: inline;
    margin-right: 5%;
    cursor: pointer;
    opacity: 0.6;
    transition: all .5s ease;
}

#cancelButton:hover{
	opacity: 1;
}

#moodForm div:not(#cancelButton){
	margin-top: 10%;
	text-align: right;
}






/* ----------- MOODS ---------- */

#hidden{
	display: none;
}

.cb-relColorsCon{
	padding: 10px;
}

.cb-relColors{
	width: 150px;
	height: 150px;
	position: relative;
	overflow: hidden;
	float: left;
    width: 18.4%;
    margin: 1%;
}

.cb-relColors:first-child{
	margin-left: 0;
}

.cb-relColors:last-child{
	margin-right: 0;
}

.cb-relColorsCon:after{
	display: block;
	content: "";
	visibility: hidden;
	clear: both;
}




/* ----------- FOOTER ---------- */

footer{
	margin-top: 70px;
    width: 100%;
    padding: 25px 40px;
}

#copyright{
    text-align: center;
    font-size: 14px;
    color: rgba(0,0,0,0.4);
}


/* ----------- ANIMATIONS ---------- */

@keyframes appear{
	from{opacity: 0;}
	to{opacity: 1;}
}

@keyframes disappear{
	from{opacity: 1;}
	to{opacity: 0;}
}

@keyframes blink{
	0%{opacity: 1;}
	50%{opacity: 0.25;}
	100%{opacity: 1;}
}

@keyframes removeForm{
	0%{transform: translateY(0); opacity: 1;}
	100%{transform: translateY(-50%); opacity: 0;}
}

@keyframes displayResult{
	from{transform: translateY(50%); opacity: 0;}
	to{transform: translateY(0); opacity: 1;}
}

@keyframes animateBackground{
	0%{background-position: 0% 50%}
	50%{background-position: 100% 50%}
	100%{background-position: 0% 50%}
}


/* ----------- MOBILE ---------- */

@media screen and (max-width: 950px){
	.cb-relColors{
	    width: 48%;
	    margin: 2% 0;
	}

	.cb-relColors:first-child, .cb-relColors:nth-child(3){
		margin-right: 4%;
	}
}

@media screen and (max-width: 640px){
	header{
		border-radius: 0;
	}

	h1{
		font-size: 28px;
	}

	h2{
		font-size: 20px;
	}

	#wellcome p{
		font-size: 16px;
	}

	.col-1-3{
		width: 50%;
		padding: 2%;
		margin: 0;
	}

	.col-1-3:first-child{
		display: none;
	}

	.button{
		font-size: 18px;
	}

	.moodColorValues, .global_moodColorValues{
		width: 100%;
		height: auto;
	}
}

@media screen and (max-width: 420px){
	.cb-relColors{
	    width: 100%;
	    margin: 5% 0;
	    float: none;
	}
}