
/* ------ MOBILE FIRST ----------- */
:root {
    --main-color: grey;
    --light-shadow: 175, 175, 175;
    --dark-shadow: 102, 102, 102;
    --wrapper-light-shadow: 163, 163, 163;
    --wrapper-dark-shadow: 87, 87, 87;
    --dark-main-color: darkgrey;
    --button: deeppink;
    --stat: #5cd2d9;
    --button-hover: deeppink;
    --see-soon: #d99d5c;
    --see-very-soon: #d95e5c;
    --bar-color: #232323;
    --main-dark-grey: #343a40;
    --medium-grey: #4e4e4e;
    --background-color: #676666;
    --light-grey: #afafaf;
}

body {
    background: var(--main-color);
    color: white;
    width: 100%;
    place-items: center;
    font-size: 1.1em;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0px 0px 20px 0px;
}

#content {
    width: 100%;
    text-align: center;
    margin: auto;
}

/* --- Menu btn active --- */
input#btnMenu.active, input#waitList.active, input#statList.active {
    background-color: transparent;
    border: none;
    color: var(--button);
}

input#btnMenu.active:hover, input#waitList.active:hover, input#statList.active:hover {
    background-color: transparent;
    cursor: default;
}

/* --- State choice btn --- */
#secondChoice, #thirdChoice {
    position: fixed;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}
#stateChoice, #thirdChoice { width: 100%; margin: auto; }

#stateChoice input { width: 60%; color: white; }
#stateChoice button { width: 60%; color: white; margin-bottom: 15px; }
#thirdChoice button { margin-bottom: 15px; }
#stateChoice button:hover { color: var(--button); background-color: white; }
#stateChoice img, #thirdChoice img {
    height: 25px;
    margin-right: 10px;
    vertical-align: middle;
}

ul#btnStateChoice { margin: 0px; padding: 0px; }
#btnStateChoice button { min-width: 45%; margin: 6px; }

ul#btnSecondChoice { margin: 0px; padding: 0px; }
#btnSecondChoice button {
    min-width: 45%;
    margin: 6px;
    border-radius: 10px;
}

.choice {
    color: white;
    padding: 10px;
    font-size: 22px;
    background-color: var(--button);
}

input.choice:hover {
    background-color: white;
    color: var(--button);
    cursor: pointer;
}

.choice button:hover, button.choice:hover {
    background-color: white;
    color: var(--button);
    cursor: pointer;
}

/* FORM */
.formBlock {
    border: solid 1px white;
    border-radius: 4px;
    padding: 5px;
}

.formBlock h1 {
    font-size: 18px;
    margin-top: 0px;
}

/* --- MEDIA CHOICE --- */
#mediaChoice {
    width: 100%;
}

/* --- BAR --- */
#bar {
    width: 100%;
    display: inline-block;
}

#logoutBtn {
    float: right;
}

#megaHome {
    float: left;
}

#megaHomeBtn {
    color: white;
    background-color: transparent;
    border: 0px solid black;
}

/* --- List artwork --- */
#artworksList {
    list-style: none;
    text-align: left;
}

#artworksList button {
    margin-left: 10px;
}

#artworksList li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

#artworksList p {
    margin: 0px;
}

/* --- Add creator --- */
#addedCreators {
    list-style: none;
    padding: 0px;
}

.creatorToAdd, .countryToAdd, .genreToAdd, .franchiseToAdd, .tagToAdd, .serieToAdd, .featureToAdd {
    border: 2px solid black;
    background-color: gray;
    border-radius: 5px;
    width: fit-content;
    margin-bottom: 5px;
    padding: 2px;
}

#removeCreaBtn {
    border-color: white;
    border-radius: 10px;
    margin-left: 4px;
}

ul#previousCrea {
    margin: 0px;
    padding: 0px;
}

ul#previousCrea li {
    background-color: darkgray;
    border-radius: 6px;
    padding: 6px;
    margin-top: 4px;
}

ul#previousCrea li:hover {
    background-color: gray;
    cursor: pointer;
}

#newMedia ul#possibleArtworks,#newMedia ul#possibleMovies, #newMedia ul#possibleTomes, #newMedia ul#possibleSagas, #newMedia ul#possibleCreators {
    display: none;
}

#newMedia ul, #newMedia p, #updateMedia ul {
    margin: 0px;
    list-style: none;
    flex-wrap: wrap;
}

/*    --------------------- SAGA ------------------------------  */

.hidden, #collection-container {
    display: none;
}
.form-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Container pour les boutons */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Masquer les boutons radio natifs */
.button-group input[type="radio"] {
    display: none;
}

