/* Color Cheat Sheet
Red: #e40500; */

/* ---------- Global ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

:root {
    --cursor: url(../icon/MP44cursorupflip.png) 12 30, auto;
    --pointer: url(../icon/MP44pointerupflip.png) 12 30, pointer;
    --help: url(../icon/SennaHelmetHelp1.png) 16 16, help;
    --text: url(../icon/SennaHelmetText1.png) 16 16, text;
}

@font-face { /* ":" exception */
    font-family: Formula1;
    src: local("Arial");
    unicode-range: U+003A;
}

@font-face { /* ":" exception */
    font-family: Formula1_Bold;
    src: local("Arial");
    unicode-range: U+003A;
}

@font-face {
    font-family: Formula1;
    src: url(../fonts/Formula1-Regular1.ttf);
}

@font-face {
    font-family: Formula1_Bold;
    src: url(../fonts/Formula1-Bold_web.ttf);
}

html, body {
    height: 100vh;
    width: 100vw;
    
    font-family: "Formula1", Arial;
    color: #fff;
    text-align: center;

    overflow: hidden;
    
    cursor: var(--cursor);
}

/* ---------- Screen Wrapper ---------- */
.screen_wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}


/*Cascading Media Queries with Min Width

/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
/* -------------------- Mobile Small (<700px width) -------------------- */
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */

/* -------------------------------------------------- */
/* -------------------- Game Page --------------------*/
/* ---------------------------------------------------*/

/* ---------- Main Game Container ---------- */
.container {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    
    height: 100%;

    margin: auto auto;
    padding: 0rem;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    
    background:
    linear-gradient(#15151d,#15151d) padding-box,
    repeating-linear-gradient(180deg, #e40500 0px 50px, #fff 25px 100px) top right/30px 100% no-repeat border-box,
    repeating-linear-gradient(180deg, #e40500 0px 50px, #fff 25px 100px) top left/30px 100% no-repeat border-box;
}
/* ---------- Title and Subtitle ---------- */
.title_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.title {
    color: #e40500;
    font-family: "Formula1_Bold";
    font-size: clamp(1.7rem, 9vw, 2.2rem);
}

.subtitle {
    color: #fff;
    font-family: "Formula1_Bold";
    font-size: clamp(0.7rem, 4vw, 1.2rem);
    white-space: nowrap;
}

.title_link {
    text-decoration: none;
    color: inherit;
}

/* ---------- Side Images ---------- */
.lights {
  display: none;
}

/* ---------- Header icons ---------- */
.header_left {
    display: none;
    position: absolute;
    
    top: 4rem;
    left: 0.5rem;
}

.header_right {
    display: flex;
    flex-direction: column;
    position: absolute;
    
    top: 0.2rem;
    right: 0.2rem;
    gap: 0.2rem;
}

.header_button {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 20px;
    height: auto;
    
    color: #fff;
    border: none;
    background: transparent;
}

#tutorial_button svg{
    width: 20px;
    height: 20px;
    
    fill: currentColor;
}

/* ---------- Input Container and Form ---------- */
#game {
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: column;
    
    width: 100%;
    min-height: 0;
}
 
.input_info {
    display: flex;
    align-items: center;
    justify-content: center;  
    align-content: center;
    
    gap: 0.3rem;
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}

.input_wrapper {
    display: flex;
    position: relative;
    align-items: center;
    
    gap: 0.3rem;
}

.until_hint, .turns_left {  
    font-size: 0.5rem;
    white-space: pre;
}

#driver_input {
    display: flex;
    width: 100%;
    padding: 0.2rem;
    
    font-family: 'Formula1';
    font-size: 0.6rem;
    color: #fff;
    text-transform: capitalize;
    
    border: 1px solid #e40500;
    border-radius: 5px;
    background: linear-gradient(to bottom, #1f1f28, #2d2e33);
    box-shadow: 0 0 15px rgba(224,5,0,0.6), inset 0 0 8px rgba(255,0,0,0.2);
       
    transition: all 0.3s;
}

#driver_input:focus {
    outline: none;
    border-color: #ff1c00;
    box-shadow: 0 0 20px rgba(224,5,0,0.8), inset 0 0 10px rgba(255,0,0,0.2);
    transform: scale(1.02);
}

