:root {
    --blue: #022342;
}

* {
    margin: 0 0 0 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--blue);
}

header {
    background-color: var(--blue);
    color: white;
    text-align: center;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 1rem;
    align-items: center;
}

.message {
    border-radius: 1rem;
    padding: 1rem;
    margin: 10px;
    background-color: var(--blue);
    color: white;
}


.sender, .dest {
    font-weight: bold;
    background-color: white;
    padding: 0.3rem;
    border-radius: 1rem;
    color: var(--blue);
    width: fit-content;
    margin-left: 0.3rem;
    margin-right: 0.3rem;

}

.messageAdmin {
    border: 1px solid var(--blue);
}

.messageAdmin .sender {
    background-color: red;
}

.messageAdmin .messageContent {
    border: none;
}

#messages {
    padding: 0;
}

.messageContent {
    margin-top: 0.5rem;
}


button, .link {
    margin: 10px;
    padding: 10px;
    border-radius: 1rem;
    border: 1px solid white;
    background-color: var(--blue);
    color: white;
}

a {
    color: white;
}

.link {
    display: flex;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    font-size: 1.5rem;
    width: min(1200px, 95vw);
}

.link a {
    border: none;
    margin: 0;
}

.messageInfos {
    display: flex;
    justify-content: space-between;
    align-content: center;
    justify-items: center;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid white;
}

#messageList {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* for very big screens */
    font-size: 1.5rem;
    margin: auto;
    background-color: #ececec;
    background-color: var(--blue);
    padding: 1rem;
    border-radius: 1rem;
    border-radius: 0;
    height: max(calc(100vh - 2 * 3rem), 300px);
    height: max(calc(100svh - 2 * 3rem), 300px); /* pour un meilleur affichage mobile */
    overflow-y: auto;
}

/* masquer scrollbar messageList */
#messageList::-webkit-scrollbar {
    overflow: hidden;
}

.lastUpdated {
    text-align: center;
    margin-top: 1rem;
}


.username {
    display: flex;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
}

header img {
    height: 3rem;
    text-align: center;
    display: block;
    filter: invert(1) brightness(100);
}


.adminLabel {
    background-color: var(--blue);
    padding: 0.3rem;
    margin: 0.3rem 0;
    color: white;
    text-align: center;
    border-radius: 0.5rem
}


form {
    display: flex;
    flex-direction: column;
    width: min(600px, 95vw);
    margin: auto;

}

input, textarea {
    margin: 10px;
    padding: 10px;
    border-radius: 1rem;
    border: 1px solid white;

}

main {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

textarea {
    height: max(30vh, 200px);
    height: max(30svh, 200px); /* pour un meilleur affichage mobile */
    /* allow resizing */
    resize: vertical;
}

button, a {
    margin: 10px;
    padding: 10px;
    border-radius: 1rem;
    border: 1px solid white;
    background-color: var(--blue);
    color: white;
}


a {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.response {
    margin: 10px;
    padding: 10px;
    border-radius: 1rem;
    border: 1px solid white;
    display: none;
}

.popup {
    display: none;
    position: absolute;
    width: min(600px, 95vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid white;
    border-radius: 1rem;
    padding: 1rem;
}

.action {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.send {
    background-color: darkgreen;
}

.cancel {
    background-color: darkred;
}


.emoji-container {
    width: 300px;
    text-align: center;
}


#emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.emoji {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.emoji:hover {
    transform: scale(1.2);
}
.sendAnnonce {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: auto;
    flex-direction: column;

}