@import url("https://fonts.googleapis.com/css?family=Baloo+Bhaina");
@font-face {
    font-family: 'glyphicons-halflings-regular'; 
    src: url('/fonts/glyphicons-halflings-regular.woff2') format('woff2');}

/************      Robust Universal Border-box Fix and Clearfix Suggested by Grant - start     ************/
:root {
    box-sizing: border-box;
    --theme-color: rgb(241, 236, 236);
    --logo-color: #1042e9;
    --sidebar-background-color:#afd275;
}
*,::before,::after {
    box-sizing: inherit;
}
.clearfix::before,
.clearfix::after {
    display: table;
    content: " ";
}
.clearfix::after {
      clear: both;
}
/************       Robust Universal Border-box Fix and Clearfix Suggested by Grant - end      ************/

iframe { height: 90vh }

body {
    font-family: Arial, Verdana, sans-serif;
    color:#111111;
    width: 100vw;
    background-color: var(--theme-color);
    text-align: left;
    font-size: 2.5em;
}

/************       Grid Layout - start     ************/
.grid-container {
    display: grid;
    grid-template-columns: 1fr 20fr;
    grid-template-rows: 5vh 65vh 30vh;
    max-width: 100vw;
    height: 100vh;
    margin: 0.2vh;
}


.logo {
    display: block;
    font-size: 3vh;
    font-weight: bold;
    text-align: center;    
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;    
    transition-property: all;
    transition-duration: 1.0s;
    color: var(--logo-color);
    font-weight: bolder;
    font-family: monospace;    
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    background-color: var(--sidebar-background-color);
}
.logo:hover {
    text-decoration: none;
    color: var(--logo-color);
}
.logo:visited {
    color: var(--logo-color);
}


.sidebar {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-color: var(--sidebar-background-color);
    padding-right: 0.2em;
}

.sidebar-bottom {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    background-color: var(--sidebar-background-color);
    padding-right: 0.2em;    
}

header {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: block;
    font-size: 2vh;
    text-align: center;    
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;    
    transition-property: all;
    transition-duration: 1.0s;
    margin-left: 0.1em;
}

main {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    overflow-y: auto;
    margin-left: 0.1em;
}

.playground {
    padding-top: 10px;
}

.sidebar-text {
    display: block;
    font-size: 2vh;
    text-align: center;    
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;    
    transition-property: all;
    transition-duration: 1.0s;
    color: var(--logo-color);
}
/************       Grid Layout - end     ************/


.flex {
    display: flex;
}

.coursecode {
    font-size: large;
    font-weight: bold;
}
.monospace-large {
    font-family: monospace;
    font-size: large; /* medium (16px), large (18px), x-large (24px), xx-large (32px) */
}
.monospace-xlarge {
    font-family: monospace;
    font-size: x-large; /* medium (16px), large (18px), x-large (24px), xx-large (32px) */
}

.courseDescription {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8em;
    margin-top: 15px;
}


/************  Main Area     ************/

#sitename {  
  background-color: var(--theme-color);
  display: flex;
  justify-content: center;  
  color: var(--logo-color);  
}

#sitename > .sitename-main {
 align-self: flex-start;
 font-size: 200%;
 font-weight: bolder;
}
#sitename > .sitename-sub {
 align-self: flex-start;
 font-size: 100%;
 font-weight: bolder;
 font-style: italic;
}


/************      Flash Messages - start    ************/
.flash {
    background: rgba(193, 255, 193, 0.7);
    font-weight: bold;
    font-size: 2vh;
    color: #625a56;
    width: 100%;
    text-align: center;
    padding: 0.5vh 1vh;
    position: relative;
    z-index: 2;
}

.error {
    color: #fff;
    background: rgba(209, 46, 42, 0.7);
}

.success {
    color: #fff;
    background: rgba(6, 124, 72, 0.79);
}
/************      Flash Messages - end    ************/



/************  Styling     ************/

h1 {
    margin: 10px auto 10px auto;
    color:#3333ff;
}

h2 {
    color: #9900ff;
    padding-bottom: 10px;
    border-bottom: 2px solid #9900ff;
}

.navinline {
    display: inline;
    padding: 10px;
}

/************       Button - start      ************/
button {
    border-width: 0.1vh;
    border-radius: 0.2vh;
    height: 3vh;
}

button.alternating {
    font-family: monospace; /* I use monospace to ensure the same size when the text on an alternating button changes so that nothing moves upon clicking */
    font-size:80%;
    border-radius: .5em;
    background-color: #b7f7db;
}

