/*
* The MIT License (MIT)
*
* Copyright (c) 2025 Kjell Magne Fauske (https://codepen.io/kjellmf/pen/qgxyVJ)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
* {
  box-sizing: border-box;
}

body {
  background: #fff;
  font-family: "monospace", sans-serif; 
  margin: 0;
}
span {
  font-family: "Chicago", sans-serif; 
}

#home_btn {
  position: fixed;
  width: auto;
  z-index: 20;
  right: 0;
  bottom: 0;
  margin: 10px;
  padding: 10px;
  border: none;
  font-family: "Chicago", sans-serif; 
}

.nes-text.is-disabled {
  color: #aaa;
}

.container {
  width: 100%;
  display: grid;
  grid-template-rows: 3em 3em auto;
  position: absolute;
}

.title {
  font-family: "Chicago", sans-serif; 
  background-color: #fbfbfb;
  border-bottom: 4px solid #D3D3D3;
  text-align: center;
  display: grid;
  place-content: center;
  color: #212529;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 150%;
}

.days {
  background: #f3f2f1;
  display: grid;
  place-content: center;
  text-align: center;
  grid-template-columns: 3em 10px repeat(7, 1fr);
  position: sticky;
  top: 3em;
  z-index: 10;
  border-bottom: 2px solid #dadce0;
  font-family: "Chicago", sans-serif; 
}

.day {
  border-left: 1px solid #dadce0;
}

.content {
  display: grid;
  grid-template-columns: 3em 10px repeat(7, 1fr);
  grid-template-rows: repeat(24, 3em);
}

.time {
  grid-column: 1;
  text-align: right;
  align-self: end;
  font-size: 80%;
  position: relative;
  bottom: -1ex;
  color: #70757a;
  padding-right: 2px;
  font-family: "Chicago", sans-serif; 
}

.col {
  border-right: 1px solid #dadce0;
  grid-row: 1/span 24;
  grid-column: span 1;
}

.filler-col {
  grid-row: 1/-1;
  grid-column: 2;
  border-right: 1px solid #dadce0;
}

.row {
  grid-column: 2/-1;
  border-bottom: 1px solid #dadce0;
}

.event {
  border-radius: 5px;
  padding: 5px;
  /* margin-right: 10px; */
  font-weight: bold;
  font-size: 80%;
  margin: 2px;
}

.weekend {
  background-color: #f1f3f4;
}

.current-time {
  grid-column: 7;
  grid-row: 10;
  border-top: 2px solid #ea4335;
  position: relative;
  top: calc(50% - 1px);
}

.circle {
  width: 12px;
  height: 12px;
  border: 1px solid #ea4335;
  border-radius: 50%;
  background: #ea4335;
  position: relative;
  top: -6px;
  left: -6px;
}

.current {
  font-weight: bold;
}

/* Event styles */

.calendar-confirm {
  border: 2px solid #209cee;
  background: #fbfbfb;
}

.calendar-free {
  /*background-color: #b3e1f7; */
  border: 3px solid #06cf1e;
}

.calendar-maybe {
  /*background-color: #b3e1f7; */
  border: 3px dashed #02f7f7;
}

/*
* red #de0d29
* /

/* Event times */
.lecture10A {
  grid-column: 5;
  grid-row: 2/span 4;
}
.lecture2A-1 {
  grid-column: 5;
  grid-row: 11/span 4;
}

.lecture2A-2 {
  grid-column: 7;
  grid-row: 11/span 4;
}

.lecture2A-X {
  grid-column: 6;
  grid-row: 17/span 2;
}

.monday-morning {
  grid-column: 4;
  grid-row: 4/span 4;
}
.monday-noon {
  grid-column: 4;
  grid-row: 7/span 5;
}
.monday-evening {
  grid-column: 4;
  grid-row: 17/span 2;
}

.ctf {
  grid-column: 5;
  grid-row: 19/span 2;
}

.wednesday-morn {
  grid-column: 6;
  grid-row: 2/span 2;
}

.wednesday-noon {
  grid-column: 6;
  grid-row: 10/span 3;
}

.thursday-morning {
  grid-column: 7;
  grid-row: 4/span 2;
}

.lablunch {
  grid-column: 8;
  grid-row: 7/span 3;
}

.friday-morning {
  grid-column: 8;
  grid-row: 4/span 3;
}
.friday-afternoon {
  grid-column: 8;
  grid-row: 10/span 5;
}

.lecture3B-1 {
  grid-column: 5;
  grid-row: 15/span 4;
}

.lecture3B-2 {
  grid-column: 7;
  grid-row: 15/span 4;
}
