/*! AVU CSS v1.4 | CC BY-NC-SA 4.0 Licence */

/* 
V 1.4 - AVU CSS - 29/11/2034
- 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: '✕';
    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;
}

/* Return to previous page icon */
.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');
}

/* 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;
}

.link-color {
    color: #208484;;
}

.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;
}

.hack-input {
    padding: 8px 12px;
    font-size: 16px;
    background-color: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 100%;
}

input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00ff00;
    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;
    animation: neon 1s infinite;
}

input[type="submit"]:hover {
    background-color: #ff00ff;
    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;
}