* {
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: vSHandprinted;
    src: url('../vSHandprinted.otf');
}

html, body {
    height: 100%;
}

#container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: scroll;
    background: #99d9ea;
	background-image: url('../images/dirt-bg.png'), linear-gradient(to bottom, #B4E3EF 0%,#64AAE3 100%);
    background-repeat: no-repeat;
    background-position: 50% bottom;
    background-attachment: fixed;
}

h1 {
	font-size: 2.4em;
	color: #29140C;
	text-shadow: 1px 1px #CD9F87;
    padding-top: 15px;
    padding-bottom: 15px;
}

h2 {
    font-size: 1.95em;
    text-shadow: 1px 1px #CD9F87;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 30px;
}

h3 {
    font-size: 1.5em;
    text-shadow: 1px 1px #CD9F87;
}

p {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Design */

#site-container {
	display: flex;
	flex-direction: column;
	height: 100vh;
	font-family: Candara;
}

header {
	text-align: center;
    width: 1000px;
    margin: auto;
}

#logo {
    
    font-family: Candara;
    margin: auto;
    margin-bottom: 60px;
    margin-top: 60px;
}

#logo-jardin-sante {
	position: absolute;
    left: 0;
    right:  0;
	z-index: 1;
}

#logo span:nth-child(1) {
    position: absolute;
    top: 0;
    font-size: 2.5em;
    color: #540000;
    margin-left: 50px;
}

#logo span:nth-child(2) {
    font-size: 5.0vw;
    color: #005429;
}

#logo span {
    position: relative;
    font-weight: bold;
    z-index: 2;
}

#logo img {
	margin: auto;
	max-width: 100%;
	height: auto;
}

#logo-jardin-sante {
	position: absolute;
	margin-bottom: 50px;
	z-index: 1;
}

#sun-rays {
	position: relative;
    width: 615px;
    height: 200px;
    left: 0;
    right: 0;
    padding: 0;
	animation-name: sun-rays-spinning;
    animation-duration: 50s;
	animation-iteration-count: infinite;
    animation-timing-function: linear;
    z-index: 0;
}

@keyframes sun-rays-spinning {
    0% {transform: rotate(0deg)}
    50% {transform: rotate(359deg)}
}

.verite {
    background-color: #180D07;
    box-shadow: 0 0px 2px 0px black;
    font-family: 'Kaushan Script', cursive;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
}

.verite span {
    font-family: Candara;
    font-size: 1.0em;
    line-height: 35px;
    padding-right: 10px;
}

.verite a {
    color: #FAEFDE;
    display: inline-block;
    padding: 4px 0 0 5px
}

.verite a:hover {
    text-decoration: none;
    font-size: 1.25rem;
}

.verite img {
    position: relative;
    top: -2px;
    width: 40px;
    vertical-align: middle;
    margin-right: 5px;
}

.navbar {
    padding: 0;
}

.navbar-nav {
    margin: auto;
    vertical-align: top;
}

.navbar-toggler-custom, .nav-item {
    height: 80px;
    background-image: url('../images/sign-dirt.png'), url('../images/sign-handle-inactive.png');
    background-repeat: no-repeat;
    background-position: 50% bottom, 50% 110%;
}

.navbar-toggler-dirtless {
    background-image: url('../images/sign-handle-inactive.png');
}

.navbar-toggler-custom {
    display: none;
    cursor: pointer;
}

.navbar-toggler-custom span, .nav-link {
    background-image: url('../images/sign-inactive.png');
    background-repeat: repeat-x;
    border-top: 2px solid #CEB99D;
    border-left: 2px solid #CEB99D;
    border-bottom: 1px solid #B79971;
    border-right: 1px solid #B79971;
}

.navbar-toggler-custom span {
    width: 100px;
    display: block;
}

.navbar-toggler-custom  span, .nav-link {
    font-family: vSHandprinted;
    font-size: 1.41rem;
	color: #714F1C;
	height: 47px;
	display: flex;
	justify-content: center;
	text-align: center;
    flex-direction: column;
	text-shadow: 1px 1px #F9E6C8;
}

.navbar-toggler-custom span:hover {
    color: #4A371A;
}

.nav-item {
    position: relative;
    top: 1px;
    transition: transform 0.5s;
}

.nav-item:not(:last-child) {
    margin-right: 1vw;
}

.nav-item:hover {
    transform: none;
}

.nav-link {
	display: flex;
	transition: transform 1s;
}

.nav-link:hover {
    color: #4A371A;
    transform: none;
}

.nav-link span {
    padding-left: 10px;
    padding-right: 10px;
}

.board-active {
    background-image: url('../images/sign-active.png') !important;
	border-top: 2px solid #F3CE96 !important;
    border-left: 2px solid #F3CE96 !important;
}

.handle-active {
    background-image: url('../images/sign-dirt.png'), url('../images/sign-handle-active.png');
}

.board-accueil {
    transform: rotate(-2deg);
}

.handle-accueil {
    transform: rotate(-1deg);
}

.handle-problematique {
    transform: rotate(3deg);
}

.board-etudes {
    transform: rotate(-1deg);
}

.handle-etudes {
    transform: rotate(-2deg);
}

.board-videos {
    transform: rotate(-2deg);
}

.handle-videos {
    transform: rotate(3deg);
}

.board-quiz {
    transform: rotate(1deg);
}

.handle-quiz {
    transform: rotate(-3deg);
}

#site-content {
	background-color: #C58D70;
	width: 1000px;
	margin: auto;
	flex: 1;
    padding: 25px;
    z-index: 1;
    box-shadow: 10px 0 20px -15px #000000, -10px 0 20px -15px #000000;
}