/* Styles des "boutons poussoir" */
.button-group label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #cdcdcd;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

/* État non sélectionné (par défaut) */
.button-group label:hover {
    background-color: #ddd;
}

/* État sélectionné */
.button-group input[type="radio"]:checked + label {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    transform: translateY(2px);
}

#enterNewShow, #enterNewMag, #possibleArtworks, #possibleTv, #possibleMag, #possibleMovies, #possibleTomes, #possibleSagas, #possibleFranchises, #possibleCreators {
    display: none;
}

#addSagaFranchise {
    display: none;
    margin-top: 30px;
    margin-bottom: 20px;
}

#addFranchise {
    display: none;
    margin-top: 30px;
    margin-bottom: 20px;
}

#addSagaFranchise h2, #addFranchise h2 {
    font-size: 1em;
}

p#neoSaga {
    font-size: 0.8em;
    text-align: center;
    display: block;
}

form li {
    /*margin-right: 10px;*/
    padding: 5px;
}

/* Media auto list */
#possibleFranchises, #possibleSagas, #possibleArtworks, #possibleMovies, #possibleTv, #possibleMag, #possibleBooks,
#possibleVgs, #possibleVrs, #possibleComic, #possibleTomes, #possibleShows, #possibleSpectacles, #possibleCreators {
    background-color: #afafaf;
    padding-bottom: 12px;
}

#possibleSagas li:nth-child(even), #possibleArtworks li:nth-child(even), #possibleMovies li:nth-child(even), #possibleTv li:nth-child(even), #possibleMag li:nth-child(even),
#possibleBooks li:nth-child(even), #possibleVgs li:nth-child(even), #possibleVrs li:nth-child(even),
#possibleComic li:nth-child(even), #possibleSpectacles li:nth-child(even), #possibleFranchises li:nth-child(even),
#possibleCreators li:nth-child(even), #possibleTomes li:nth-child(even) {
    background-color: pink;
}

#possibleSagas li:hover, #possibleArtworks li:hover, #possibleMovies li:hover, #possibleTv li:hover, #possibleMag li:hover, #possibleBooks li:hover,
#possibleVgs li:hover, #possibleVrs li:hover, #possibleComic li:hover, #possibleSpectacles li:hover, #possibleFranchises li:hover,
#possibleCreators li:hover, #possibleTomes li:hover {
    text-decoration: underline;
    cursor: pointer;
}

input#neoMovie, input#neoTv, input#magName, input#neoBook, input#neoVg, input#neoVr, input#neoComic, input#neoSpectacle  {
    position: relative;
}

#res {
    position: absolute;
}

#seasonsViewed, #sagaList, #franchiseList, #artypeList, #addNeoCreator {
    display: none;
}

ul#seasonsViewedList, ul#magIssuesViewedList {
    display: flex;
}

#sagaList label, #franchiseList label, #artypeList label {
    font-weight: bold;
}

#newMedia #sagaList #existingSagaList, #newMedia #franchiseList #existingFranchiseList, #newMedia #artypeList #existingArtypeList  {
    display: block;
}

#newMedia #sagaList, #newMedia #franchiseList, #newMedia #artypeList {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.9em;
}

/*  ------ CRITIQUEMAN ---------- */
.critiquemanCalendar table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    margin-top: 40px;
    border-radius: 20px;
}

.critiquemanCalendar table th {
    width: 100px; /* Largeur fixe pour toutes les cellules */
    text-align: center; /* Centrer le texte horizontalement */
    vertical-align: middle; /* Centrer le texte verticalement */
    border: 1px solid black; /* Bordure pour visualiser les cases */
}

.critiquemanCalendar table td {
    width: 100px; /* Largeur fixe pour toutes les cellules */
    height: 100px; /* Hauteur fixe pour toutes les cellules */
    text-align: center; /* Centrer le texte horizontalement */
    vertical-align: top; /* Centrer le texte verticalement */
    border: 1px solid black; /* Bordure pour visualiser les cases */
}

.critiquemanCalendar .day-number {
    font-weight: bold;
    margin-bottom: 5px; /* Ajouter un espace entre le numéro et les titres */
}

.critiquemanCalendar .titles {
    font-size: 14px; /* Taille réduite pour les titres */
    text-align: left;
}

/* --- Artwork detail --- */
#artworkDetail p {
    margin: 0px;
    margin-bottom: 8px;
}

/*#grade {*/
/*    font-size: 0.6em;*/
/*    margin: 10px;*/
/*}*/