.options { /* Dropdown Options */
    position: absolute;
    justify-content: center;
    top: 100%;
    
    max-height: 15vh;
    width: 75%;
    
    overflow-x: hidden;
    overflow-y: auto;
    
    background-color: #2d2e33;
    text-transform: capitalize;
    
    scrollbar-width: thin;
    scrollbar-color: #e40500 #1f1f28;   
    
    z-index: 3;
}

.options div {
    text-align: left;
        
    font-size: 0.6rem;
    
    padding: 0.5rem;    
    border-bottom: 1px solid  #e40500;
    
    transition: background-color 0.5s;
    
    z-index: 3;
}

.options div:active {
    background-color: #e40500;
    color: #fff;
}

/* ---------- Buttons ---------- */
.red_button {
    height: 100%;
    
    padding: 0.2rem;
    
    font-family: "Formula1_Bold";
    font-size: clamp(0.5rem, 2vw, 0.6rem);
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;

    border: 1px solid #fff;
    border-radius: 6px;
    background: linear-gradient(to bottom, #e40500 0%, #b20000 100%);    
}

#restart_button {
    width: 100px;
}

/* ---------- Grid, Cells ---------- */
.grid {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    align-self: center;
    
    width: calc(100% - 0.5rem);
    min-height: 0;
    
    overflow-x: scroll;
    overflow-y: auto;
    
    margin: 0.5rem;
    gap: 0.1rem;
    box-sizing: border-box;
    
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #e40500 #1f1f28;
}

#gridStat {
    grid-template-columns: repeat(8, auto);
    grid-auto-columns: max-content;
    grid-auto-flow: row;
}

#gridUnlimitedStat {
    grid-template-columns: repeat(8, auto);
    grid-auto-columns: max-content;
    grid-auto-flow: row;
}

.rheader,.row {
    display: contents;
}

.cell {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    
    min-width: 10px;
    min-height: 30px;
    
    padding: 0.2rem;
    
    text-align: center;
    text-transform: capitalize;
    font-size: clamp(0.4rem, 2.5vw, 0.54rem);
    
    border: 1px solid #fff;
    border-radius: 6px;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.4); 
    
}

#cell_points {
    position: relative;
    z-index: 2;
}

.cell.driver_cell {
    min-width: 35px
}

