.quiz-btn {
    width: 200px; 
}
#refresh, #refresh2 {
    width: 50px; 
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px; /* Adds a gap between the buttons */
}
.option.correct,
.option.incorrect {
    width: 100px; /* Set width of correct and incorrect buttons */
    text-align: center; /* Center the header content */
    /* padding: 0; Remove padding */
}

/* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Stay on top */
    top: 0;
    left: 0;
    background-color: #f2f2f2; /* Light grey background */
    border-right: 2px solid #d4d4d4; /* Darker grey right border */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    padding-top: 60px; /* Place content 60px from the top */
}

/* The navigation menu links */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.25em;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: #3b3b3b;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}



.sidenav-content {
    /* provide the indentation for source links */
    padding-left: 20px;
}

.sidenav-search {
    /* styles for your search link */
    margin-top: 10px;
}

.timer-option {
    display: flex;
    align-items: center;
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.25em;
    color: #818181;
    display: block;
    transition: 0.3s;
    align-items: center; /* Align items horizontally */
}

.timer-option input[type="checkbox"] {
    margin-right: 10px;

}

/* Style the hamburger menu */
.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #ffffff; /* Change the background to white */
    color: #000000; /* Change the color to black */
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    background-color: #eeeeee; /* Change the hover color to a light gray for a subtle effect */
}

/* Change display to inline for header elements */
#header .openbtn, #header h1 {
    display: inline-block;
}

/* Add vertical alignment for header elements */
#header .openbtn, #header h1 {
    vertical-align: middle;
}

/* Center the h1 and set the header background to white */
#header {
    text-align: center; /* Center the header content */
    background-color: #ffffff; /* Set the background to white */ 
}

/* Style the sticky header */
.sticky-header {
    margin: 0;
    padding: 0;
    top: 0; 
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid lightgrey;
    border-top: 1px solid lightgrey;
}

.score-board-row {
    display: flex;
    justify-content: flex-end;
    position: fixed; /* Keeps the score-board at the bottom of the page */
    bottom: 0; /* Positions the score-board at the very bottom of the page */
    left: 0; /* Aligns the score-board to the left of the page */
    right: 0; /* Aligns the score-board to the right of the page */
    background-color: #f8f9fa; /* Bootstrap's light gray */
    padding: 10px;
    border-radius: 5px;
    text-align: right;
    align-items: center;
    font-weight: bold;
    width: 100%; /* Makes the score-board span the full width of the page */
    box-sizing: border-box; /* Ensures padding does not affect the total width of the score-board */
    border-top: 1px solid lightgrey;
    /* margin-left: 20px; */
}

.score-board-row > div {
    margin-left: 20px; 
}


body {
    font-family: 'Times New Roman', serif;
    background-color: #F1F3F4;
    margin: 0;
    padding: 0;
    color: #202124;
}

.container {
    padding: 7px;
    padding-top: 40px;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
    
}

h1 {
    text-align: center;
    color: #202124;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border-bottom: 1px solid #f1f3f4;
    text-align: left;
    padding: 16px;
    vertical-align: middle;
}

tr:nth-child(even) {
    background-color: #f6f8fa;
}

.reveal, .option {
    margin: 5px;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reveal {
    background-color: #00897B;
    color: #fff;
}

.option {
    /* background-color: #f1f3f4; */
    color: #202124;
}

.option.correct:disabled {
    background-color: #34a853;
    color: #fff;
    width: 150px;
}

.option.incorrect:disabled {
    background-color: #ea4335;
    color: #fff;
    width: 150px;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-right: 10px;
  }
  
  .refresh {
    /* padding: 10px 20px; */
    /* font-size: 16px; */
    cursor: pointer;
    transition: background-color 0.3s ease;
    float: left;
    /* width: 20%; */
    /* padding: 10px; */
    background: #00897B;
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none; /* Prevent double borders */
    cursor: pointer;
  }
  
  .loading-circle {
    width: 20px;
    height: 20px;
    border: 3px solid #1A2E61;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    visibility: hidden;
    margin-left: 10px; /* Adjust the margin as needed */
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .loading {
    visibility: visible;
  }

.option:disabled {
    cursor: not-allowed;
}

table {
    table-layout: fixed;
    
}

.controls {
    display: flex;
    flex-direction: column;
}

.controls > button,
.controls > div {
    margin-right: 1px;
}

.answer-container {
    width: 60%; /* adjust this value as needed */
}

.buttons {
    display: flex;
    gap: 5px;
}

#QuizName {
    text-align: center;
    padding-top: 15px;
  }

.dropdown-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

.dropdown-container select {
    padding: 10px 24px;
    font-size: 22px;
    border: none;
    border-radius: 4px;
    background-color: #f1f3f4;
    color: #202124;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-container select:focus {
    outline: none;
}

.dropdown-container::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: solid #202124;
    border-width: 0 2px 2px 0;
    padding: 3px;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: center;
}

.dropdown-container:hover::after {
    transform: translateY(-50%) rotate(45deg);
}

#date-picker {
    margin-top: 10px;
    display: none;
    
}

#date-picker label {
    margin-right: 10px;
}

#date-picker input[type="date"] {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #f1f3f4;
    color: #202124;
    transition: background-color 0.3s ease;
}

