@import url('https://fonts.googleapis.com/css2?family=RocknRoll+One&family=Yellowtail&display=swap');

/* STRUCTURE */

body {
    font-family: "RocknRoll One", sans-serif;
    font-size: 1rem;
    background-color: #212121;
    color: #e8e8e8;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #E3BC74;
    background-image: url("/media/header_bg.png");
    color: #000000;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    height: 17vh;
    position: sticky;
    top: 0;
    border-radius: 0 0 25px 25px;
    box-shadow: 0px 20px 15px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 30%;
}

header div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0%;
}

footer {
    color: #ffffff;
    height: 10vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    bottom: 0;
    padding-right: 2.5%;
    padding-left: 2.5%;
}


h1 {
    font-family: "Yellowtail", cursive;
    font-size: 5rem;
}

hr {
    color: #E3BC74;
    size: 10px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 35px;
    max-width: 60%;
    width: 100%;
}

form input,
form select,
form textarea {
    font-family: "RocknRoll One", sans-serif;
    padding: 1rem;
    margin: 0.5rem;
    color: #212121;
    background-color: #e8e8e8;
    border: solid;
    border-color: #212121;
    border-radius: 20px;
    max-width: 60%;
    width: 100%;
}

form label {
    font-family: "RocknRoll One", sans-serif;
    color: #e8e8e8;
    text-align: left;
    flex-direction: row;
    max-width: 60%;
    width: 100%;
}

form div {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

form input[type='checkbox'] {
    padding: 0%;
    margin: 0%;
    width: auto;
}

form p {
    margin: 0;
}

/* LIENS */

header nav a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem;
    transition: 0.25s;
}

#contact a {
    text-decoration: none;
    color: #ffffff;
}

#contact a:hover {
    color: #E3BC74;
}

footer a {
    text-decoration: none;
    color: #E3BC74;
    font-size: 1rem;
    padding: 0.5rem;
    transition: 0.25s;
}

footer a:hover {
    text-decoration: underline;
    color: #E3BC74;
}

/* MEDIA */

body {
    background-image: url("/media/bg.png");
}

header img {
    height: 10vh;

}

#about img {
    max-width: 40%;
    width: 100%;
    border-radius: 15px;
}

#night_mode {
    height: 15vh;
}

/* SECTIONS */

#top {
    height: 76vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#projects h2 {
    margin-top: 9%;
}

#contact {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    margin: 2.5%;
}

#contact h3 {
    margin-top: 9%;
}

/* CLASSES */

.hover:hover {
    color: #ffffff;
    background-color: #000000;
    border-radius: 15px;
}

.rotate:hover {
    transform: rotate(180deg);
}


.button {
    background-image: url("/media/header_bg.png");
    background-color: #E3BC74;
    border-radius: 5px;
    font-size: 1rem;
    padding: 0.5rem;
    color: #000000;
    text-decoration: none;
    transition: 0.25s;
}

.button:hover {
    color: #000000;
    border-radius: 15px;
    font-size: 1.2rem;
}

.button2 {
    background-image: url("/media/header_bg.png");
    background-color: #E3BC74;
    border-radius: 5px;
    font-size: 1rem;
    padding: 0.5rem;
    color: #000000;
    text-decoration: none;
    transition: 0.25s;
}

.button2:hover {
    color: #000000;
    border-radius: 15px;
}

.button3 {
    background-image: url("/media/header_bg.png");
    background-color: #E3BC74;
    border-radius: 5px;
    font-size: 1rem;
    padding: 0.5rem;
    width: 20%;
    color: #000000;
    text-decoration: none;
    transition: 0.25s;
}

.button3:hover {
    color: #000000;
    border-radius: 15px;
}

.container_button {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 3rem;
}

.container_card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 2.5%;
    width: 95%;
}

.container_contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    width: fit-content;
}

.carousel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1%;
}

.gold {
    color: #E3BC74;
}

.text-center {
    text-align: center;
}

/* RESPONSIVE */

@media only screen and (max-width:1320px) {
    #model {
        display: none;
    }

    header nav {
        width: auto;
    }
}

@media only screen and (max-width:1000px) {

    #input,
    #model,
    #night_mode {
        display: none;
    }

    header nav {
        width: auto;
    }

    #about {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }

    #about img {
        width: 50%;
    }

    #contact {
        gap: 0;
    }

    form {
        width: 100%;
        max-width: 90%;
    }

    form input,
    form select,
    form textarea {
        font-family: "RocknRoll One", sans-serif;
        width: 100%;
        max-width: 90%;
        color: #212121;
        background-color: #e8e8e8;
        border: solid;
        border-color: #212121;
        border-radius: 20px;
    }

    form label {
        font-family: "RocknRoll One", sans-serif;
        color: #e8e8e8;
        text-align: left;
        max-width: 90%;
        width: 100%;
    }

}