.cell.wrong {
    border: 1px solid #b7151d;
    background: linear-gradient(to bottom, #b7151d 0%, #7a0f12 100%);
    
}
.cell.match {
    border: 1px solid #00c21c;
    background: linear-gradient(to bottom, #00c21c 0%, #008a10 100%);
}

.cell .value {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}
.cell svg {
    position: absolute;
    
    right: 1px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 10px;
    height: auto;
    
    stroke-width: 2px;
    opacity: 0.8;
}
.direction_icon {
    flex-shrink: 0;
}

/* ---------- New row/column animation ---------- */
.cell {
    transition:
    border-color 0.35s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25 ease;
}

.row.new .cell {
    animation: popin 0.4s ease forwards;
}

@keyframes popin {
    0% { opacity: 0; transform: scale(0.8); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ---------- Tooltip ---------- */
.tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;

    top: 1px;
    right: 1px;

    width: 10px;
    height: 10px;
    color: #e40500;
    font-size: 10px;
}

.tooltip_text {
    position: absolute;
    text-align: center;

    top: 50%;
    left: 100%;

    min-width: 100px;

    padding: 0.5rem;

    background: #15151d;
    border: 1px solid #fff;
    border-radius: 5px;

    color: #fff;
    text-transform: none;
    font-size: 0.5rem;

    visibility: hidden; 
    opacity: 0;
    transition: opacity 0.3s;

    z-index: 3;
}

.tooltip:hover .tooltip_text,
.tooltip:active .tooltip_text,
.tooltip.active .tooltip_text{
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s;
    }

/* ---------- Driver Preview ---------- */
.driver_preview {
    position: fixed;
    transform: translate(-50%);

    z-index: 300;
}

.driver_preview img {
    width: 150px;
    height: 150px;

    object-fit: cover;

    background: #15151d;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(224, 5, 0, 0.6);
}

/* ---------- Hint and Message ---------- */
.hint_button {
    display: flex;
    max-height: 20px;
    
    white-space: nowrap
}

.hint, .message {    
    display: flex;
    height: 20px;

    padding: 0.2rem;
    
    font-family: "Formula1_Bold", Arial;
    font-size: 0.5rem;
    text-transform: uppercase;
    
    background: linear-gradient(to bottom, #2d2e33, #1f1f28);
    border: 1px solid #e40500;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(224, 5, 0, 0.4);
    white-space: nowrap
}

/* ---------- Winning Screen, Stats and Tutorial ---------- */
.popup_panel {
    position: fixed;
    justify-content: center;
    align-items: center;
    inset: 0;
    
    height: 100%;
    width: fit-content;
    max-width: 500px;

    margin: auto;
    padding: 0.8rem 0.7rem;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    background: linear-gradient(135deg, #15151d 40%, #2d2e33 40%, #2d2e33 60%, #15151d 60%) padding-box,
    repeating-linear-gradient(180deg, #e40500 0px 50px, #fff 25px 100px) top right/30px 100% no-repeat border-box,
    repeating-linear-gradient(180deg, #e40500 0px 50px, #fff 25px 100px) top left/30px 100% no-repeat border-box;
    
    color: #fff;
    font-family: "Formula1_Bold";
    font-size: 0.8rem;
    text-align: center;
    
    overflow-y: auto;
    
    z-index: 4;
    
    animation: fadeIn 0.5s ease-in-out; 
}

.win_title {
    font-size: clamp(1rem, 8vw, 1.2rem);
    color: #fff;
}

.close_button {
    position: absolute;
    top: 0;
    right: 0;
    
    padding: 0.25rem 0.6rem;
    border: none;
    background: transparent;
    
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- Winning Screen specifics ---------- */
.driver_name {
    color: #e40500;
    font-weight: bold;
    text-transform: capitalize;
}

#winning_screen img {
    width: min(190px, 40vh);
    
    margin: 1rem;
    border: 2px solid #fff;
    border-radius: 10px;
}

#driver_stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    
    gap: 0.4rem;
}

#driver_stats li {
    display: flex; 
    
    padding: 0.3rem 0.2rem;

    border: 2px solid #d4d4d4;
    border-radius: 5px;
    background-color: #e40500;
    
    font-weight: bold;
    text-align: right;
    text-transform: capitalize;  
}

#share_button {
    height: 35px;
    width: 120px;
    
    margin-top: 0.8rem;
    border: 2px solid white;
    border-radius: 6px;
    
    font-size: 0.8rem;
}

/* ---------- Tutorial Specifics ---------- */
#title_tutorial {
    padding: 0.4rem;
    border-bottom: 2px dashed white;
}

.tutorial_content {
    margin-top: 2rem;
    
    text-align: left;    
    font-family: "Formula1";
}

.tutorial_content p {
    margin-bottom: 0.4rem;
}

.tutorial_content strong:not(.strong_green) {
    color: #e40500;
}

.strong_green {
    color: #00c21c;
}

/* ---------- Stats Specifics ---------- */
#title_stats {
    padding: 0.6rem;
    border-bottom: 2px dashed white;
}

.stats_grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    
    padding: 0.5rem;
    gap: 0.5rem;
    margin: 1rem 0;
    
    text-align: top;
}

.stat_block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat_label {       
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.stat_value {
    font-size: 1rem;
    color: #e40500;
}

.guess_distribution {
    display: flex;
    flex-direction: column;
    
    gap: 0.4rem;
    
    text-align: left;
}

.dist_row {
    display: flex;
    align-items: center;
    
    gap: 0.3rem;
    font-family: "Formula1";
}

.dist_bar_track {
    flex: 1;
    height: 10px;
    
    border-radius: 6px;
    background: #1f1f28;
    
    overflow: hidden
}

.dist_bar_fill {
    height: 100%;
    
    background: linear-gradient(to right, #e40500, #ff1c00);
    transition: width 0.3s ease;
}

/* -------------------------------------------------- */
/* -------------------- Index Page --------------------*/
/* ---------------------------------------------------*/

/* ---------- Title Header ---------- */
.checkered_line {
    position: absolute;
    display: flex;
    height: 20px;
    width: 100%;
    background:
        repeating-conic-gradient(#111 0 25%, #fff 0 50%);
    background-size: 20px 20px;
    
    top: 70px;
    @media only screen and (min-width: 400px) {
    top: 80px;
    }
}

/* ---------- Menu and Buttons ---------- */
#menu {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    width: 100%;
    
    margin: 0.5rem auto;
    gap: 3rem;
}

.menu_list {
    display: grid;
    
    grid-template-columns: repeat(2, 1fr);    
}

#menu_list_daily, #menu_list_unlimited {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    gap: 10rem;
}

#menu_list_unlimited {
    transform: translateY(5rem);
}

.menu_button {
    display: block;
    position: relative;
    padding: 0.5rem;
    
    width: 85%;
    height: 35px;
    
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    border-top: 4px solid #fff;
    border-radius: 4px;


    color: #fff;
    font-family: "Formula1_Bold";
    text-transform: uppercase;
    text-decoration: none;
    text-align: center
}

.menu_button h3 {
    padding-top: 0.4rem;
    
    font-size: 0.8rem;
    text-align: start;
}

.menu_button p {
    padding-top: 0.4rem;
    
    font-size: 0.4rem;
    text-align: end;
    opacity: 0.8;
}

.menu_button:active {
    transform: scale(1.02);
}

.tag {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    
    top: 5px;
    right: 5px;
    
    color: #e40500;
    font-size: 0.45rem;

}

#MP44_Grid {
    display: none;
}
/* ------------------------------------------------------------------------- */