button.alternating:hover {
    background-color: hsl(162, 88%, 30%);
    color: white;
    cursor: pointer;
}

.button-link {
    display: block;
    font-size: 2vh;
    font-weight: bold;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin: 0.5vh;
    padding: 0.5vh;
    text-decoration: none;
    background-color: #dff05d;
    border: 0.3vmin solid #111111;
    border-radius: 1vmin;
    transition-property: all;
    transition-duration: 1.0s;
}

.button-link:hover {
    text-decoration: none;
    background-color: #8b8beb;
}

.inline-button {
    display: inline-block;
    cursor: pointer;
}

/************       Button - end      ************/



/************ code illustration     ************/

.programs {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 95vh;
    display: flex;
}

.programs > .programs-nav {
    flex: 0 0 1;
    display: flex;
    flex-direction: column;    
    overflow-y: auto;
}
.programs-nav > .program_control {
    flex: 0 0 min-content;
    font-weight: bolder;
    display: flex;
    justify-content: space-around;
}
.programs-nav > .program-module-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.program-module-container > .program-module { 
    flex: 0 0 min-content;
    font-size: 0.75em;
    text-align: left;
    padding-left: 1.5em;
    text-indent: -1.5em;
    background: #82b0fa;
    margin: 3px;    
    border: solid 2px;
    border-radius: .5em; 
}
.program-module:hover {
  background-color: #2c90f5;
}


.programs > .canvas-container {
    flex: 1 0 1;
    overflow: auto;
    background: var(--theme-color);
}


.programs > .program-annotation {
    flex: 0 0 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}

/************ video      ************/

.videos {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 95vh;
    display: flex;
}

.videos > .videos-nav {
    flex: 0 0 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.videos-nav > .video-module-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.video-module-container > .video-module {
    flex: 0 0 min-content;
    font-size: 0.75em;
    text-align: left;
    padding-left: 1.5em;
    text-indent: -1.5em;
    background: #82b0fa;
    margin: 3px;    
    border: solid 2px;
    border-radius: .5em;
}
.video-module:hover {
  background-color: #2c90f5;
}

.videos > .canvas-container {
    flex: 1 0 1;
    overflow: auto;
    background: var(--theme-color);
}

.video-title {
    text-align: center;
}

.videos > .video-annotation {
    flex: 0 0 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}

/************  pdf slides show     ************/

.pdfslides {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 95vh;
    display: flex;
}


.pdfslides > .pdf-nav {
    flex: 0 0 min-content;
    display: flex;
    flex-direction: column;        
}
.pdf-nav > .pdf_control {
    flex: 0 0 min-content;
    font-weight: bolder;
    display: flex;
    justify-content: space-between;
}
.pdf-nav > .slides-module-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.slides-module-container > .slides-module {
    flex: 0 0 min-content;
    font-size: 0.75em;
    text-align: left;
    padding-left: 1.5em;
    text-indent: -1.5em;
    background: #82b0fa;
    margin: 3px;    
    border: solid 2px;
    border-radius: .5em;    
}
.slides-module:hover {
  background-color: #2c90f5;
}


.pdfslides > .canvas-container {
    /*position: relative;*/
    flex: 1 0 1;    
    background: var(--theme-color);    
}


.pdfslides > .slide-annotation {
    flex: 0 0 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}


/************       admin/indexUsers       ************/

#admin-users-table {
  flex: 0 0 800px;
}
#admin-users-graph {
  flex: 1;
}

/************       chat room       ************/

#chat-input {
    width: 100%; /* percentage of main */
    height: 60px;
    margin-top: 25px;
    margin-bottom: 5px;
    margin-right: 10px;
    border: 2px solid #111111;
    overflow: scroll;
}

#chat {
    width: 100%; /* percentage of main */
    height: 1000px;
    margin-top: 20px;
    margin-right: 10px;
    border: 1px solid #635956;
    overflow: scroll;
}

.message.current-user {
    color: blue;
}

.message.moderator {
    color: red;
}

.message.chatbot {
    color: green;
}

.user-name {
  font-weight: bold;
}

#chat li {
    text-decoration: none;
    list-style: none;
    font-family: monospace;
    padding: 1px;
}

#chat li pre {
    display: inline;
    background-color: var(--theme-color);
    white-space: pre-wrap;
    font-size: 90%;
}

textarea {
    min-height: 50px;
    max-height: 100px;
}

textarea.syllabus {
    min-height: 700px;
}


.bgcolor-info {
    background-color: #dff05d;
}
.bgcolor-social {
    background-color: #03ff03;
}

