@keyframes neonBox {
  from {
    box-shadow: 0 0 1px var(--primary-color), 0 0 1px var(--primary-color),
      0 0 3px var(--primary-color), 0 0 4px var(--primary-color),
      0 0 6px var(--primary-color), 0 0 7px var(--primary-color),
      0 0 9px var(--primary-color), 0 0 12px var(--primary-color);
  }
  to {
    box-shadow: 0 0 1px var(--primary-color), 0 0 6px var(--primary-color),
      0 0 1px var(--primary-color), 0 0 1px var(--primary-color),
      0 0 1px var(--primary-color), 0 0 1px var(--primary-color),
      0 0 1px var(--primary-color), 0 0 1px var(--primary-color);
  }
}

@font-face {
  font-family: hack;
  src: url("fonts/Hack-Regular.ttf");
}

* {
  margin: 0;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  transition: all 0.2s ease;
  font-family: hack, Arial, Helvetica, sans-serif;
}

body {

  background: rgba(50, 50, 50, 0.57);
  background-image: var(--body-background);
  background-repeat: no-repeat;
  background-size: auto;
}

#header {
  display: flex;
  padding: 5px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 3px solid black;
}

#header #logo {
  padding: 19px;
  text-align: center;
  background-image: var(--logo-background);
  background-repeat: no-repeat;
  background-size: contain;
  background-position-y: center;
  background-position-x: center;
  text-shadow: -1px -1px 0px var(--tertiary-color),
    1px 1px 0px var(--secondary-color);
}

#header,
#footer {
  text-align: center;
  align-items: center;
  color: var(--primary-color);
  background: rgba(0, 0, 0, 0.42);
  padding: 3px;
}

#header #logo a {
  text-decoration: none;
  color: var(--primary-color);
  text-shadow: -1px -1px 0px var(--tertiary-color),
    1px 1px 0px var(--secondary-color);
  background: rgba(0, 0, 0, 0.42);
  padding: 3px;
}

#footer {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  min-height: 50px;
  z-index: -1;
  background: rgba(0, 0, 0, 0.57);
  margin-top: 150px;
}

#footer div,p {
  margin-left: 3px;
  margin-right: 3px;
}

#folderName {
  align-self: center;
}

#content,
#section_bookmarksHome {
  display: flex;
  padding: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

#contentWrapper {
  display: flex;
  flex-direction: column;
}

#contentWrapper > * {
  flex-grow: 1;
}

#section_bookmarksHome {
  border: 1px dashed var(--primary-color);
}

#contentWrapper h2 {
  color: var(--primary-color);
  padding-bottom: 3px;
}

.readMe {
  background: rgba(242, 242, 242, .95);
  padding: 7px;
  border-radius: 7px;
}

.readMeDark {
  background-color: rgba(0, 0, 0, .95);
  color: #ccc;
}

#content section, #sidebar section, .message {
  border: 1px solid black;
  margin-bottom: 19px;
  text-align: center;
  padding-bottom: 7px;
  margin: 5px 4px 7px 5px;
  box-shadow: -1px -1px 1px var(--tertiary-color),
    1px 1px 1px var(--secondary-color);
  background: rgba(0,0,0,.72);
}

#content section:hover, #sidebar section:hover {
  -moz-animation: neonBox 2.5s ease-in-out infinite alternate;
  animation: neonBox 2.5s ease-in-out infinite alternate;
}

#content .content {
  width: 100%;
}

#sidebar {
  margin-right: 10px;
}

#sidebar, #sidebar button, #sidebar h2 {
  color: #000;
}

#sidebar section {
  padding: 3px;
   background: #ccc;
}

#sidebar h2 {
  text-shadow: none;
}

#projectUpload {
  display: none;
  overflow: hidden;
}

#eventsTable {
  width: 95%;
  border: 1px solid black;
  margin-bottom: 19px;
  text-align: center;
  padding-top: 7px;
  padding-bottom: 7px;
  box-shadow: -1px -1px 1px var(--tertiary-color),
    1px 1px 1px var(--secondary-color);
}

#loginForm {
  min-width: 35%;
  text-align: center;

}

.message {
  margin-left: 10px;
  padding: 7px;
  color: black;
}

.message.error {
  background-color: rgba(128, 255, 255, 0.9);
}

.message.info {
  background-color: rgba(255, 255, 128, 0.9);
}

.message.critical {
  background-color: rgba(255, 128, 128, 0.9);
}

.linkGroup, .folder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.linkGroup a {
  margin: 2px 17px 4px 17px;
  padding: 10px;
  box-shadow: 0 2px 4px 0 var(--secondary-color);
  min-width: 57px;
  max-width: 114px;
  min-height: 57px;
  overflow-wrap: normal;
  overflow-x: hidden;
  text-decoration: underline;
  color: var(--primary-link-color);
  background-color: rgba(157, 157, 157, 0.95);
}