@media only screen and (max-width:720px) {
    header {
        flex-direction: column;
        height: fit-content;
    }

    #title {
        flex-direction: row;
        height: fit-content;
        width: 90%;
        justify-content: space-between;
    }

    #about img {
    max-width: 90%;
    width: 100%;
    border-radius: 10px;
}

    h1 {
        font-size: 2.5rem;
    }

    .container_contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

    .button3 {
        width: auto;
    }

    form input[type='checkbox'] {
        padding: 0%;
        margin: 0%;
        width: 2rem;
    }

    body {
        text-align: justify;
    }

    footer {
        text-align: center;
    }

    #contact h3 {
        width: 95%;
    }

    .switch {
        display: none;
    }

}

/* MODE CLAIR / SOMBRE */

.light_mode {
    background-image: url("/media/bg_light.png");
    background-color: #e8e8e8;
    color: #212121;

    #contact a {
        text-decoration: none;
        color: #212121;
    }

    #contact a:hover {
        color: #E3BC74;
    }

    .carousel {
        color: #e8e8e8;
    }

    footer {
        color: #212121;
    }

    a {
        color: #212121;
    }

    form label {
        color: #212121;
    }
}

.switch {
    background-color: black;
    width: 92px;
    height: 120px;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2), 0 0 1px 2px black, inset 0 2px 2px -2px white, inset 0 0 2px 15px #47434c, inset 0 0 2px 22px black;
    border-radius: 5px;
    padding: 20px;
}

.switch input {
    display: none;
}

.switch input:checked+.button {
    transform: translateZ(20px) rotateX(25deg);
    box-shadow: 0 -10px 20px #ff1818;
}

.switch input:checked+.button .light {
    animation: flicker 0.2s infinite 0.3s;
}

.switch input:checked+.button .shine {
    opacity: 1;
}

.switch input:checked+.button .shadow {
    opacity: 0;
}

.switch .button {
    transition: all 0.3s cubic-bezier(1, 0, 1, 1);
    transform-origin: center center -20px;
    transform: translateZ(20px) rotateX(-25deg);
    transform-style: preserve-3d;
    background-color: #9b0621;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    background: linear-gradient(#980000 0%, #6f0000 30%, #6f0000 70%, #980000 100%);
    background-repeat: no-repeat;
}

.switch .button::before {
    content: "";
    background: linear-gradient(rgba(255, 255, 255, 0.8) 10%, rgba(255, 255, 255, 0.3) 30%, #650000 75%, #320000) 50% 50%/97% 97%, #b10000;
    background-repeat: no-repeat;
    width: 100%;
    height: 50px;
    transform-origin: top;
    transform: rotateX(-90deg);
    position: absolute;
    top: 0;
}

.switch .button::after {
    content: "";
    background-image: linear-gradient(#650000, #320000);
    width: 100%;
    height: 50px;
    transform-origin: top;
    transform: translateY(50px) rotateX(-90deg);
    position: absolute;
    bottom: 0;
    box-shadow: 0 50px 8px 0px black, 0 80px 20px 0px rgba(0, 0, 0, 0.5);
}

.switch .light {
    opacity: 0;
    animation: light-off 1s;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffc97e, #ff1818 40%, transparent 70%);
}

.switch .dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(transparent 30%, rgba(101, 0, 0, 0.7) 70%);
    background-size: 10px 10px;
}

.switch .characters {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(white, white) 50% 20%/5% 20%, radial-gradient(circle, transparent 50%, white 52%, white 70%, transparent 72%) 50% 80%/33% 25%;
    background-repeat: no-repeat;
}

.switch .shine {
    transition: all 0.3s cubic-bezier(1, 0, 1, 1);
    opacity: 0.3;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(white, transparent 3%) 50% 50%/97% 97%, linear-gradient(rgba(255, 255, 255, 0.5), transparent 50%, transparent 80%, rgba(255, 255, 255, 0.5)) 50% 50%/97% 97%;
    background-repeat: no-repeat;
}

.switch .shadow {
    transition: all 0.3s cubic-bezier(1, 0, 1, 1);
    opacity: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.8));
    background-repeat: no-repeat;
}

@keyframes flicker {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

@keyframes light-off {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 0;
    }
}