/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
/* -------------------- Mobile Landscape (700px> width) -------------------- */
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
@media only screen and (min-width: 700px) {
    
/* -------------------------------------------------- */
/* -------------------- Game Page --------------------*/
/* ---------------------------------------------------*/
  
/* ---------- Body Background ---------- */
body {
    background-image: url(../images/Checkered.png);
    background-repeat: repeat;
    
    animation: scrollingCheckered 10s linear infinite;
    }
    
@keyframes scrollingCheckered {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 128px 128px;
    }
}

/* ---------- Main Game Container ---------- */
.container {
    max-width: 800px;
    
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}
    
/* ---------- Title and Subtitle ---------- */
.title_header {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.title {
    font-size: clamp(1.7rem, 10vw, 2.6rem);
}

.subtitle {
    font-size: clamp(0.7rem, 4vw, 1.1rem);
}

/* ---------- Header icons ---------- */
.header_button {  
    width: 30px;
    cursor: var(--pointer);
}

#tutorial_button svg {
    width: 30px;
    height: 30px;
}

/* ---------- Input Container and Form ---------- */
.input_info {
    max-width: none;
    
    gap: 0.4rem;
}

.input_wrapper {
    gap: 0.4rem;
}

.until_hint, .turns_left {  
    font-size: 0.7rem;
}