.linkGroup a:hover {
  border-radius: 9px;
  -moz-animation: neonBox 2.5s ease-in-out infinite alternate;
  animation: neonBox 2.5s ease-in-out infinite alternate;
  color: #fff;
  text-decoration: none;
}

.link-with-favicon-image {
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 29px;
  background-blend-mode: lighten;
  text-decoration: none;
}

.link-with-favicon-image:hover {
  text-decoration: underline;
  background-size: 0px;
}

div a.block,
div .block {
  margin: 7px;
  display: inline-block;
  padding: 13px;
  box-shadow: 0 2px 4px 0 #000;
  overflow-wrap: break-word;
  overflow-x: hidden;
  text-decoration: none;
  font-size: 0.9em;
  border: 1px solid blue;
}

div a.block:hover,
div .block:hover {
  border-radius: 9px;
  box-shadow: 0 2px 4px 0 blue;
  -moz-animation: neonBox 2.5s ease-in-out infinite alternate;
  animation: neonBox 2.5s ease-in-out infinite alternate;
}

.controls {
  background: rgba(125,0,125,.19);
  border: 1px solid var(--primary-color);
  border-radius: 7px;
  margin: 5px;
  padding: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #000;
}

td,
th {
  padding: 8px;
  text-align: center;
}

tr:nth-child(even) {
  background-color: lightgray;

}

th {
  color: black;
  text-align: center;
}

tr:hover {
  border: 1px solid var(--primary-color);
}

.copy-btn,
.small-btn {
  padding: 2px;
  border-width: 1px;
  border-radius: 7px;
}

input[type="submit"],
input[type="button"],
button,
.shareButton,
.button {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0);
  border: 2px solid var(--primary-color);
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 19px;
  margin-right: 5px;
  margin-left: 5px;
  box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.copy-btn:hover,
.small-btn:hover {
  border-width: 1px;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.shareButton:hover,
.button:hover {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 3px rgb(0, 0, 0);
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

form input[type="submit"],
form input[type="button"],
form button,
form .shareButton,
form .button {
  border-radius: 12px;
  padding: 5px;
  margin: 5px;
  font-size: 16px;
  color: #ccc;
}

input[readonly] {
  background-color: lightred;
}

form {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 5px;
  box-shadow: 2px 2px 6px rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.55);
  padding: 15px;
}

form label {
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 0.05em;
}

input,
select,
textarea {
  display: block;
  text-align: center;
  width: 75%;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-sizing: border-box;
  margin: auto;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

form *[required] {
  border: 2px solid var(--primary-color);
}

.flexBreak {
  width: 100%;
}

hr.flexBreak {
  height: 0px;
}

.folder { 
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 24px; 
    background-color: rgba(128,128,128,1); 
    border: 3px solid; 
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); 
    position: relative; 
    overflow: hidden; 
} 
 
.folder::before { 
    content: ''; 
    position: absolute; 
    right: -13px; /* Adjust as needed */ 
    top: -14px;   /* Adjust as needed */ 
    width: 60px;  /* Adjust as needed */ 
    height: 20px; /* Adjust as needed */ 
    background-color: rgba(128,128,128,1); 
    border-bottom-left-radius: 45px; 
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); 
    transform: rotate(45deg); 
} 
 
@media (min-width: 1080px) {
  #contentWrapper {
  display: flex;
  flex-direction: row;
}
  
  #header {
  justify-content: left;

}
}

.readMe p {
  margin: 1em 0;
  padding: initial;
}

.readMe h1, .readMe h2, .readMe h3, .readMe h4, .readMe h5, .readMe h6 {
  margin: 0.67em 0;
  padding: initial;
}

.readMe a {
  margin: initial;
  padding: initial;
}

.readMe ol, .readMe ul {
  margin: 1em 0;
  padding-left: 40px;
}

.readMe li {
  margin: initial;
  padding: initial;
}

.memeHolder img,
#memeHolder img {
  border: 2px ridge lightblue;
  cursor: pointer;
}

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

#lightbox img {
  max-width: 80%;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.spoiler {
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px);
  transition: all 0.2s ease;
  user-select: none;
}

.spoiler:hover {
  -webkit-filter: none;
  -moz-filter: none;
  -o-filter: none;
  -ms-filter: none;
  filter: none;
}

.week {
  padding: 57px;
}

.note {
  background-color: #e7f7e9;
  padding: 10px;
  margin-bottom: 20px;
  border-left: 5px solid #3fa83f;
}

.todo li {
  list-style: none; /* remove the default bullet */
}

.todo li input[type="checkbox"] {
  display: none; /* hide the default checkbox */
}

.todo li::before {
  content: ""; /* create a custom checkbox */
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1px solid black;
  vertical-align: middle;
}

.todo li input[type="checkbox"]:checked + label::before {
  background-color: green; /* change the background color when checked */
}

a[target='_blank']:after {
  content: ' \29C9';
}