html,
body {
    font-family: 'Courier New';
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    /* pour prendre en compte les navigateurs basés sur le moteur de rendu WebKit, comme Chrome et Safari */
    -moz-user-select: none;
    /* pour prendre en compte les navigateurs basés sur le moteur de rendu Gecko, comme Firefox */
}

a,
h1,
h2,
h3,
h4,
form,
button,
input,
label,
select,
option {
    font-family: 'Courier New';
}

@font-face {
    font-family: 'Adventurer';
    src: url('../assets/fonts/Adventurer.ttf') format('truetype');
    /* You can include other font formats like woff, woff2 for better browser support */
}


#notification {
    position: absolute;
    top: 10%;
    transform: translateY(-90%);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    border-radius: 5px;
    display: none;
    align-items: center;
    z-index: 1000000;
}

.coins {
    width: 32px;
    height: 32px;
}

#dialog-box {
    z-index: 10000000000;
    position: fixed;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-width: 750px;
}

#dialog-responses {
    max-height: 155px;
    overflow: auto;
}

#dialog-responses::-webkit-scrollbar {
    width: 10px;
}

#dialog-responses::-webkit-scrollbar-track {
    background-color: #000000;
}

#dialog-responses::-webkit-scrollbar-thumb {
    background-color: #464646;
}

#dialog-responses::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}


#npc-image {
    position: absolute;
    top: -64px;
    left: 0px;
    width: 64px;
    max-width: 64px;
    max-height: 64px;
    height: 64px;
    background-color: white;
    border-color: black;
    border-radius: 10px;
}

#message-container {
    position: relative;
    padding: 15px;
    color: white;
    max-height: 100%;
}

#arrow {
    position: absolute;
    bottom: 0;
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    overflow: hidden;
    animation: blink 1s infinite;
}

#arrow-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: #fff;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    animation: grow 1s ease-out infinite;
}

#message-content {
    font-size: 20px;
    color: white;
    white-space: pre-wrap;
    display: inline-block;
    vertical-align: middle;
}

.item {
    cursor: pointer;
    width: 25px;
    height: 25px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Opacité de 50 % */
    z-index: 1000000000;

    /* Empiler au-dessus de la boîte de dialogue */
}

#prompt {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 300px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
}

#prompt_text {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Conteneur de la liste déroulante */
#dropdown-container {
    position: absolute;
    top: 6%;
    right: 0%;
    z-index: 9999;
}

/* Bouton de la liste déroulante */
#dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    cursor: pointer;
}

.current-quest {
    font-weight: bold;
}

/* Flèche vers le bas */
.arrow-down {
    font-size: 14px;
    margin-left: 10px;
}

/* Menu déroulant */
#dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    max-height: 250px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    z-index: 9999;
    scrollbar-width: thin;
    scrollbar-color: #464646 rgba(0, 0, 0, 0.5);
}

/* Liste des quêtes */
#dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#dropdown-menu li {
    padding: 10px;
    border-bottom: 1px solid #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#dropdown-menu li:hover {
    background-color: #fff;
    color: #000;
}

/* Affichage du menu déroulant */
#dropdown-container.open #dropdown-menu {
    display: block;
}

#dropdown-menu::-webkit-scrollbar {
    width: 10px;
}

#dropdown-menu::-webkit-scrollbar-track {
    background-color: #000000;
}

#dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #464646;
}

#dropdown-menu::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

#modal {
    display: block;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
}

#modal-content {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    top: 0%;
    left: 25%;
    position: absolute;
}

.close {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgb(56, 55, 55);
    text-decoration: none;
    cursor: pointer;
}

#modal-content h2 {
    margin-top: 0;
}

#modal-content p {
    display: block;
    margin: 10px 0;
}

.chat-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    background-color: transparent;
    border-color: white;
    color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    outline: none;
    resize: none;
    transition: all 0.2s ease-in-out;
}

.chat-input:focus {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.chat-send-button {
    padding: 10px 20px;
    margin-left: 10px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    background-color: transparent;
    color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.chat-send-button:hover {
    background-color: #333;
    color: #fff;
}

.chat-send-button:active {
    box-shadow: none;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.typing-indicator span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 3px;
    background-color: black;
    opacity: 0;
    animation: typing 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.settings {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    width: auto;
    height: 50px;
    border: none;
    z-index: 2;
}

#Settings_img {
    width: 50px;
    height: auto;
    transition: transform 0.25s;
    cursor: pointer;
}

#Settings_modal {
    display: none;
    position: absolute;
    top: 85%;
    right: 0;
    background-color: white;
    padding: 5px;
    border: none;
    width: 100px;
    text-align: center;
}

#settings_close {
    position: relative;
    float: left;
    cursor: pointer;
}

#list_settings {
    cursor: pointer;
}

@keyframes typing {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }

    25% {
        opacity: 1;
        transform: translate(0, -6px);
    }

    50% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/*CHAT DE JOUEURS*/
.chat-box {
    z-index: 1000000000;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 400px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid #000;
    opacity: 1;
    transition: height 0.3s ease-in-out, opacity 1s ease-in-out, z-index 1s ease-in-out;
}


.chat-box.collapsed {
    height: 50px;
}

.chat-box.hidden {
    opacity: 0;
    z-index: -1;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.chat-header p {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.collapse-btn,
.close-btn {
    background-color: transparent;
    color: #fff;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.chat-messages {
    overflow-y: auto;
    padding: 0.5rem;
    font-size: smaller;
}

.chat-messages::-webkit-scrollbar {
    width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.7);
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #000000;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: #000000;
}

.user-message {
    margin-bottom: 0.5rem;
}

.user-message p {
    margin: 0;
}

.username {
    font-weight: bold;
    color: #C992ff;
}

.send-date {
    color: cyan;
}

.system-message {
    margin-bottom: 0.5rem;
    text-align: center;
    color: #888;
}

.player-chat-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
}

.player-chat-input input[type="text"] {
    flex-grow: 1;
    margin-right: 0.5rem;
    padding: 0.2rem;
    border: white;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid #000;
}

.player-chat-input button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}

#chat-selector {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
}

option {
    cursor: pointer;
}

.flashing-border {
    animation: flash 1s infinite;
    -webkit-text-stroke: 2px rgb(0, 247, 255);
    /* Largeur et couleur du contour du texte */
    color: white;
    display: inline;
}

@keyframes flash {
    0% {
        -webkit-text-stroke: 2px rgb(0, 247, 255);
    }

    50% {
        -webkit-text-stroke: 2px transparent;
    }

    100% {
        -webkit-text-stroke: 2px rgb(0, 247, 255);
    }
}

/*Settings*/

#settingsMenu {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    top: 0%;
    left: 25%;
    position: absolute;
}

.settings_category {
    margin-bottom: 20px;
    display: none;
}

.settings_category h2,
.settings_category h3 {
    text-align: center;
}

.settings_category label {
    display: block;
    margin-bottom: 10px;
}

.settings_category button {
    display: block;
    margin: 0 auto;
}

.support_footer {
    position: absolute;
    bottom: -1%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    width: auto;
    height: auto;
}

.support_footer a {
    color: white;
}

@media (max-width: 768px) and (orientation: portrait) {

    .support_footer {
        text-align: center;
        font-size: 16px;
        width: 100%;
    }

    #message-container {
        font-size: 12px;
    }

    #message-content {
        font-size: 14px;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {

    .support_footer {
        text-align: center;
        font-size: 16px;
        width: 100%;
    }

    #message-container {
        font-size: 12px;
    }

    #message-content {
        font-size: 14px;
    }
}