.nounderline {
    text-decoration: none !important
}

.align-center {
    display: block;
    margin: 40px auto;
}


@media (max-width: 760px) {
  .login {
    overflow: hidden;
    white-space: nowrap;
    font-size: 2vw;
  }
}

.media-image {
    float: left;
    margin-right: 1.5em;
}

.media-body {
    overflow: auto;
    margin-top: 0;
}

/************       Modal       ************/

.modal { /* override modal in bootstrap */
 display: none; /* Hidden by default */
 position: fixed; /* Stay in place */
 top: 0;
 right: 0;
 width: 100%; /* Full width */
 height: 100%; /* Full height */
 overflow: auto; /* Enable scroll if needed */
 background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content { /* override modal-content in bootstrap */
 top: 0;
 background-color: #f6f7b7;
 margin: 15% auto; /* 15% from the top and centered */
 padding: 10px;
 border: 1px solid #888;
 width: 80%; /* Could be more or less, depending on screen size */
}

.modal-xl {
 width: 100%;
 max-width: 1500px; 
}

/* The Close Button */
.close {
 color: red;
 float: right;
 font-size: 40px;
 font-weight: bold;
}
.close:hover,
.close:focus {
 color: black;
 text-decoration: none;
 cursor: pointer;
}

.solverSolution {
    flex: 0 0 300px;
}
.solverProblem {
    flex: 1;
}

.wrapper {
    margin: 1em 1em 1em 1em;
}

/************      link & table   ************/

/* unvisited link*/
a:link {
    color:blue;
    text-decoration: none;
}
/* previously visited link*/
a:visited {
    color:purple;
}
/* when the pointer is over it */
a:hover {
    text-decoration: underline;
    cursor: pointer;
}

a.link-em {
    color:rgb(247, 24, 72);    
    text-decoration: none;
}
.blinking-text {
    animation: blinker 1.5s linear infinite;
  }
  
@keyframes blinker {
   50% {
      opacity: 0.1;
    }
}

table {
    border: 1px solid black;
    border-collapse: collapse;
    display: block;
    margin: 40px auto;
    counter-reset: rowNumber;
}

th,td {
    padding: 7px 10px 10px 10px;
}

th {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 90%;
    text-align: left;
}

th.sortByRow {
    cursor: pointer;
}

th[scope="col"] {
    border-bottom: 2px solid #111111;
    border-top: 1px solid #999;
    background-color: #b7f7db;
}

th[scope="row"] {
    border-left: 1px solid #111111;
    border-right: 2px solid #999;
    background-color: #aad4f0;
    text-align: center;
}

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

table.addrowindex tr::before {
    display: table-cell;
    counter-increment: rowNumber;
    content: counter(rowNumber);
    padding-right: 0.3em;
    text-align: right;
    vertical-align: middle;
}

th[rowspan]:not([rowspan="1"]) {
    vertical-align: middle;
}

td[rowspan]:not([rowspan="1"]) {
    vertical-align: middle;
}


/************       syllabus      ************/

.homework {
    color: red;
}

hr {
    display: block;
    height: 1px;
    border-top: 3px double #0e0000;
    margin: 1em 0;
    padding: 0;
}


/************       marketplace      ************/

.btn {
    font-size: 1.5vh;
    height: 3vh;
    padding: 0.3vh 0.6vh;
    border-radius: 0.2vh;
    border-width: 0.1vh;
    border: 0.1vh;
    margin-top: 0.1vh;
    margin-bottom: 0.1vh;
}

.btn-author {
    background-color:var(--author-color);
    color: black;
    font-weight: bold;
}

.btn-reviewer {
    background-color:var(--reviewer-color);
    color: black;
    font-weight: bold;
}

.btn-danger {
    background-color:rgb(238, 88, 88);
    color: black;
    font-weight: bold;
}

.hoverdisabled {
    pointer-events: none;
}


textarea:read-only {
  border: 0;
  box-shadow: none;
  background-color: #ddd;
}

/************      Marketplace Tabs - start      ************/
/*  CSS for the main interaction */
.tabset > input[type="radio"] {
    position: absolute;
    left: -100vw;
}
  
.tabset .tab-panel {
    display: none;
}
 

/* for n=1,2,3, the (2n-1)-th child is the radio input; the 2n-th child is the label; the n-th child of tab-panels is the corresponding tab-panel */ 
/* we have 5 course categories here, hence 5 selectors */
.tabset > input:nth-child(1):checked ~ .tab-panels > .tab-panel:nth-child(1),
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5) {
    display: block;
}
  