#date-picker input[type="date"]:focus {
    outline: none;
}

    .footer {
        display: flex;
        justify-content: center;
        align-items: center;
        /* height: 100vh;  This will center the link vertically. If you only want to center it horizontally, you can remove this line. */
    }

    .extra-space {
        height: 50vh; /* vh is a percentage of the viewport height */
        clear: both;
        display: flex; 
        justify-content: center; 
        align-items: flex-end; 
        font-style: italic; 
        margin-bottom: 50px; 
    }
    

    #searchForm {
        display: flex;
        justify-content: center;
        padding: 20px;
        
    }
    
    #searchForm input[type="text"] {
        padding: 10px;
        font-size: 17px;
        border: 1px solid grey;
        float: left;
        width: 60%;
        background: #f1f1f1;
    }
    
    #searchForm input[type="submit"] {
        float: left;
        width: min-content; 
        padding: 10px;
        background: #2196F3;
        color: white;
        font-size: 17px;
        border: 1px solid grey;
        border-left: none; /* Prevent double borders */
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
        
    #searchForm input[type="submit"]:hover {
        background: #0b7dda;
    }
    

    @media only screen and (max-width: 600px) {
        body {
            font-size: 1.2em; /* Adjust base font size on small screens */
            background-color: #fff !important;
        }
        .container {
            margin: 35px auto;
            box-shadow: none !important;
            width: 95%;
        }
    
        .source-dropdown,
        .score-board,
        .refresh,
        .question-text,
        .answer-text {
            font-size: 1.2em; /* Adjust this value to your liking */
        }
        #timer {
            right: 0;
            left: 0;
            margin: 0 auto;
            
          }
    }

    .form-group {
        position: relative;
        width: 100%;
        margin-bottom: 15px
    }

    .source-dropdown {
        height: 60px;
        width: 100%;
    }
    
    .form-group label {
        position: absolute;
        top: -6px;
        left: 10px;
        padding: 0 5px;
        background: #fff;
        font-size: 0.8em;
        transition: all 0.3s;
    }
    
    .form-group select:focus + label,
    .form-group select:valid + label {
        top: -18px;
    }
    



    .learnmorecard {
        background-color: rgb(215, 225, 162); /* Replace #yourcolor with the desired color */
    }


    #timer {
        background-color: white;
        width: 230px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        border: 1px solid darkgrey;
        position: fixed;
        right: 30px;
        bottom: 80px;
        display: flex;
        align-items: center;
      }
      
      #timer p {
        margin: 0;
        text-align: center;
        flex-grow: 1;
      }
      
      #timer-buttons {
        display: flex;
        align-items: center;
      }
      
      #timer button {
        margin-left: 3px;
      }

      .timer-option .custom-checkbox {
        position: relative;
        padding-left: 35px; /* Space for the custom checkbox */
        cursor: pointer;
        /* font-size: 22px; */
        align-items: center;
        display: flex;
      }
      
      .timer-option input[type="checkbox"] {
        display: none;
      }
      
      .timer-option .checkmark {
        position: absolute;
        left: 0;
        top: 0;
        width: 24px; /* Size of the custom checkbox */
        height: 24px;
        background-color: #eee;
        border: 2px solid #000;
        border-radius: 5px; /* Rounded edges */
      }
      
      .timer-option input[type="checkbox"]:checked + .checkmark {
        background-color: #656666; /* Color when checked */
      }
      
      .timer-option .checkmark:after {
        content: "";
        position: absolute;
        display: none;
      }
      
      .timer-option input[type="checkbox"]:checked + .checkmark:after {
        display: block;
      }
      
      .timer-option .checkmark:after {
        left: 9px;
        top: 5px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
      }
      
      .white-svg {
        filter: invert(1);
        vertical-align: middle;
      }

      .scoreboard-section {
        width: 100%;
    }
    
    #scoreboard {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
    }
    
    #scoreboard th,
    #scoreboard td {
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

    .ScoreboardSource {
        margin-bottom: 10px;
    }


    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
      }

      .overlay-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: white;
        padding: 20px;
        border-radius: 10px;
    }
      
      .popup {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        width: 80%;
        max-width: 400px;
      }
      
/* CONNECTIONS */
    .container400 {
        max-width: 390px;
        margin: 0 auto; /* Center the container horizontally */
        padding-top: 20px;
    }
    .grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 10px;
        
    }
    .gridcontainer {
        margin-top: 20px;
        
    }
    .tile {
        font-weight: bold;
        background-color: #f0f0f0;
        border-radius: 10px;
        padding: 10px;
        text-align: center;
        display: flex;          /* Enable flexbox */
        justify-content: center;/* Horizontally center content */
        align-items: center;
        cursor: pointer;
        transition: background-color 0.3s;
        font-size: 80%; /* Start with a base font size */
        width: 80px; /* Fixed width */
        height: 80px;
        overflow: hidden; /* Hide overflow content */
        /* white-space: normal;  */
        overflow-wrap: break-word !important;
        text-overflow: ellipsis; 
        /* min-width: 40px; (Optional) Minimum width */
    }
      
    
    .tile:hover {
        background-color: #e0e0e0; /* Slightly darker grey on hover */
    }

    .tile.wide-tile {
        grid-column: span 4; /* Span 4 columns */
        /* margin-right: 30px;  */
        padding: 10px;
        margin-bottom: 10px;
        background-color: #ff6a6a;
        width: 100%;
    }
    
    .selected {
        background-color: rgb(108, 176, 199) !important; /* Add !important to ensure priority */
    }
    .disabled {
        pointer-events: none;
        opacity: 0.5;
    }
    .correct2 {
        background-color: green;
    }
    .error {
        background-color: red;
    }
    #counter {
        text-align: center;
    }


      
