@font-face {
    font-family: 'Quicksand';
    src: url('./quicksand.ttf') format('truetype');
}

:root {
    --color1: #2A262E;
    --color2: #121013;
    --color3: #1E1B20;
    --color4: #F2A9C2;
    --color5: #fff;
    --color6: #ffffffc0;
}

h2, h3, h4, h5 {
    margin: 0;
}

body,
button,
input,
textarea {
    font-family: "Quicksand", serif;
    font-optical-sizing: auto;
    color: var(--color5);
}

body {
    margin: 0;
    display: flex;
    height: 100vh;
    background-color: var(--color1);
    
}

body,
body * {
    transition-duration: 0.3s;
    transition-property: all;
}

.nav-button {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: var(--color1);
    width: 40px;
    height: 40px;
    border-radius: 25px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color4);
}

.menu {
    background-color: var(--color3);
    border-right: 2px solid var(--color4);
    width: 220px;
    display: flex;
    flex-direction: column;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--color4);
    transition: transform 0.8s ease;
    transform-origin: center;
    border-radius: 5px;
}

.switch-button {
    text-align: center;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    border: 2px solid var(--color4);
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    user-select: none;
}

.switch-button:hover {
    border-color: var(--color5);
}

.list-container {
    flex-grow: 1;
    margin: 10px;
}

.button-list {
    cursor: pointer;
}

.button-list:hover {
    text-shadow: var(--color4) 0px 0px 5px;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.removed {
    display: none;
}

.content {
    background-color: var(--color2);
    flex-grow: 1;
}

.create {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding: 5px;
    user-select: none;
    cursor: pointer;
}

.create:hover {
    text-shadow: var(--color4) 0px 0px 5px;
}

.page {
    background-color: var(--color1);
    height: calc(100% - 40px);
    max-width: 900px;
    margin: 5px auto;
    border-radius: 15px;
    overflow: auto;
    padding: 15px;
    width: calc(100% - 30px);
}

.page textarea {
    background-color: transparent;
    border: none;
    width: 100%;
    color: var(--color5);
    resize: none;
}

.emotion-container {
    margin-bottom: 10px;
}

.text {
    margin-bottom: 100px;
}

blockquote {
    border-left: 5px solid var(--color4);
    font-style: italic;
    margin: 10px 25px;
    padding-left: 10px;
    color: var(--color6);
}

.inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    font-weight: bold;
    border: none;
}

input[type="range"] {
    appearance: none;
    width: 90%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--color2);
}

input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--color4);
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color1);
    border: 3px solid var(--color4);
    cursor: pointer;
}

input[type="range"]:disabled::-moz-range-thumb {
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--color1);
    border: none;
    cursor: default;
}

input[type="range"]:disabled {
    appearance: none;
    width: 90%;
    height: 6px;
    background: transparent;
}

/* Track */
input[type="range"]:disabled::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: var(--color2); /* une seule couleur, pas de progress */
}

/* Thumb */
input[type="range"]:disabled::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--color5);
    border-radius: 25px; /* carré */
    cursor: default;
    margin-top: -2px;
}

.popup-background {
    position: fixed;
    background-color: rgba(134, 134, 134, 0.25);
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadein 0.3s;
    animation-fill-mode: forwards;
}

.popup {
    background-color: var(--color3);
    border: 2px solid var(--color4);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.popup-button {
    font-weight: bold;
    padding: 10px;
    border: 2px solid var(--color4);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.popup-button:hover {
    border-color: var(--color5);
}

.popup-inputs input {
    width: 50px;
}

.popup input {
    margin: 10px;
    text-align: center;
    border: 2px solid var(--color4);
    border-radius: 5px;
    background-color: var(--color2);
}

.popup input:focus-visible {
    border-color: var(--color5);
    background-color: var(--color1);
}

.Anbar {
    color: #d991f0;
    text-shadow: #d991f0 0 0 5px;
    font-weight: bold;
}

.Athena {
    color: rgb(123, 112, 90);
    font-weight: bold;
}

.artist {
    font-weight: bold;
    color: #00babd;
}

.art {
    font-weight: bold;
    color: #1952ce;
}

@media screen and (max-width: 768px) {
    .nav-button {

        display: flex;

    }

    .menu {
        position: fixed;
        height: 100vh;
    }

    .closed-menu {
        margin-left: -222px;
    }

    .inputs {
        grid-template-columns: 1fr 1fr;
    }

    .page {

        height: calc(100% - 20px);
        padding: 5px;
        width: calc(100% - 10px);
    }

    blockquote {
        margin: 10px;
    }
}

@keyframes fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/*
Hapiness - Jaune vif
Joy - Orange vif
Feminity - Lavande
Assurance - Bleu roi
Love - Rouge rosé
Sexual desire - Violet
Patience - Beige
Stress - Orange brûlé
Anxiety - Bleu gris
Anger - Carmin
Sadness - Bleu marine
Depression - Bleu nuit
Libido - Marron sale
Social battery - Kaki
Boredom - Gris
Emptiness - Noir
*/