body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}


::placeholder { /* Edge 12 -18 */
    color: rgb(231, 231, 231);
  }

.digitInput {
    font-size: 12vw;
    border: none;
    text-align: center;
    width: 12vw;
    /* border-bottom: 3px solid #000; */
    text-align: center; /* Center the digit horizontally */
    background-color: transparent;
    outline:none;
    caret-color: transparent;
    border-bottom: 10px solid rgb(20, 20, 20); 
}

.postdigit {
    color: rgb(214, 214, 214);
}

#digitCurrent {
    caret-color: transparent; /* Hide the default caret */
    position: relative;
}

.header {
    display: contents;
    flex-direction: column;
}


.livesContainer {
    position: fixed;
    top: 0;
    left: 0;
    margin: 5px;
    
}

.livesLabel {
    position: fixed;
    top: 20px;
    left: 0;
    margin: 5px;
    align-items: flex-end
}

#logo {
    position: fixed;
    top: 0px;
    margin: 5px;
    align-items: flex-end;
    width:150px;
}

.help-settings {
    position: fixed;
    top: 0px;
    right: 0;
    margin: 5px;
    align-items: flex-end
}

.help-settings button {
    border: 0;
    transition-duration: 0.4s;
}

.help-settings button:hover {
    color: white;
  }

#settings-icon {
    width: 3vw;
    height:3vw;
    min-width: 30px;
    min-height: 30px;
}

#help-icon {
    width: 3vw;
    height:3vw;
    min-width: 30px;
    min-height: 30px;
}

.livesLabel p{
    display: inline-block;
    text-align: center;
    font-size:20px;
}

#livesCount {
    font-size: 24px;
}

#goalLabel {
    font-size: 20px;
}

.livesContainer img {
    margin: 3px
}

.life-alive {
    filter: invert(12%) sepia(100%) saturate(7450%) hue-rotate(340deg) brightness(95%) contrast(119%);
}

.life-dead {
    filter: invert(75%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(91%);
}

/* .digitInput:focus {
    border-bottom: 2px solid #00f; 
} */

.game-area {
    margin-bottom:10vw;
    align-items: flex-end;
}

.digit {
    font-size: calc(16px + var(--digit-increment)); /* Adjust the base font size as needed */
    margin-right: 2px; /* Add spacing between digits */
    /* vertical-align: text-bottom; */
    line-height: 0;
    
}

.digit:not(.postdigit){
    color: rgb(199, 199, 199);
}


#result {
    font-size: 1.2em;
    margin-top: 20px;
}

#piDigits {
    font-size: 1.5em;
    margin-top: 10px;
}




/**/
/* #setting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 29, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2em;
    display: none;
} */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 29, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2em;
    display: none; 
}

.overlay-content {
    text-align: center;
}

.game-details h5{
    margin:0px;
    line-height: 100px;
}

.game_done_overlay_main_heading {
    font-size: 10vw;
    margin-bottom: 0px;
}

.game_done_message {
    font-size: 4vw;
    text-align: top;
    vertical-align: top;
    margin-top: 0px;
}

.overlay button {
    margin-top: 50px;
    padding: 1vw 0.5vw;
    font-size: 1.5vw;
    cursor: pointer;
}


.footer {
    /* background-color: #333; */
    display:flex;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    align-items: flex-end;
}

.footer-left {
    display: flex;
    align-items: center;
    margin: 0 auto;
    
}

.footer-right {
    display: flex;
    margin: 0 auto;
}

.footer a {
    color: #6a7791;
    font-family: "Arial";
    text-decoration: none;
    /* margin: 10px; */
    margin-left: 10px;
    margin-right: 10px;
}

.footer a:hover {
    text-decoration: underline;
}

.game_details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}
.result {
    display: flex;
    justify-content: space-between;
    width: 300px;
    margin: 10px 0;
}
.game-result-attribute {
    text-align: left;
    font-size: 1.5vw
}
.game-result-value {
    text-align: right;
    font-size: 1.5vw
}

/*  */

#game-restarted-snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
  }
  
  #game-restarted-snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }
  
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }







  @-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
  }
  
  @keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }
  
  @keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }