/* Boutons rétro style arcade */
.button-border {
    border: 8px solid #ffae70;
    outline: 4px solid #52333f;
}

.button-base {
    background-color: #75221c;
    outline: 2px solid black;
    position: relative;
}

.button {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    outline: 2px solid black;
    border: 4px solid;
    border-left-color: #e7b8b4;
    border-top-color: #f8c9c5;
    border-bottom-color: #4e1814;
    border-right-color: #79241e;
    background-color: #e64539;
    cursor: pointer;
    color: #ffee83;
    padding: 12px 24px;
    transform: translateY(-20%);
    transition: transform 0.1s;
}

.button:hover {
    transform: translateY(-10%);
}

.button:active {
    transform: translateY(0);
}

#interrupteur-ambiance {
    position: absolute;
    top: 20px;
    right: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch #entree-ambiance {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196f3;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    z-index: 0;
    overflow: hidden;
}

.sun-moon {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

#entree-ambiance:checked+.slider {
    background-color: black;
}

#entree-ambiance:focus+.slider {
    box-shadow: 0 0 1px #2196f3;
}

#entree-ambiance:checked+.slider .sun-moon {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: white;
}

.moon-dot {
    opacity: 0;
    transition: 0.4s;
    fill: gray;
}

#entree-ambiance:checked+.slider .sun-moon .moon-dot {
    opacity: 1;
}

.slider.round {
    border-radius: 34px;
}

.slider.round .sun-moon {
    border-radius: 50%;
}

#point-lune-1 {
    left: 10px;
    top: 3px;
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 4;
}

#point-lune-2 {
    left: 2px;
    top: 10px;
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 4;
}

#point-lune-3 {
    left: 16px;
    top: 18px;
    position: absolute;
    width: 3px;
    height: 3px;
    z-index: 4;
}

#rayon-lumiere-1 {
    left: -8px;
    top: -8px;
    position: absolute;
    width: 43px;
    height: 43px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#rayon-lumiere-2 {
    left: -50%;
    top: -50%;
    position: absolute;
    width: 55px;
    height: 55px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#rayon-lumiere-3 {
    left: -18px;
    top: -18px;
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

.cloud-light {
    position: absolute;
    fill: #eee;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

.cloud-dark {
    position: absolute;
    fill: #ccc;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-delay: 1s;
}

#nuage-1 {
    left: 30px;
    top: 15px;
    width: 40px;
}

#nuage-2 {
    left: 44px;
    top: 10px;
    width: 20px;
}

#nuage-3 {
    left: 18px;
    top: 24px;
    width: 30px;
}

#nuage-4 {
    left: 36px;
    top: 18px;
    width: 40px;
}

#nuage-5 {
    left: 48px;
    top: 14px;
    width: 20px;
}

#nuage-6 {
    left: 22px;
    top: 26px;
    width: 30px;
}

@keyframes cloud-move {
    0% {
        transform: translateX(0px);
    }

    40% {
        transform: translateX(4px);
    }

    80% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0px);
    }
}

.stars {
    transform: translateY(-32px);
    opacity: 0;
    transition: 0.4s;
}

.star {
    fill: white;
    position: absolute;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    animation-name: star-twinkle;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

#entree-ambiance:checked+.slider .stars {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

#etoile-1 {
    width: 20px;
    top: 2px;
    left: 3px;
    animation-delay: 0.3s;
}

#etoile-2 {
    width: 6px;
    top: 16px;
    left: 3px;
}

#etoile-3 {
    width: 12px;
    top: 20px;
    left: 10px;
    animation-delay: 0.6s;
}

#etoile-4 {
    width: 18px;
    top: 0px;
    left: 18px;
    animation-delay: 1.3s;
}

@keyframes star-twinkle {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

#bouton-retour {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}