#driver_input {
    padding: 0.5rem 0.8rem;
    
    font-size: 0.8rem;
}

.options div { /* Dropdown Options */ 
    font-size: 0.8rem;
}

/* ---------- Buttons ---------- */
button {
    cursor: var(--pointer);
}
   
.red_button {
    padding: 0.5rem;
    border: 2px solid #fff;
    border-radius: 10px;
    
    font-size: 0.8rem; 
}

/* ---------- Grid, Cells ---------- */
.grid {
    min-width: fit-content;
    max-width: fit-content;
    
    overflow-x: auto;
    overflow-y: scroll;
}

#gridStat {
    grid-template-columns: repeat(8, auto);
    grid-auto-columns: max-content;
    grid-auto-flow: row;
}

#gridUnlimitedStat {
    grid-template-columns: repeat(8, auto);
    grid-auto-columns: max-content;
    grid-auto-flow: row;
}

.cell {
    min-width: 60px;
    
    padding: 0.6rem 0.7rem;
    border: 2px solid #fff;
    border-radius: 10px;

    font-size: 0.7rem;
}

.cell.wrong {
    border: 2px solid #b7151d;        
}
    
.cell.match {
     border: 2px solid #00c21c;      
}    
    
.cell svg {
    width: 15px;
}

/* ---------- Tooltip ---------- */
.tooltip {
    top: -5px;
    right: -5px;

    width: 20px;
    height: 20px;
    font-size: 10px;
}

.tooltip_text {
    font-size: 0.5rem;
}

/* ---------- Hint and Message ---------- */
.hint_button {
    display: flex;
    max-height: 100%;
    
    white-space: nowrap;
        
    cursor: var(--pointer);
}

.hint, .message {    
    height: 100%;
    max-height: 30px;

    padding: 0.4rem;
    border: 2px solid #e40500;
    border-radius: 10px;
    
    font-size: 0.6rem;
}

/* ---------- Winning Screen, Stats and Tutorial ---------- */
.popup_panel {
    min-width: 0;
    width: fit-content;
    max-width: min(600px, 80vw);
    
    margin-top: -0.5rem;
    padding: 0.8rem 1.2rem;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    
    font-size: 0.8rem;
}

.close_button {
    font-size: 1.5rem;
    
    cursor: var(--pointer);
}

/* ---------- Winning Screen specifics ---------- */
.win_title {
    padding: 0.4rem;
    
    font-size: clamp(1.4rem, 10vw, 1.6rem);
}

#winning_screen img {
    width: min(190px, 40vh);
}

#driver_stats {
    display: grid;
    justify-content: center;
    align-items: center;

    grid-template-columns: repeat(2, 1fr);
    
    gap: 0.4rem;
}

#driver_stats li {
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
}   
    
#share_button {
    padding: 0.4rem;
    margin-top: 0.8rem;
    border-radius: 10px;
    
    cursor: var(--pointer);
}

/* ---------- Tutorial Specifics ---------- */
#title_tutorial {
    margin-top: -0.4rem;
    
    font-size: 2rem;
}
    
.tutorial_content {
    margin-top: 1rem;
}

.tutorial_content p {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

/* ---------- Stats Specifics ---------- */
.stats_grid {
    gap: 1rem;
}

.stat_label {    
    font-size: 1rem;
}

.stat_value {
    font-size: 1.2rem;
}

.guess_distribution {
    gap: 0.8rem;
}

.dist_bar_track {
    height: 15px;
}
      
/* -------------------------------------------------- */
/* -------------------- Index Page --------------------*/
/* ---------------------------------------------------*/

/* ---------- Index Container ---------- */
#index_container {
    max-width: 600px;
    
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #e40500 #1f1f28;    
    
}
        
/* ---------- Title Header ---------- */  
#index_title {
    font-size: clamp(2.8rem, 8vw, 3rem)        
}
    
 #index_subtitle {
     font-size: clamp(1.6rem, 2vw, 1.8rem);  
}
    
