@import url('responsive.css');

:root {
    --primary-color: #1e90ff;
    --secondary-color: #4169e1;
    --background-color: rgba(244, 244, 244, 0.9);
    --text-color: #333;
    --border-radius: 0.5rem; /* 8px */
    --yellow-color: #f8d74a; /* Variable pour la couleur jaune */
}

body {
    font-family: 'Supercell-Magic', Arial, sans-serif;
    background-color: black;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0.625rem; /* 10px */
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 0.938rem; /* 15px */
    box-shadow: 0 0.25rem 0.375rem rgba(0,0,0,0.1); /* 0 4px 6px */
    backdrop-filter: blur(5px);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    flex-grow: 1;
    min-width: 40%;
}

.header {
    text-align: center;
    margin-bottom: 1.25rem; /* 20px */
}

.clan-name {
    font-size: 2.5em;
    color: var(--yellow-color);
    font-weight: bold;
    margin-bottom: 0.625rem; /* 10px */
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.5); /* 2px 2px 4px */
}

.clan-copyright-container {
    background-color: var(--yellow-color); /* Conteneur copyright en jaune */
    padding: 0.625rem; /* 10px */
    text-align: center;
    border-top: 0.125rem solid #e5c543; /* 2px */
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    margin-top: 1.25rem; /* 20px */
}

.clan-copyright {
    color: var(--text-color); /* Texte noir */
    font-size: 0.8em;
    font-weight: bold;
}

h1 {
    font-size: 1.8em;
}

h2 {
    font-size: 1.5em;
}

h1, h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.25rem; /* 20px */
    text-shadow: 0.063rem 0.063rem 0.125rem rgba(0,0,0,0.1); /* 1px 1px 2px */
}

.war-form {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 0.938rem; /* 15px */
    margin-bottom: 1.25rem; /* 20px */
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05); /* 0 2px 4px */
    max-width: 43.75rem; /* 700px */
    margin: 0 auto;
}

.war-list {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 0.938rem; /* 15px */
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05); /* 0 2px 4px */
}

.war-item {
    background-color: rgba(255, 255, 255, 0.8);
    border: 0.125rem solid var(--primary-color); /* 2px */
    border-radius: var(--border-radius);
    margin-bottom: 0.938rem; /* 15px */
    padding: 0.938rem; /* 15px */
    transition: all 0.3s ease;
    list-style-type: none;
}

.war-item:hover {
    transform: translateY(-0.188rem); /* -3px */
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1); /* 0 4px 8px */
}

.participation-form {
    margin-top: 0.938rem; /* 15px */
    display: flex;
    flex-direction: column;
    gap: 0.625rem; /* 10px */
}

.btn, button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 0.625rem; /* 10px */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem; /* 14px */
    margin: 0.25rem 0.125rem; /* 4px 2px */
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.btn:hover, button:hover {
    background-color: var(--secondary-color);
}

.btn-remove {
    background-color: #ff6347;
    padding: 0.313rem 0.625rem; /* 5px 10px */
    font-size: 0.75rem; /* 12px */
}

.btn-remove:hover {
    background-color: #ff4500;
}

.btn-close {
    background-color: #4CAF50;
}

.btn-close:hover {
    background-color: #45a049;
}

.btn-delete {
    background-color: #dc3545;
}

.btn-delete:hover {
    background-color: #c82333;
}

input[type="text"], input[type="date"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 0.625rem; /* 10px */
    margin: 0.5rem 0; /* 8px 0 */
    display: inline-block;
    border: 0.063rem solid #ccc; /* 1px */
    border-radius: 0.25rem; /* 4px */
    box-sizing: border-box;
    background-color: white;
}

.participants-list {
    list-style-type: none;
    padding: 0;
}

.participants-list li {
    background-color: rgba(240, 240, 240, 0.8);
    margin: 0.313rem 0; /* 5px 0 */
    padding: 0.313rem 0.625rem; /* 5px 10px */
    border-radius: 0.25rem; /* 4px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* .war-type-icon {
    font-size: 1.5rem; /* 24px */
    /*margin-right: 0.625rem; /* 10px */
} 

.war-date {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    padding-bottom: 0.313rem; /* 5px */
    border-radius: 0.25rem; /* 4px */
    display: inline-block;
    margin-top: 0.313rem; /* 5px */
}

.closed-war {
    opacity: 0.7;
    position: relative;
}

.closed-war::after {
    content: 'INSCRIPTIONS CLOSES';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 0.625rem; /* 10px */
    font-size: 1em;
    font-weight: bold;
    border-radius: 0.313rem; /* 5px */
    white-space: nowrap;
}

.archived-wars {
    margin-top: 1.25rem; /* 20px */
}

.archived-wars h2 {
    color: #888;
}

.toast {
    visibility: hidden;
    min-width: 15.625rem; /* 250px */
    max-width: 80%;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 0.125rem; /* 2px */
    padding: 1rem; /* 16px */
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 1.875rem; /* 30px */
    transform: translateX(-50%);
    font-size: 1.063rem; /* 17px */
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 9.5s;
}

.image-container {
    display: flex;
    justify-content: space-between; /* Aligne les éléments aux extrémités du conteneur */
}

.img-left {
    /* Styles supplémentaires pour l'image de gauche si nécessaire */
}

.img-right {
    /* Styles supplémentaires pour l'image de droite si nécessaire */
}


#closeToast {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 0.625rem 1.25rem; /* 10px 20px */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem; /* 16px */
    margin: 0.25rem 0.125rem; /* 4px 2px */
    cursor: pointer;
}

#warList, #archivedWarList {
    padding-left: 0; /* 0px */
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 1.875rem; opacity: 1;} /* 30px */
}

@keyframes fadeout {
    from {bottom: 1.875rem; opacity: 1;} /* 30px */
    to {bottom: 0; opacity: 0;}
}