#site-content p {
	color: #382903;
    margin-top: 10px;
    margin-bottom: 10px;
}

#site-content img {
    box-shadow: 0px 0px 5px 1px #965B3D;
    margin-top: 15px;
    margin-bottom: 15px;
}

#site-content a {
    color: #002A15;
    text-decoration: underline;
}

#site-content a:hover {
    color: #000000;
}


#dirt {
	flex: none;
	width: 1000px;
	height: 60px;
    margin: auto;
	background-color: #C58D70;
	background-image: url('../images/dark-dirt.png'), linear-gradient(#C58D70 40px, #4C2517 10px);
	background-repeat: repeat-x;
	background-position: 50% 60%;
    position: relative;
    z-index: 1;
}

#site-garden {
	flex: none;
	height: 60px;
	background-image: url('../images/dark-dirt.png'), linear-gradient(transparent 12px, #4C2517 10px);
	background-repeat: repeat-x;
	background-position: 0 0;
    position: relative;
    
}

#site-footer {
	flex: none;
	min-height: 15px;
	background-color: #3E1F13;
	font-size: 0.8em;
	text-align: center;
	color: #E6BDAE;
    
}

#site-footer div:first-child:hover {
	font-weight: bold;
	color: white;
}

footer img {
    width: 24px;
    vertical-align: middle;
}

footer div:nth-child(2) {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 5px;
}

footer div:nth-child(2) img {
    margin-right: 8px;
}

footer div:nth-child(2) a {
    color: #E6BDAE;
    display: flex;
    align-items: center;
    line-height: 24px;
}

#garden-carrots {
    position: absolute;
    width: calc(50% - 500px);
    height: 100%;
    top: -10px;
    background-image: url('../images/carrot-top.png');
    background-repeat: repeat-x;
    background-position: right;
}

#garden-melons {
    position: absolute;
    width: calc(50% - 500px);
    height: 100px;
    top: -50px;
    right: 0;
    background-image: url('../images/melon.png');
    background-repeat: repeat-x;
}

/* Misc */

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.par-highlight {
    background-color: #D6AD98;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px #965B3D;
}

.source {
    font-size: 0.75em;
    text-align: center;
}

.attention div:first-child {
    width: 50px;
    height: 50px;
    background-color: #B1D657;
    border-radius: 10px;
    color: #EEFACF;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 3.0rem;
    float: left;
}

.attention p {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-left: 10px;
}

.follow-facebook, .follow-facebook-medium {
    margin-left: 10px;
    width: 32px;
    height: 32px;
    box-shadow: none !important;
}

.follow-facebook-medium {
    width: 64px;
    height: 64px;
}

label {
    color: #382903;
}

/* Responsive */

@media screen and (min-width: 1920px) {
    .navbar ul li:not(:last-child) {
        margin-right: 15px;
    }
}

@media screen and (max-width: 1100px) {
	#site-content, #dirt, header {
        width: 90vw;
    }
    body {
        background-attachment: initial;
    }
}

@media screen and (max-width: 991px) {
    .navbar-collapse {
        position: relative;
        background-image: url('../images/sign-dirt.png'), url('../images/sign-handle-inactive.png');
        background-repeat: no-repeat;
        background-position: 50% bottom, 50% 100%;
        padding-bottom: 40px;
    }
    .navbar-toggler-custom, .nav-item {
        height: 80px;
        position: relative;
        top: 1px;
    }
    .nav-link, .nav-item {
        transform: none !important;
        height: 47px;
        width: 200px;
    }
    .navbar-nav {
        margin: auto;
        width: 200px;
    }
    header {
        width: 90vw;
    }
    #logo {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    .navbar-toggler-custom {
        display: block;
        margin: auto;
    }
}

/* Bootstrap Forms & Tables */

.form-control {
    background-color: #A86744;
    color: #FFFACD;
    border-top: 1px solid #965B3D;
    border-left: 1px solid #965B3D;
    border-right: 1px solid #D3A992;
    border-bottom: 1px solid #D3A992;
}

.form-control:focus {
    background-color: #F9FDEC !important;
    border: 1px solid #A86744 !important;
    box-shadow: 0 0 2px 2px #A86744 !important;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #95BC33;
}

.btn-primary {
    background-color: #AED053;
    border-top: 1px solid #BEDA76 !important;
    border-left: 1px solid #BEDA76 !important;
    border-right: 1px solid #759227 !important;
    border-bottom: 1px solid #759227 !important;
    color: #2B390E;
    margin-top: 25px;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #B1D657 !important;
    box-shadow: none !important;
    color: #294429 !important;
}

.btn-reset, .btn-reset:hover, .btn-reset:focus {
    background-color: #D25151;
    border-top: 1px solid #DD7D7D !important;
    border-left: 1px solid #DD7D7D !important;
    border-right: 1px solid #BA3030 !important;
    border-bottom: 1px solid #BA3030 !important;
    color: #2B0000 !important;;
}

.btn-reset:hover, .btn-reset:focus {
    background-color: #D65F5F !important;
}

.input-group-text {
    background-color: #E2C7B8;
    border-top: 1px solid #EBD8CD;
    border-left: 1px solid #EBD8CD;
    border-right: 1px solid #BE8563;
    border-bottom: 1px solid #BE8563;
    color: #2A150D;
}

.table td {
    border: none;
    width: 50%;
    word-break: break-word;
}

caption {
    caption-side: top;
    color: #000000;
    padding-top: 0;
    padding-bottom: 0;
}