/*
    Plan2Go
    Copyright (C) 2022  TheDutchProgrammers

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
*/
:root {
  --text-color: #000;
  --background-color: #fffcff;
  --background-day: #fff;
  --background-day-hover: #e8eafa;
  --background-current-day: #e8f4fa;
  --background-modal: #e8f4fa;
}
[data-theme="dark"] {
  --text-color: #fff;
  --background-color: #1e1c1e;
  --background-day: #121212;
  --background-day-hover: #282a36;
  --background-current-day: #1d262b;
  --background-modal: #1d262b;
}
html { scroll-behavior: smooth; }
body {
  display: flex;
  margin-top: 50px;
  justify-content: center;
  background-color: var(--background-color);
  color: var(--text-color);
}
button {
  width: 75px;
  cursor: pointer;
  box-shadow: 0px 0px 2px gray;
  border: none;
  outline: none;
  padding: 5px;
  border-radius: 5px;
  color: white;
}
#header {
  padding: 10px;
  color: #d36c6c;
  font-size: 26px;
  font-family: sans-serif;
  display: flex;
  justify-content: space-between;
}
.logo {
  width: 200px;
  align-content: left;
}
nav i {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  color: #000;
  display: inline-block;
  height: 500%;
}
.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #262626;
  font-weight: 300;
  margin-top: 20px;
}
.copyright i { color: #ff004f; }
#header button { background-color:#92a1d1; }
#container { width: 770px; }
#weekdays {
  width: 100%;
  display: flex;
  color: #247BA0;
}
#weekdays div {
  width: 100px;
  padding: 10px;
}
#calendar {
  width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}
.day {
  width: 100px;
  padding: 10px;
  height: 100px;
  cursor: pointer;
  box-sizing: border-box;
  background-color: var(--background-day);
  margin: 5px;
  box-shadow: 0px 0px 3px #CBD4C2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.day:hover { background-color: var(--background-day-hover); }
.day + #currentDay { background-color: var(--background-current-day); }
.event {
  font-size: 10px;
  padding: 3px;
  background-color: #58bae4;
  color: white;
  border-radius: 5px;
  max-height: 55px;
  overflow: hidden;
}
.padding {
  cursor: default !important;
  background-color: var(--background-color) !important;
  box-shadow: none !important;
}
#monthDisplay { width: 200px; }
#newEventModal, #deleteEventModal {
  display: none;
  z-index: 20;
  padding: 25px;
  background-color: var(--background-modal);
  box-shadow: 0px 0px 3px black;
  border-radius: 5px;
  width: 350px;
  top: 100px;
  left: calc(50% - 175px);
  position: absolute;
  font-family: sans-serif;
}
#eventTitleInput {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 25px;
  border-radius: 3px;
  outline: none;
  border: none;
  box-shadow: 0px 0px 3px gray;
}
#eventTitleInput.error {
  border: 2px solid red;
}
#cancelButton, #deleteButton { background-color: #d36c6c; }
#saveButton, #closeButton { background-color: #92a1d1; }
#eventText { font-size: 14px; }
#modalBackDrop {
  display: none;
  top: 0px;
  left: 0px;
  z-index: 10;
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0,0,0,0.8);
}
.theme-switch { display: inline-block; height: 26px; position: relative; width: 26px; } .theme-switch input { display:none; } [data-theme="hacker"] { /* Please just try to find out how to get it without cheating! */ --text-color: #fff; --background-color: #005c00; --background-day: #142f14; --background-day-hover: #016b03; --background-current-day: #00a813; --background-modal: #4caf50; } .darkmode { display: none !important; } input:checked + .icons .lightmode { display: none !important; } input:checked + .icons .darkmode { display: var(--fa-display,inline-block) !important; }
