:root {
  --nzqa_blue: #00709e;
  --nzqa_red: #d22127;
  --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: lighter;
}

.navbar {
    background-color: var(--nzqa_blue);
    border-bottom: 5px solid var(--nzqa_red);
}

.navbar_brand {
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
}

#heading-container {
    font-family: 'Roboto', sans-serif;
}

/* for big screens, 3 columns of subjects */
.card-columns {
   column-count: 3;
}

/* smol screens */
@media screen and (max-width: 768px) {
    .card-columns {
        column-count: 1;
    }

    
    .standard-card .card {
        margin-bottom: 2em;
    }


}

/* mid-size screens */
@media screen and (min-width: 768px) and (max-width: 992px) {
    .card-columns {
        column-count: 2;
    }
    

    .standard-card .card {
        margin-bottom: 2em;
    }

}

/* general class to make the cursor be pointy when over something i want to be interactive */
.clickable { cursor: pointer; }


/* colour distinction between internal and external rows */
.internal_row {
    background-color: #e0f0ff !important;
}

.external_row {
    background-color: /* elia:#ffe8f5*//* odin:#ffd1eb sarah:*/#c6d6e8 !important;
}

/* make the card have a blue border on hover */
.starred-card .card .card-header {
    cursor: pointer;
}

.starred-card .card {
    transition: border 0.4s;
}

.starred-card .card:hover { 
    border: 1px solid var(--nzqa_blue);
}

.close-starred {
    z-index: 2; /* put on top of stretch link to subject */
    position: relative;
}

/* on standards page, make the big nzqa link the nzqa colour */
.nzqa-link {
    background-color: var(--nzqa_blue);
}

/* for the rounded toggle button thingy */
 /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--nzqa_blue);
  -webkit-transition: .4s;
  transition: .4s;
}

/* the little circle thing */
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--nzqa_blue);
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
} 

.btn {
  -webkit-appearance: none;
}

/* locally stored fonts */
/*@font-face {
    font-family: 'Roboto';
    src: url('/libs/Roboto-Bold.woff') format('woff'),
        url('/libs/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}*/

@font-face {
    font-family: 'Roboto';
    src: url('/libs/Roboto-Light.woff') format('woff'),
        url('/libs/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/*@font-face {
    font-family: 'Roboto';
    src: url('/libs/Roboto-Italic.woff') format('woff'),
        url('/libs/Roboto-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}*/

/*@font-face {
    font-family: 'Roboto';
    src: url('/libs/Roboto-Medium.woff') format('woff'),
        url('/libs/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}*/

@font-face {
    font-family: 'Roboto';
    src: url('/libs/Roboto-Regular.woff') format('woff'),
        url('/libs/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* make the placeholder disappear on focus */
input:focus::placeholder {
  color: transparent;
}

/* style the popout link button for the share url */
#go-to-share {
    border-color: #ced4da !important;
    background-color: #e9ecef;
    transition: background-color 0.3s;
}

#go-to-share:hover { /* darken on hover, helps with interactivity */
    background-color: #ddd;
}