/*! AVU CSS v1.4.2 | CC BY-NC-SA 4.0 Licence */

/*
V 1.4.2 - AVU CSS - 10/12/2024
- Added a new "center-links" class to center links.
- Added a new "message" category.
    - Added a new "message-form" class.
    - Added a new "message-input" class.
    - Added a new "message-item" class.
    - Added a new "own-message" class.
    - Added a new "message-header" class.
    - Added a new "username" class.
    - Added a new "date" class.
- Added a new "profile" category.
    - Added a new "stats-grid" class.
    - Added a new "stat-box" class.
    - Added a new "stat-number" class.
    - Added a new "stat-date" class.
    - Added a new "form-grid" class.
    - Added a new "form-group" class.
    - Added a new "alert" class.
    - Added a new "success" class.
- Added a new "messages-list" class.
- Added a new "announcement" category.
    - Added a new "announcement-item" class.
    - Added a new "announcement-header" class.
    - Added a new "announcement-content" class.
    - Added a new "new" class.
    - Added a new "newAnnouncement" animation.

V 1.4.1 - AVU CSS - 03/12/2024
- Logo and Icons Update
    - Moved all icon in the new icon category.
    - Added a new "formal" icon.
    - Added a new "combat" icon.
- Added "center-links" class to center links.

V 1.4 - AVU CSS - 29/11/2024
- added Icons in the "topnav" category.
- added a new "guide" icon.
 */

/*
V 1.3/1.3.1 - AVU CSS - 28/11/2024
- adding new terminal headers
- modernizing the design

- added tables
- reorganizing the code
    - changing img others -> images
    - made slight changes
*/

/* Fonts ========================================================================== */