/* Styling */ 
.tabset > label {
    position: relative;
    display: inline-block;
    width: 22vh;
    padding: 1.2vh 1.2vh 1.2vh;
    border: 0.1vh solid transparent;
    border-bottom: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.5vh;
    text-align: center;
}

/*
.tabset > label::after {
    content: "";
    position: absolute;
    left: 1.2vh;
    bottom: 0.9vh;
    width: 2.5vh;
    height: 0.3vh;
    background: #8d8d8d;
}
*/
  
input:focus-visible + label {
    outline: 0.2vh solid rgba(0,102,204,1);
    border-radius: 0.2vh;
}
  
.tabset > label:hover,
.tabset > input:focus + label,
.tabset > input:checked + label {
    color: #06c;
}
  
.tabset > label:hover::after,
.tabset > input:focus + label::after,
.tabset > input:checked + label::after {
    background: #06c;
}
  
.tabset > input:checked + label {
    border-color: #ccc;
    border-bottom: 0.1vh solid #fff;
    margin-bottom: -0.1vh;
}
  
.tab-panel {
    padding: 2.4vh 0;
    border-top: 0.1vh solid #ccc;
}
/************      Marketplace Tabs - end      ************/


/************       Marketplace Paper Display - start      ************/
.paper-vertical-stack {
    display: flex;
    flex-direction: column;
}
/*
.paper-vertical-stack div.paper-container:nth-child(even) {
    background-color: lightyellow;
}
*/
.paper-container {
    display: flex;
    flex-direction: column;
    margin: 1vh; 
}

.horizontal-line {
    border-bottom: 1vh solid gray;
    margin: 0 2vh;
}

.paper-title {
    display: flex;
    font-size: 2.5vh;
    font-weight: 400;
    text-align: left;
    /* text-decoration: underline; */
    word-break: break-word;
}

.paper-info {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    font-size: 1.5vh;
}

.paper-posted-time {
    padding-right: 1.5vh;
    color: #505050;
}

.paper-reviewer-needed {
    margin-left: 1.5vh;
    margin-right: 3vh;
    display: list-item;
}
/************       Marketplace Paper Display - end      ************/

/************       Pagination - start      ************/

.numberSelector{
    width: 90%;
    height: 10vh;
    margin-bottom: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.items-controller {
    display: flex;
    align-content: center;
    align-items: center;
    margin: 0 2vh 0 2vh;
}

.search{
    display: flex;
    align-content: center;
    align-items: center;
    margin: 0 2vh 0 2vh;
}
.page-field{
    margin: 0 2vh 0 5vh;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
}

.goToPage {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}
.pagination{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
}

.search > input{
    padding: 0.3vh;
    border-color: #D3D3D3;
    margin: 0 0 0 2vh;
    width: 20vh;
    border-width: 0.1vh;
}
.goToPage > input[type="text"].form-control{
    padding: 0.2vh;
    border-color: #D3D3D3;
    margin: 0 1vh 0 0.5vh;
    font-size: 1vh;
    width: 5vh;
    height: 2vh;
}

.goToPage > .btn {
    font-size: 1vh;
    height: 2vh;
    padding: 0.2vh 0.4vh;
    border-radius: 0.2vh;
}

.pagination li{
  list-style: none;
  padding: 0.1vh;
  margin: 1vh;
  flex-shrink: 0;
  text-align: center;
  border-radius: 0.5vh;
  border: 0.1vh solid #999;
  color: #999;
}

.pagination li a {
    border: none;
}

.pagination li.active {
  background: #337ab7;
  color: white;
  border-color: #337ab7;

}
.pagination li a{
  text-decoration: none;
  padding: 0.3vh 0.8vh;
  color: inherit;
  display: block;
  font-family: sans-serif;
  font-size: 1.5vh;
}

.searchText {
    font-size: 1.5vh;
    margin: 0;
    text-align: left;
}

div.search > input[type="text"].form-control
 {
    font-size: 1.5vh;
    height: 3vh;
    border-radius: 0.2vh;
    margin: 0 0.3vh;
}

div.search > select {
    border: solid;
    border-color: lightgray;
    border-width: 0.1vh;
    margin-right: 0;
    height: 3vh;
}

button.glyphicon {
    top: 0;
}

button.btn.btn-default.glyphicon.glyphicon-search {
    margin-top: 0;
}


/************       pagination - end      ************/

/* remove the arrows (spin buttons) from an HTML input of type="number" */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}