* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Keeps the text color unchanged */
}

a:visited {
    text-decoration: none; /* Ensures no underline */
    color: inherit; /* Prevents color change after visit */
}

.first-half input[type="radio"], .second-half input[type="radio"] {
    display: none;
}

/* Custom radio button */
.custom-radio {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #333;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    margin-top: -2px;
}

/* Checkmark inside the custom radio when selected */
input[type="radio"]:checked + .custom-radio::after {
    content: "✔";
    font-size: 12px;
    color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}


.page-wrapper {
            background-color: white;
        }
        
        .topbar {
            display: flex;
            width: 100%;
            background-color: #174AAD;
            color: #fff;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            
        }
        
        .nave-text {
           padding: 5px;
        }
        
        .t-contents-body {
            max-width: 900px;
            margin: 0 auto;
            border: 1px solid black;
            border-top: 1px solid transparent;
            padding: 10px;
        }
        
        .top-selection {
            background-color: #FFFF00;
            display: flex;
            flex-direction: column;
            margin: 10px 3%;
            margin-top: -10px;
            padding: 10px;
            gap: 20px;
        }
        
        .radio-buttons-container {
            display: flex;
            flex-direction: column;
        }
        
        .radio-buttons-info {
            margin: 20px auto;
        }
        
      .first-half, .second-half {
          display: flex;
          flex-direction: column;
          border: 1px solid rgba(231, 230, 230, 1);
          margin: 20px 3%;
      }
      
      .first-half .header, .second-half .header {
          background-color: rgba(231, 230, 230, 1);
          padding: 5px;
          color: #000080;
          font-weight: bold
      }
      
      .fh-body, .sh-body {
          display: flex;
          flex-direction: column;
          gap: 10px;
          padding: 10px;
      }
      
      .sc-container {
          display: flex;
          justify-content: space-between;
          width: 50%;
          gap: 5px;
      }
      
      .radio-item {
        display: flex;
        flex-wrap: wrap; 
        width: 48%;
       
      }
      
      .items {
          display: flex;
          justify-content: space-between; /* Align first and last items to edges */
          align-items: center;
          padding: 5px;
          border: 1px solid rgba(128, 128, 128, 0.5);
      }
      
      .studydata-container {
          min-width: 170px;
          display: flex;
          justify-content: flex-end;
      }

      
      .studydata {
          background-color: #F81191;
          padding: 5px 12px;
          color: white;
          text-align: right;
      }
      
      .studydata_test {
          background-color: rgba(128, 128, 128, 0.6);
          padding: 5px 12px;
          color: white;
          text-align: right;
      }
      .content-link {
          background-color: #027BFF;
          padding: 5px 16px;
          border-radius: 3px;
          color: white;
          cursor: pointer;
      }
      
      
 @media (max-width: 768px) {
     
      .top-selection, .first-half, .second-half {
         margin: 20px auto;
     }
     
    .top-selection{
         margin-top: -20px;
     }
     
     .items{
        display: flex;
        flex-direction: column;
     }
     
 
     .radio-item{
         margin-top: 10px;
         margin-left: 10px;
         width: 100%;
     }
     .sc-container {
         display: flex;
         margin-top: 10px;
         margin-bottom: 10px;
         margin-right: 10px;
         justify-content: flex-end;
         gap: 10px;
         width: 100%;
     }
     
     
     
}