/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

@font-face {
  font-family: 'Rosevine';
  src: url(./fonts/Rosevine.otf) format('opentype');
  font-weight: normal;
  font-style: normal;
}

@keyframes float {
  0% {
      transform: rotate(0deg);
  }

  50% {
      transform: rotate(3deg);
  }

  100% {
      transform: rotate(0deg);
  }
}

html, body {
  background-color: var(--light);
  color: var(--dark);
  font-family: monospace;
  font-size: 12px;
}

:root {
	--light: #fceacd;
  --dark: #172241;
  --blue: #1B3B69;
  --accent: #FF0000;
  --drop-shadow-style: drop-shadow(0.3rem 0.3rem 0rem var(--blue));
}

::selection {
  background: var(--accent);
  color: white;
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent);
  color: white;
  text-shadow: none;
}

/* TEXT STUFF */

.title {
  position: relative;
  z-index: 3;
  height: auto;
  top: -32px;
  margin-bottom: -30px;
}

h1 {
  font-family: 'Rosevine';
  font-size:72px;
  margin: 20px 0px 15px 0px;
  border-bottom: 1px dashed var(--dark);
}

h2 {
  text-transform: uppercase;
  text-align: center;
  font-size: 24px;
  background-color: var(--blue);
  color: rgb(252, 249, 245);
  border: 1px dotted var(--blue);
  padding: 0.3rem 0.7rem 0.5rem 0.7rem;
  margin: 5px;
  margin-top: 15px;
  margin-bottom: 15px;
  line-height:1.4rem;
}

h3 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 0px;
  margin-bottom: 5px;
  border:1px solid var(--dark);
  padding: 3px 3px 3px 12px;
  color: var(--light);
  background-color: var(--blue);
  position:relative;
  width: 80%;
  z-index: 3;
  margin-top: -0.9rem;
  margin-left: -1rem;
  filter:none;
}

ul {
  margin-top:0.5rem;
  margin-bottom:0.5rem;
}

li {
  margin-left: -2rem;
  padding-left: 0.5rem;
  list-style-type: "▸";
}

li::marker{
  font-size: 1.2rem;
}

a {
  color: var(--accent);
}

blockquote {
  border-left: 1px dashed var(--dark);
  padding-left: 15px;
  margin-right: 10px;
  margin-left: 10px;
}

/* CONTAINERS */

.wrapper {
  position: relative;
  width: 700px;
  margin-left:auto;
  margin-right:auto;
  margin-top:5rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sidebar {
  position: sticky;
  top: 5rem;
  width: 210px;
}

.main {
  position: relative;
  flex: 1;
  width: calc(100% - 220px);
  padding-bottom:5rem;
}

/* BOXES AND ELEMENTS */

.box {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px dotted var(--blue);
  padding: 0.3rem 0.7rem 0.5rem 0.7rem;
  margin: 5px;
  margin-top: 10px;
  margin-bottom: 15px;
  line-height:1.4rem;
  position: relative;
}

.box p {
  margin-bottom: 0px;
}

.sesame img {
  height: 95%;
  width: 95%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  image-rendering:pixelated;
  filter: var(--drop-shadow-style);
}

.sesame:hover {
  animation: float 3s ease-in-out infinite;
  cursor:pointer;
}

.imagebox {
  background-color: transparent;
  padding: 0rem;
  margin: 5px;
}

.imagebox img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  image-rendering:pixelated;
}

.flex {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 5px;
  width:100%;
}

.flex-item {
  flex: 1 fit-content;
}

/* ACTIVITY LOG */

.collection:has(input:checked) span {
  display: none;
}

.collection:has(#all:checked) span {
  display: inherit;
}

.collection:has(#fav:checked) span[class~="fav"] {
  display: inherit;
}

.collection:has(#film:checked) span[class~="film"] {
  display: inherit;
}

.collection:has(#tv:checked) span[class~="tv"] {
  display: inherit;
}

.collection:has(#stage:checked) span[class~="stage"] {
  display: inherit;
}

.collection:has(#book:checked) span[class~="book"] {
  display: inherit;
}

.collection:has(#game:checked) span[class~="game"] {
  display: inherit;
}

.filters {
  text-transform: uppercase;
}

.radio-color[type="radio"] {
  accent-color: var(--accent);
}

.log {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 4px;
  width:100%;
}

.log-item {
  flex: 1 fit-content;
}

.log-item-title {
  text-transform:uppercase;
  font-weight:bold;
  text-decoration:1px dashed underline var(--blue);
  text-underline-offset: 0.2rem;
  margin-right: 3px;
}

.log-item-icon {
  text-transform:uppercase;
  font-weight:bold;
  font-size: 15px;
  padding-right: 4px;
  margin-left: -1px;
  padding-top: 4px;
  display: flex;
  color: var(--dark);
}

.log-item-fav {
  text-align: right;
  background-color: var(--blue);
  color: var(--light);
  height: 1.5rem;
  position:absolute;
  padding-right: 5px;
  padding-left: 5px;
  margin-left: 424px;
  margin-top: 0px;
}

.log-item-button {
  position: absolute;
  display: inline-block;
  cursor: pointer;
  padding-right: 6px;
  padding-left: 3px;
  margin-left: 445px;
  font-size: 16px;
  bottom: 0px;
  color: var(--accent);
}

.log-item-notes {
  visibility: hidden;
  width: 220px;
  background-color: var(--dark);
  border: 1px solid var(--light);
  color: #ffffff;
  text-align: left;
  padding: 7px 10px 7px 10px;
  margin-left: 10px;
  position: absolute;
  font-size: 12px !important;
  z-index: 100;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 15px;
}

.log-item-notes::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: var(--dark);
}

.log-item-notes ul {
  margin-left:-5px;
}

.log-item-button:hover .log-item-notes {
  visibility: visible;
}

.log-item-button[data-active='true'] .log-item-notes {
      visibility: visible;
      opacity: 1;
 }