.checkered_line {
    top: 125px;
    
    height: 30px;
    
    background:
        repeating-conic-gradient(#111 0 25%, #fff 0 50%);
    background-size: 30px 30px;
}

/* ---------- Menu and Buttons ---------- */    
#menu {
    gap: 4rem;
}    
    
#menu_list_daily, #menu_list_unlimited {
    gap: 12rem;
}

#menu_list_unlimited {
    transform: translateY(6rem);
}    

.menu_button {
    cursor:var(--pointer);    
}    
.menu_button h3 {
    font-size: 1rem;
}
    
.menu_button p {   
    font-size: 0.6rem;
}
    
.tag {
    font-size: 0.5rem;        
}    
}
/* ------------------------------------------------------------------------- */










/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
/* -------------------- Desktops (1200px> width) -------------------- */
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
@media only screen and (min-width: 1200px) { 
    
/* -------------------------------------------------- */
/* -------------------- Game Page --------------------*/
/* ---------------------------------------------------*/
    
/* ---------- Main Game Container ---------- */
.container {
    max-width: min(1100px, 85%);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
}
    
/* ---------- Title and Subtitle ---------- */
.title {
    font-size: clamp(3.2rem, 5vw, 4.5rem);
}   

.subtitle {
    font-size: clamp(1.7rem, 2.1vw, 2.2rem);
}
    
.title_link {
    cursor: var(--pointer);
}

/* ---------- Side images decorations ---------- */
#game_lights {
    display: block;
    position: absolute;
    
    bottom: 5%;
    left: -2%;
    
    width: 24%;
    
    z-index: 1;
}

/* ---------- Header icons ---------- */    
.header_right {
    flex-direction: row;
    
    top: 1rem;
    right: 1rem;
    gap: 0.5rem
}

.header_button {
    width: 44px;
    height: 44px;
}    

.header_button:hover {
    color: #e40500;
    transform: scale(1.08);
}

#tutorial_button svg {
    height: 40px;
    width: 40px;
}    
       
#back_button, #index_back_button {
    font-size: 40px;
    font-weight: 600;

    cursor: var(--pointer);
}

/* ---------- Input Container and Form ---------- */
.input_info {
    gap: 1rem;       
}

.until_hint, .turns_left {  
    font-size: 1rem;
}
    
#driver_input {
    width: 300px;
    
    padding: 0.7rem 1rem;
    border: 2px solid #e40500;
    border-radius: 10px;
    
    font-size: 1rem;
}

.options { /* Dropdown Options */
    max-height: 150px;
    width: 300px;
}    
    
.options div { 
    font-size: 1rem;
}
    
.options div:hover {
    background-color: #e40500;
    color: #fff;
    transform: scale(1.02);
}    
    
/* ---------- Buttons ---------- */ 
.red_button {    
    padding: 0.5rem 1.5rem;
    
    font-size: 1.1rem;
    
    transition: transform 0.2s, box-shadow 0.2s;
}
    
.red_button:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(224,5,0,0.8), inset 0 0 10px rgba(255,255,255,0.2);
    background: linear-gradient(to bottom, #ff1c00 0%, #b20000 100%);
}    

#restart_button {
    width: 200px;
    transition: transform 0.2s, box-shadow 0.2s;
}
    
#restart_button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(224,5,0,0.8);
}    

    
/* ---------- Grid, Cells ---------- */
.grid {
    margin: 1rem auto;
    padding: 0.3rem;
}   
    
.row:not(.rheader) .cell:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}
    
.cell {
    min-width: 5rem;
    min-height: 3rem;
    
    padding: 0.8rem 1.2rem;
    
    font-size: clamp(0.65rem, 2vw, 0.85rem);
    }

.cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(224,5,0,0.5);
}
    
.cell svg {
    width: 24px;
    right: 6px;
}
    