/* Monaspace Krypton is used for titles. */
@font-face {
    font-family: 'MonaspaceKrypton-Regular';
    src: url('/font/title/MonaspaceKrypton-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Monaspace Argon is used for text. */
@font-face {
    font-family: 'MonaspaceArgon-Regular';
    src: url('/font/text/MonaspaceArgon-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Computer Modern is used for math (LaTeX). */
@font-face {
    font-family: 'ComputerModern';
    src: url('/font/math/cmunbi.ttf') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Pages ========================================================================== */

body {
    font-family: 'Courier New', monospace;
    background-color: #000000;
    color: #00ff00;
    margin: 0;
    padding: 0;
}

footer {
    font-size: 12px;
    text-align: center;
}

/* Titles ========================================================================== */

h1 {
    font-family: 'MonaspaceKrypton-Regular', monospace;
    font-size: 20px;
    text-align: center;
    color: #00ff00;
    margin-bottom: 20px;
}

h2 {
    font-family: 'MonaspaceKrypton-Regular', monospace;
    font-size: 24px;
    text-align: center;
    color: #00ff00;
    margin-bottom: 20px;
}

p {
    font-family: 'MonaspaceArgon-Regular', monospace;
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
}

q {
    font-family: 'MonaspaceArgon-Regular', monospace;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    /* Changez cette ligne pour aligner le texte Ã  gauche */
}

/* Text Styling ========================================================================== */

.bold-text {
    font-weight: bold;
}

.italic-text {
    font-style: italic;
}

.small-text {
    font-size: 14px;
}

.left {
    text-align: left;
}

.centered {
    text-align: center;
}

.reset-margin-bottom {
    margin-bottom: 0;
}

/* containers ========================================================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* images ========================================================================== */

img {
    max-width: 100%;
}

img.displayed {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    cursor: not-allowed;
    text-align: center;
}

img.logo {
    height: 50px;
    vertical-align: middle;
}

/* Terminal ========================================================================== */

.terminal {
    background-color: #000000;
    padding: 10px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    overflow: auto;
    max-height: max-content;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.terminal-buttons {
    display: flex;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.terminal-button-red {
    background-color: #ff5f56;
    position: relative;
}


.terminal-button-red::before {
    content: 'x';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    /* Ajustez la taille de la croix selon vos besoins */
}

.terminal-button-yellow {
    background-color: #ffbd2e;
    position: relative;
}

.terminal-button-yellow::before {
    content: '';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    /* Ajustez la taille du tiret selon vos besoins */
}

.terminal-button-green {
    background-color: #27c93f;
    position: relative;
}

.terminal-button-green::before {
    content: '';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    /* Ajustez la taille du carrÃ© selon vos besoins */
}

.terminal-title {
    color: #00550e;
    font-weight: bold;
}

.terminal-body {
    color: #00FF00;
}

.terminal-prompt {
    color: #ffbd2e;
}

.darkgreen {
    color: #27c93f;
}

.terminal pre {
    margin: 0;
    padding: 0;
    color: #00ff00;
}

/* topnav ========================================================================== */

.topnav {
    background-color: #000000;
    text-align: center;
    margin-bottom: 25px;
}

.topnav a,
.topnav img {
    display: inline-block;
    color: #00ff00;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    vertical-align: middle;
}

.topnav a:hover {
    background-color: #202020;
    color: black;
}

.topnav a.active {
    background-color: #00ff00;
    color: white;
}

.topnav a.unusual {
    background-color: #050505;
    color: white;
}

/* Icons ========================================================================== */

.return {
    height: 20px;
    vertical-align: middle;
    content: url('/assets/icon/goBack.png');
}

.home {
    height: 20px;
    vertical-align: middle;
    content: url('/assets/icon/home.png');
}

.avu-logo {
    height: 70px;
    vertical-align: middle;
    content: url('/assets/icon/AVU_logo.png');
}

.guide {
    height: 70px;
    vertical-align: middle;
    content: url('/assets/icon/guide.png');
}

.formal {
    height: 40px;
    vertical-align: middle;
    content: url('/assets/icon/formal.png');
}

.combat {
    height: 40px;
    vertical-align: middle;
    content: url('/assets/icon/combat.png');
}

/* Table ========================================================================== */

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td,
th {
    border: 1px solid #000000;
    text-align: left;
    padding: 8px;
}

/* Version mobile */
@media screen and (max-width: 600px) {
    table {
        width: 100%;
        border: 0;
    }

    table thead {
        display: none;
    }

    table tr {
        display: block;
        margin-bottom: 10px;
    }

    table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }
}

.table-title {
    font-family: 'MonaspaceKrypton-Regular', monospace;
    font-size: 20px;
    color: #00ff00;
    margin: 0%;
}

/* colours ========================================================================== */

.red {
    color: red;
}

.orange {
    color: orange;
}

.yellow {
    color: yellow;
}

.green {
    color: lime;
}

.darkgreen {
    color: darkgreen;
}

.blue {
    color: blue;
}

.indigo {
    color: indigo;
}

.violet {
    color: violet;
}

.white {
    color: white;
}

/* Github markdown note ========================================================================== */

.alert {
    padding: 6px;
    /* margin-bottom: 15px; */
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert.warning {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.warning {
    color: red;
}

.alert.info {
    background-color: #004d5a;
    color: #ffffff;
    border-color: #bee5eb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Button ========================================================================== */

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000;
    color: #00ff40;
    text-decoration: dotted;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: 1px solid #00ff00;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.button:hover {
    background-color: #202020;
    color: #ffffff;
}

.center-button {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Form ========================================================================== */

form {
    margin-top: 40px;
}

input {
    padding: 8px 12px;
    font-size: 16px;
    background-color: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 100%;
}

button[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #949494;
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Combat document ========================================================================== */

.life-display {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000000;
    color: #00ff40;
    text-decoration: dotted;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: 0.1px solid #424242;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.math {
    font-family: 'ComputerModern', monospace;
    font-size: 16px;
    background-color: #050505;
    color: #00ff00;
}

/* Animations ========================================================================== */

@keyframes glitch {
    0% {
        transform: translate(2px, 2px);
        text-shadow: -1px -1px #ff00ff;
    }

    25% {
        transform: translate(-2px, -2px);
        text-shadow: 2px -1px #00ffff;
    }

    50% {
        transform: translate(2px, -2px);
        text-shadow: 1px 1px #ff00ff;
    }

    75% {
        transform: translate(-2px, 2px);
        text-shadow: -2px 1px #00ffff;
    }

    100% {
        transform: translate(2px, 2px);
        text-shadow: -1px -1px #ff00ff;
    }
}

@keyframes neon {
    0% {
        box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00, 0 0 70px #00ff00, 0 0 80px #00ff00, 0 0 100px #00ff00, 0 0 150px #00ff00;
    }

    50% {
        box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00, 0 0 20px #00ff00, 0 0 35px #00ff00, 0 0 40px #00ff00, 0 0 50px #00ff00, 0 0 75px #00ff00;
    }

    100% {
        box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00, 0 0 70px #00ff00, 0 0 80px #00ff00, 0 0 100px #00ff00, 0 0 150px #00ff00;
    }
}

/* Others ========================================================================== */

label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}

.divider {
    border-top: 1px solid #00ff00;
    margin: 20px 0;
}

.center-links {
    display: flex;
    justify-content: center;
    gap: 10px; /* Espace entre les liens */
}

/* message ========================================================================== */

.message-form {
    margin-bottom: 20px;
}

.message-input {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-family: 'MonaspaceArgon-Regular', monospace;
}

.message-item {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: #606060;
}

.own-message {
    background-color: #3c3c3c;
    margin-left: 20%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.username {
    font-weight: bold;
}

.date {
    color: #666;
}

/* Profile ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
}

.stat-date {
    font-size: 1.5em;
    color: #2196F3;
}

.form-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}

.form-group {
    display: grid;
    gap: 5px;
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.success {
    background-color: #4CAF50;
    color: white;
}

/* ...existing code... */
.messages-list {
    max-height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.message-form {
    position: sticky;
    bottom: 0;
    background: var(--terminal-bg);
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

/* System messages ========================================================================== */

.system-message {
    background-color: #1a1a1a;
    border-left: 3px solid #00ff00;
}

.system-message .username {
    color: #00ff00;
}

/* Announcements ========================================================================== */

.announcement-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    background-color: rgba(0, 255, 0, 0.05);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
}

.announcement-header h3 {
    margin: 0;
    color: #00ff00;
    font-family: 'MonaspaceKrypton-Regular', monospace;
    font-size: 18px;
}

.announcement-header .date {
    font-size: 0.8em;
    color: #008800;
    font-family: 'MonaspaceArgon-Regular', monospace;
}

.announcement-content {
    font-family: 'MonaspaceArgon-Regular', monospace;
    line-height: 1.4;
    color: #00ff00;
    padding: 10px 0;
}

/* Animation pour les nouvelles annonces */
@keyframes newAnnouncement {
    from {
        background-color: rgba(0, 255, 0, 0.2);
        transform: translateY(-10px);
    }
    to {
        background-color: rgba(0, 255, 0, 0.05);
        transform: translateY(0);
    }
}

.announcement-item.new {
    animation: newAnnouncement 0.5s ease-out;
}

/* Status selector ========================================================================== */

.status-selector {
    text-align: right;
    margin: 10px 0;
}

.status-dropdown {
    background: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #00ff00;
}

.status-idle {
    background-color: #ffbd2e;
}

.status-offline {
    background-color: #666666;
}