/* General */
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    color: white;
    text-align: center;

    color: white;
    margin: 0;
    height: 100vh;
    background-image: url('img/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

h2, h3 {
    color: white;
    text-shadow: 0px 0px 5px #00ff88;
    margin-bottom: 10px;
}

/* Pantallas */
#Screen_Loading, 
#Screen_Title, 
#Screen_InGame, 
#Screen_Result {
    display: none;
    padding: 20px;
}

#Screen_Loading.active, 
#Screen_Title.active, 
#Screen_InGame.active, 
#Screen_Result.active {
    display: block;
}

button {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    padding: 10px 20px;
    margin: 10px;
    background-color: rgba(0, 0, 0, 0.726);
    color: white;
    border: 3px solid white;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}

button:hover {
    background-color: white;
    color: black;
}

/* Contenedor general */
#Title_Menu {
    text-align: center;
    margin-top: 20px;
}

/* Bloque de botones en fila */
#Title_Button {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Caja de opciones / respuestas */
#Game_Option, 
#Game_Manual, 
#Game_Answer, 
#Result_List, 
#Config_Menu,
#Ranked_Menu {
    border: 2px solid white;
    padding: 15px;
    margin: 20px auto;
    width: 70%;
    background-color: rgba(0, 0, 0, 0.6);
}

#GameOption_List {
    display: flex;
}

/* Contenedor de sugerencias */

/* Los items de sugerencia */
.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Hover del item */
.suggestion-item:hover {
    background-color: rgba(255,255,255,0.2);
    color: black;
}

#Game_Manual input[type="text"] {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Input manual */
input[type="text"] {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid white;
    padding: 8px;
    width: 80%;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

/* Secciones divididas */
#Answer_Info, 
#Result_List {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
}

#Answer_Info {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#Result_List {
    display: grid;
}

#Result_Score {
    text-shadow: 0px 0px 8px #6affa8;
}

/* Estilo para textos importantes */
#Game_Question, 
#Game_Time {
    font-size: 22px;
    text-shadow: 0px 0px 8px #00ffcc;
}

/* Iframe del video */
#Game_Video {
    margin-top: 20px;
    border: 2px solid white;
    padding: 10px;
    background: rgba(0,0,0,0.7);
    display: inline-block;
}

#Video_Name {
    font-size: 2vw;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; 
    padding: 10px;
    box-sizing: border-box;
    text-shadow: 0px 0px 5px #00ff88;
}

#Video_Open {
    display: block;
    margin: 1px auto;
}

/* Configuraciones */
#Config_Menu label {
    display: block;
    margin-top: 15px;
    font-size: 16px;
    text-align: left;
    width: 100%;
    color: #ffffff;
    text-shadow: 0 0 3px #00ff88;
}

#Config_Menu input[type="number"],
#Config_Menu input[type="range"],
#Config_Menu input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    background-color: black;
    color: white;
    border: 2px solid white;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    box-sizing: border-box;
}

#Config_Menu input[type="range"] {
    cursor: pointer;
}

#Config_Menu p {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #00ffcc;
    font-size: 14px;
    text-shadow: 0 0 2px #00ff88;
}

#Config_Menu button {
    display: block;
    width: 60%;
    margin-top: 15px;
}

#Config_Menu h3 {
    margin-bottom: 20px;
    font-size: 20px;
    text-shadow: 0 0 6px #00ff88;
}

#infiniteRoundsBtn, #musicNameBtn, #btnLoadExcel, #showVideoBtn {
    width: 70%;
    max-width: 250px;
    margin: 15px auto 5px auto; /* top right bottom left */
    display: block;
    font-size: 16px;
    padding: 8px 16px;
}

/* Estilo de la configuración de sonido y música (arriba) */
#Sound_Setting {
    margin: 20px auto;
    width: 80%;
    text-align: center;
}

#Sound_Setting button {
    font-size: 15px;
}

#Sound_Setting input[type="range"] {
    width: 30%;
    padding: 3px;
    margin: 10px auto;
    background-color: black;
    color: white;
    border: 2px solid white;
    box-sizing: border-box;
    display: block;
}

/* Reportes */
#Report_Box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 99999;
    text-align: left;
}

#btnReport {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    padding: 8px 14px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 3px solid white;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
}

#btnReport:hover {
    background-color: white;
    color: black;
}

/* Menú desplegable */
#Report_Menu {
    margin-top: 10px;
    width: 220px;
    padding: 12px;
    border: 3px solid white;
    background-color: rgba(0, 0, 0, 0.75);

    text-align: left;
    box-shadow: 0px 0px 10px #00ff88;
}

#Report_Menu h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    text-shadow: 0px 0px 5px #00ff88;
}

#Report_Reason {
    width: 100%;
    padding: 6px;
    background-color: black;
    color: white;
    border: 2px solid white;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

#Report_AddFangame {
    width: 91%;
    font-size: 14px;
}

#Report_Send {
    margin-top: 10px;
    width: 90%;
    font-size: 16px;
    padding: 8px;
    border: 3px solid white;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

#Report_Send:hover {
    background-color: white;
    color: black;
}

.Report_Hidden {
    display: none;
}

/* Ranked Mode */

#Ranked_Menu p,
.Ranked_Label {
    color: #00ffcc;
    font-size: 16px;
    text-shadow: 0 0 4px #00ff88;
    margin: 10px 0 5px 0;
}

/* Input del nombre */
#Ranked_PlayerName {
    width: 60%;
    margin: 5px auto 15px auto;
    display: block;
}

/* Select del modo */
#Ranked_LeaderboardMode {
    width: 50%;
    padding: 8px;
    background-color: black;
    color: white;
    border: 2px solid white;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Tabla del leaderboard */
#Ranked_LeaderboardTable {
    width: 80%;
    margin: 10px auto 20px auto;
    border-collapse: collapse;
    background: rgba(0,0,0,0.5);
    border: 2px solid white;
}

#Ranked_LeaderboardTable th {
    padding: 10px;
    background: rgba(0,255,170,0.2);
    border-bottom: 2px solid white;
    text-shadow: 0 0 4px #00ff88;
}

#Ranked_LeaderboardTable td {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Countdown */
#Ranked_Countdown {
    margin-top: 15px;
    font-size: 16px;
    color: #00ffcc;
    text-shadow: 0 0 4px #00ff88;
}

#Ranked_Time {
    font-weight: bold;
    color: #6affa8;
    text-shadow: 0 0 6px #00ffcc;
}

/* Fondo de partículas */
#tsparticles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -10;
}