/* ---------- Tooltip ---------- */
.tooltip {
    width: 16px;
    height: auto;
    
    top: -5px;
    right: 1px;
    
    font-size: 20px;
    
    cursor: var(--help);  
}
    
.tooltip_text {
    width: 180px;
    
    border-radius: 10px;
    
    font-size: 0.75rem;
}
    
/* ---------- Driver Preview ---------- */
.driver_preview img {
    width: 200px;
    height: 200px;
}
    
/* ---------- Hint and Message ---------- */      
.hint, message {
    align-items: center;
    
    font-size: 0.8rem;
    padding: 1.3rem;
}
    
/* ---------- Winning Screen, Stats and Tutorial ---------- */
.popup_panel {
    max-width: min(650px, 80vw);
    height: 105%;
    
    padding: 1rem 1.4rem;
    border-left: 25px solid transparent;   
    border-right: 25px solid transparent;
}
    
.win_title {
    font-size: clamp(1.3rem, 3vw, 2rem);
}
    
.close_button {
    top: 0.75rem;
    right: 0.75;
    
    padding: 0.25rem 0.6rem;
    
    font-size: 2rem;
    
    transition: color 0.2s, transform 0.2s;
}    
    
.close_button:hover {
    color: #e40500;
    transform: scale(1.15);
} 
    
/* ---------- Winning Screen specifics ---------- */
#winning_screen img {
    width: min(220px, 40vh);    
}
    
#driver_stats {
    gap: 0.6rem;
}       
    
#share_button {
    width: 200px;
}
    
    
/* ---------- Tutorial Specifics ---------- */    
.tutorial_content p {
    font-size: 1.2rem;
}    

/* ---------- Stats Specifics ---------- */ 
.stats_grid {
    padding: 0.2rem 1.4rem;
}
    
.stat_label {
    font-size: 1.2rem;
}   
    
.stat_value {
    font-size: 2rem;        
}
    
.stat_block {
    min-width: 150px;
}

.guess_distribution {
    gap: 0.6rem;
}   
    
.dist_row {
    font-size: 1rem;
}
    
.dist_bar_track {
    height: 20px;
}

/* -------------------------------------------------- */
/* -------------------- Index Page --------------------*/
/* ---------------------------------------------------*/

/* ---------- Index Container ---------- */
#index_container {
    max-width: 780px;
}
     
#index_lights {
    display: block;
    position: absolute;
    
    bottom: 2px;
    left: 0;
    
    width: 26%;
    
    z-index: 1;
} @media screen and (min-width: 1600px) {
    #index_lights { width: 30%; bottom: 20px;}
}
    
    
/* ---------- Title Header ---------- */  
#index_title {
    font-size: clamp(3.3rem, 8vw, 3.9rem)        
}
    
 #index_subtitle {
     font-size: clamp(1.8rem, 2vw, 2.4rem);  
}
    
.checkered_line {
    top: 135px;
}

/* ---------- Menu and Buttons ---------- */    
#menu_list_daily, #menu_list_unlimited {
    gap: 12rem;
}

#menu_list_unlimited {
    transform: translateY(6rem);
}    

.menu_button {
    transition: transform 0.2s, color 0.2s, border-color 0.2s;   
}
    
.menu_button:hover, menu_button:hover .tag {
    border-color: #e40500;    
        
    color: #e40500;
        
    transform: scale(1.08);    
}
    
.menu_button h3 {
    font-size: 1.4rem;
}
    
.menu_button p {   
    font-size: 0.7rem;
}
    
.tag {
    font-size: 0.5rem;   
}
    
#MP44_Grid {
    display: block;
    position: fixed;
    justify-content: center;
    
    width: 200px;
        
    top: 150vh;
        
    transform: translate(-50%, 0%);
        
    transition:
        left 0.1s ease,
        top 1s ease;
    
    pointer-events: none;
}
   
}
/* ------------------------------------------------------------------------- */