@font-face {
  font-family: Barlow-Regular;
  src: url(Fonts/Barlow/Barlow-Regular.ttf);
}

@font-face {
  font-family: Barlow-Bold;
  src: url(Fonts/Barlow/Barlow-Bold.ttf);
}

body{
    font-family: Barlow-Regular, Arial, Helvetica, sans-serif;
}

#availableCoursesResultArea p{
    font-size: 1rem;
}

.hidden{
    display: none;
}


a, a:visited{
    color: #333;
    text-decoration: none;
}

tr:hover{
    background-color:  #fdbe034f;
}

button{
    background-color: #FDBD03 ;
    border: none;
    padding: 10px 5px;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0px 5px;
}

button:active{
    transform: scale(0.96);
    background-color: #efb403;
}

#toolChoice{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#mainTool{
    height: 300px;
    background-color: beige;
    margin: 10px;
    border-radius: 10px;
    padding: 15px;
    transition: height 1s;
}

.minimal{
    height: 60px !important;
}

#schoolNameInput, #schoolChoiceBox, #availableCoursesResultArea{
    width: 100%;
    font-size: 2em;
}

h3{
    font-size: 1.2rem;
    padding-bottom: 2px;
    margin-bottom: 0px;
    margin-top: 20px;
}

h2{
    margin-bottom: 0px;
    font-family: Barlow-Bold;
}

p{
    margin-top: 0px;
}

#schoolSelector{
    margin: 10px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

#schoolChoiceBox{
    position: absolute;
    top: 50px;
    background-color: #fff;
}

.schoolInfo{
    margin: 10px 5px; 
    border: 1px solid #999; 
    border-radius: 10px;
    padding: 5px;
}

.schoolInfo:hover{
    background-color: #FDBD03;
    cursor: pointer;
    
}


.bottom-space{
    height: 100px;
}

table{
    font-size: 1rem !important;
    width: 100%;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 50px;
    border-spacing: 0;
}

input[type="checkbox"] {
accent-color: #FDBD03;
}

th{
    background-color: #333;
    color: #FDBD03;
    padding-left: 3px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

tr:not(:first-child) {
    height: 70px;
    border-bottom: 1px solid #999;
}

.smallText{
    color: #444; 
    font-size: 0.7em;
}

.topName, .smallText{
    position: relative;
    top:8px;
}

td:first-child{
    text-align: center;
}

#contactArea{
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: calc(100% - 18px);
    background-color: black;
    color: white;
    font-weight: bold;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 700px) {
    #availableCoursesResultArea table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    #availableCoursesResultArea table td,
    #availableCoursesResultArea table th {
        white-space: normal;
        min-width: 80px;
    }
}

/* Online course table — match Semester width to Course Provider */
table.online-table {
    table-layout: fixed;
}

table.online-table th:nth-child(1),
table.online-table td:nth-child(1) { width: 36px; }

table.online-table th:nth-child(4),
table.online-table td:nth-child(4),
table.online-table th:nth-child(6),
table.online-table td:nth-child(6) { width: 14%; }

.widget-help-btn {
    margin-right: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    padding: 0;
    line-height: 38px;
    text-align: center;
}

#widgetVideoOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#widgetVideoOverlay.hidden {
    display: none;
}

#widgetVideoContainer {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
}

#widgetVideoContainer iframe {
    width: 100%;
    height: 100%;
}

#widgetVideoClose {
    position: absolute;
    top: -36px;
    right: 0;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    padding: 4px 10px;
    cursor: pointer;
}



