#exam_form {
    font-family: Arial, sans-serif;
    margin: 0px;
    padding: 0px;
    border: none;
    border-radius: 8px;
    
}

.question_block {
    margin-bottom: 20px;
    font-family: "Roboto", Sans-serif;
}

.question_block h4 {font-family: "Roboto", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 38px;
    margin-top:20px;
}

.question_block label {font-family: "Roboto", Sans-serif;
    font-size: 20px;
}

.question_block input {font-family: "Roboto", Sans-serif;
    font-size: 20px;
}

.buttons-wrapper-2 {
    display: flex;
    flex-direction: row;
    --container-widget-width: calc((1 - var(--container-widget-flex-grow))* 100%);
    --container-widget-height: 100%;
    --container-widget-flex-grow: 1;
    --container-widget-align-self: stretch;
    --flex-wrap-mobile: wrap;
    justify-content: space-between;
    align-items: stretch;
    --gap: 10px 10px;
    --background-transition: 0.3s;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
    padding-right: 40px;
}

.review-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

.buttons-container {
    display: flex;
    --justify-content: center;
    --align-items: center;
    --container-widget-width: calc((1 - var(--container-widget-flex-grow))* 100%);
    --gap: 0px 0px;
    --background-transition: 0.3s;
    --padding-top: 10px;
    --padding-bottom: 0px;
    --padding-left: 10px;
    --padding-right: 10px;
}

.buttons-container-2 {
    text-align: right;
    margin: 10px 0px 0px 0px;
    border-top:2px solid black;
    width: fit-content;
    float: right;
}



.vert-divider {border-left:1px solid #646464;
    height: 5px;
    margin:0px 10px;
}

#save_button, #find_marked_button
    {
    background-color: transparent;
    color: darkblue;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-family: "Roboto", Sans-serif;
}

#save_button:hover, 
#find_marked_button:hover
    {
      background-color: transparent !important;
      color: #000 !important;
    }

#prev_button
 {
    background-color: #646464;
    color: #fff;
    border: none;
    padding: 2px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: "Roboto", Sans-serif;
    margin-right:10px;
}

#next_button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 2px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: "Roboto", Sans-serif;
}

#prev_button:hover,
#next_button:hover {
    background-color: #000;
}

.mark-for-review {margin-top:20px;}

.mark-for-review-label {
    font-style:italic;
    font-weight:700;
    color: darkblue;
}


.hidden {
  display: none;
}

/* Incorrect Answer Alert Window */
.custom-alert {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.custom-alert-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 30%;
}

.custom-alert-close {
      float: right;
    font-size: 24px;
    cursor: pointer;
    background-color: #D23434;
    color: #fff;
    border: none;
    padding: 0px 12px;
    margin: 0px;
    border-radius: 4px;
}


/* New class specifically for video popup */
.video-popup-container {
    position: fixed;
    left: 10vw; /* Center horizontally */
    top: 20vh; /* Position from the top */
    width: 80vw; /* 80% of the viewport width */
    height: 60vh; /* 60% of the viewport height */
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.8); /* Darker background */
    display: flex;
    align-items: center; /* Align content vertically */
    justify-content: center; /* Align content horizontally */
    z-index: 10000; /* Ensure it's above other elements */
    overflow: hidden; /* Prevent overflow */
}

.video-popup-content {
    width: calc(100% - 20px); /* Full width minus padding */
    height: calc(100% - 20px); /* Full height minus padding */
    box-sizing: border-box; /* Include padding in size calculation */
    padding: 10px;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    position: relative;
}

.video-popup-container video {
    max-width: 100%; /* Full width of the container */
    max-height: 100%; /* Full height of the container */
    width: auto; /* Auto width for aspect ratio */
    height: auto; /* Auto height for aspect ratio */
}

.video-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #D23434; /* background for visibility */
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video_button, #notes_button {
    cursor:pointer;
}

#save_study_exam_button.hidden, #next_button.hidden, #save_button.hidden, #find_marked_button.hidden {
    display: none;
}

#save_study_exam_button {    float: left;
    margin-top: 26px;
    padding: 10px 18px;}
    
#question_container {min-width:280px;}
#final_summary_text {padding: 20px;
    text-align: center;}


.custom-radio, .custom-checkbox {margin-bottom:20px;}

.custom-radio input[type="radio"], .custom-radio input[type="checkbox"] {margin: 6px 8px 0px 0px;
    float:left;
}

.custom-label { 

    display: inline-block;
    vertical-align: top;
    width: calc(100% - 40px); /* Adjust '40px' based on the width of your input elements */
    word-break: break-word; 
    line-height: 22px;
    font-size: 16px;
}

#customAlertText {font-family: "Roboto", Sans-serif;
}

#question_display {font-family: "Roboto", Sans-serif;
    font-size: 18px;
}

.currentcount {font-weight:500;}

.red-divider {border-top: 2px solid #D23434; margin: 10px 0;}