* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overscroll-behavior: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll; /* Enable vertical scrolling */
    padding-bottom: 100px;
}

.overlay {
    position: absolute;
    background: #f4f4f4;
    top: 0;
    left: 0;
    Height: 100%;
    Width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.bluejays {
    display: flex;
    height: auto;
    max-height: 270px;
    max-width: 85%;
    margin-bottom: 100px; 
}

.start-btn {
    height: 30vh;
    max-height: 300px;
    width: 80vw;
    max-width: 500px;
    background-color: #00a6ff;
    text-align: center;
    font-size: 3em;
    border-radius: 15px;
    box-shadow: #333;
    border-style: solid;
    border-color: #181818;
}

.more_info {
    border-bottom: 1px dotted;
    position: relative;
    overflow-wrap: normal;
    max-width: 500px;

  }
  
.more_info .title {
      position: absolute;
      bottom: 20px;
      background: rgb(173, 173, 173);
      padding: 4px;
      left: 0;
      text-wrap: wrap;
      min-width: 40vw;
      max-width: 80vw;
      overflow: auto;
      height: fit-content;
      border-radius: 5px;
      border-style: solid;
      border-color: #181818;
}

.sticky-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #181818;
    z-index: 1000;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.progress-bar {
    width: 0;
    height: 50px;
    background-color: #ffe573;
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    padding: 0;
}

.countdown-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 20px;
    line-height: 50px;
    color: white;
}

.total-time {
    padding: 10px;
    text-align: center;
    font-size: 18px;
    background-color: #eee;
    margin-top: 0px;
}

.center-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
}

#center-countdown-text {
    font-size: 48px;
    color: #333;
    background-color: #ffd700;
    padding: 20px;
    border-radius: 10px;
}

.button-container {
    margin-top: 100px;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
}

button:disabled {
    background-color: #888;
}

button:hover:not(:disabled) {
    background-color: #555;
}

.medication-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#medication-input {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
}

#add-medication-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
}

#add-medication-button:hover {
    background-color: #45a049;
}

#medication-log {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.medication-entry {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.table-container {
    Width: 100%;
}

.blocks {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

.blocks th, .blocks td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.blocks th {
    background-color: #00a6ff;
    color: white;
}

.shockhead, .nonshockhead{
    width: 45%;
}

.block-row {
    background-color: #f9f9f9;
}

.block-row td {
    height: 50px;
}

.block-number {
    width: 5px;
    text-align: center;
    padding: none;
}

.shock.green, .non-shock.green {
    background-color: #d4edda; /* Light green for success */
}

#rhythm {
    top: 0;
    left: 0;
    z-index: 999;
    color: rgba(73, 73, 73, 0.5);
}

#medcheckbox {
    float: left;
}

.reversible-causes-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f4f4f9;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.reversible-causes-header {
    font-weight: bold;
    padding: 10px;
    background-color: #00a6ff;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
}

.reversible-causes-popup {
    display: none;
    padding: 10px;
    justify-content: space-around;
}

.causes {
    width: 45%;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.causes-title {
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #00a6ff;
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 5px;
}

#medicationInfo {
    margin: 20px 0;
    color: #333;
    font-size: 16px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.modal-columns {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.modal-column {
    width: 45%;
}

.modal-button {
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #00a6ff;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-button:hover {
    opacity: 0.8;
}

h1, h2, h3 {
    color: #333;
}


.answer-background {
    position: absolute;
    top: 5px;    /* Adjusts the vertical position (top padding) */
    left: 5px;   /* Adjusts the horizontal position (left padding) */
    font-size: 12px;
    color: rgba(128, 128, 128, 0.3); /* Semi-transparent grey */
    pointer-events: none; /* Ensures the background text doesn't interfere with clicking on the cell */
    text-align: left;
}




.result {
    margin-top: 20px;
    padding: 20px;
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
}