body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
/*    font-family: Arial, sans-serif;*/
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
/*    font-size: 15px;*/
}
.container {
    position: relative;
}
canvas {
    border: 1px solid #ccc;

}


/* The Modal (background) */
.modal {
    display: none;  
    position: fixed; 
    z-index: 900; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; 
    background-color: rgba(0,0,0,0.4);
    align-items: center; 
    justify-content: center; 
    line-height: 1.5;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: auto; 
    position: relative;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Close Button */
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.canvas-container {
    text-align: center;
    width: 90%;
    height: fit-content;
/*    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    margin-top: 20px;*/
/*    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);*/
}

.canvas-container h1 {
    margin-bottom: 20px; 

}

#popupCanvas {
/*    width: 600px;*/
/*    height: 600px;*/
/*padding: 20px;*/
    border-radius: 15px;
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.05), /* Inner shadow */
        0 0 0 10px #f4f4f4, /* Outer border color */
        0 0 0 20px #ddd, /* Middle border color */
        0 0 10px rgba(0, 0, 0, 0.2); /* Outer shadow */
/*        background-color: white;*/
/*    background: linear-gradient(to bottom right, #fefefe, #f0f0f0); */
}

.button-container {
    margin-top: 20px;
}

.blueInfo {
    background-color: #a0d4e4;
}

.redStop {
    background-color: #f03404;
}

.yellowReload {
    background-color: #ffc404;
}

.greenStart {
    background-color: #088444;
}

.brownScoreBoard {
    background-color: #ff7c34;
}

.main-button {
    padding: 10px 20px;
/*    font-size: 16px;*/
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 150px;
}

.button-container button {
    padding: 10px 20px;
/*    font-size: 16px;*/
/*    background-color: #4CAF50;*/
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    margin-bottom: 10px;

}

.button-container button:hover {
    background-color: #45a049;
}

.button-container table {
    width: 100%;
}

.button-container td {
    text-align: left;
}

.controls {
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    padding: 10px;
    border-radius: 8px;
/*    background: #eee;*/
/*    width: 300px;  */
/*    min-height: 300px;  */
    box-sizing: border-box;  
}

.controls h2 {
    margin-bottom: 5px;
    padding: 12px;
/*    font-size: 16px; */
}

.controls form {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.controls label {
    display: block; 
    margin-bottom: 5px; 
/*    font-size: 16px; */
}

.controls button {
    padding: 5px;
    margin-top: 5px;
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.controls button:hover {
    background-color: #007ba7;
}

.predictions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.predictions p {
    margin: 0;
    padding: 0 10px;
    
}

.green {
    color: green;
}

.red {
    color: red;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .controls {
        margin-top: 10px;
    }
}

.retraining {
    display: flex;
    align-items: center;
    justify-content: space-around; 
    margin-top: 10px; 
    padding: 10px;
    border: 1px solid #ccc; 
    border-radius: 5px;
    overflow: auto;  
}


#loader {
  position: absolute;
  display: none;  
  left: 50%;
  top: 50%;
  z-index: 2000;
  width: 120px;
  height: 120px;
  margin: -76px 0 0 -76px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Add animation to "page content" */
.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from { bottom:-100px; opacity:0 } 
  to { bottom:0px; opacity:1 }
}

@keyframes animatebottom { 
  from{ bottom:-100px; opacity:0 } 
  to{ bottom:0; opacity:1 }
}


.circle-bullets {
    list-style-type: circle;
}


.modal .modal-content h5 {
    text-align: left; 
}

.eventLog {
    font-family: Monserrat;
/*    font-size: 12px;*/
    color: #333;
    margin-top: 5px;
/*    height: 40px;*/
/*    width: 150px;*/
    overflow-y: scroll;
    overflow-x: scroll;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 5px;
}

#mainTitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    /* margin-top: 5px; */
    margin-left: 5px;
    /* margin-bottom: 5px; */
    font-style: normal;
    position: relative;
    font-weight: 900;
    width: fit-content;
    letter-spacing: 1px;
}
#pageTitle .challenge {
    display: block;
    font-weight: 900;
    font-size: 0.9em;
}

#tip, #gen-bullet6 {
    display: inline-block;
    margin: 0;
}
#copyrightInfo, #kaggleLink {
    display: inline;
    margin: 0;
}