#mediaTitle {
    font-size: 1.3em;
    font-weight: bold;
    margin-right: 10px;
}

.artFeat {
    font-size: 0.6em;
    font-style: italic;
    margin-right:6px;
}

.review {
    text-align: left;
    margin-left: 40px;
    border: 1px solid;
    padding: 3px;
    border-radius: 8px;
    margin-bottom: -1px;
}

/* --- Artwork sum up --- */
#artworkSumUp p {
    margin: 0px;
}

.sumUpViews div {
    text-align: left;
}

.oneView {
    margin-bottom: 10px;
}

/* SEASON FORM */
#proposeNewSeason, #proposeNewIssue {
    display: none;
    padding: 12px 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* BOUTONS POUSSOIRS */

.pushButton {
    box-shadow: 2px 2px 4px 1px #343a40;
    margin-left: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: darkgrey;
    padding: 8px;
    color: darkblue;
    font-size: 16px;
    font-weight: bold;
}

.pushButton.active {
    box-shadow: inset 2px 2px 3px 1px #343a40;
    margin-left: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color:white;
}

details {
    margin: 10px;
    border: solid 1px;
    border-radius: 6px;
    padding: 10px;
}

details summary {
    margin-top: -8px;
}

/*____________UPDATE__________*/
button.updateBtn {
    background: transparent url('../img/update.png') no-repeat center center;
    border: none;
    color: transparent;
    height: 40px;
    width: 40px;
    margin: 0px 0px 0px 10px;
}

button.updateBtn:hover {
    background: transparent url('../img/back.png') no-repeat center center;
    background-size: 40px;
    filter: blur(2px);
    cursor: pointer;
}

.updateButton { display: inline; }

/*_____________STATS_____________*/
#tableStat, #tableMovies {
    margin: 0px auto;
    border-collapse: collapse;
    font-size: 0.8em;
    table-layout: fixed;
    width: 100%;
}

#tableStat tr, th, #tableMovies tr, th {
    border: 1px var(--stat) solid;
    border-left: 1px solid var(--stat);
    border-right: 1px solid var(--stat);
    border-collapse: collapse;
}

#theadStat, #theadMovies {
    background-color: var(--stat);
    color: var(--main-color);
}

.tableTotal {
    background-color: var(--stat);
    color: var(--main-color);
}

#tableStat tr.yearChange th, #tableStat tr.yearChange td {
    border-top: 3px #ffffff solid !important;
}

#tableStat tr:first-child th,
#tableStat tr:first-child td {
    border-top: none !important;
}

/* ___________ SAVE __________________*/
#saveJattends {
    color: black;
}

#saveJattends #content {
    width: 100%;
}

/* ------------- CSS TABLET --------------- */
@media (max-width: 360px) {

    body {
        background-color: rgb(95, 236, 170);
    }

    #content {
        width: 100%;
        font-size: 0.7em;
    }
}

/* -----  Mon tel ------*/
@media (min-width: 361px) and (max-width: 490px) {
    body {
        background-color: rgb(48, 206, 95);
    }

    #content {
        font-size: 0.8em;
    }

    #artworksList {
        padding-inline-start: 4px;
    }

    #artworksList li div {
        align-content: center;
    }

    #btnSecondChoice {
        padding-inline-start: 4px;
    }
}

@media (min-width: 491px) and (max-width: 667px) {
    body {
        background-color: rgb(29, 240, 21);
    }

    #btnStateChoice button { min-width: 40%; margin: 8px; }
    #btnSecondChoice button { min-width: 40%; margin: 8px; }
}

/* ---- CSS TABLET OU MOBILE HORIZONTAL ----- */
@media (min-width: 668px) and (max-width: 849px) {

    body {
        background-color: orangered;
    }

    #content { width: 80%; }

    .choice { padding: 20px; }
}

/* ---- CSS DESKTOP ---- */
@media (min-width: 850px) {

    body {
        background-color: blueviolet;
    }

    #content {
        width: 60%;
    }

    .choice {
        padding: 30px;
    }
}

/* ---- CSS DESKTOP BIG ---- */
@media (min-width: 950px) {
    body {
        background-color: rgb(211, 0, 88);
    }

    #btnStateChoice button { min-width: 30%; margin: 8px; }
    #stateChoice { width: 80% }
    #btnSecondChoice button { min-width: 15%; margin: 8px; }
}

/* ---- CSS DESKTOP VERY BIG ---- */
@media (min-width: 1200px) {
    body {
        background-color: #7b560c;
    }

    #stateChoice, #thirdChoice {
        width: 60%
    }
}
