.icon.play-toggle a:hover i,
.icon.cinema-mode a:hover i {
  background-color: #444b5a;
  cursor: pointer;
}
html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #333;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
}


.title {
	color: #ddd;
	font-size: 38px;
	user-select: none;
	text-align: center;
	padding: 10px 0;
	height: 50px;
	cursor: pointer;
  margin: 0 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title label {
	cursor: pointer;
}

.title input {
	display: none;
	background: transparent;
	border: 0px;
	color: #ddd;
	font-size: 38px;
}

.title input:focus {
	background: #666;
}

#dropdown {
    width: 206px;
    height: 50px;
    font-size: 20px;
}

#dropdowntype {
    width: 103px;
    height: 25px;
    font-size: 15px;
}

.main-content {
	display: flex;
	flex-direction: column !important;
	flex-flow: row;
	padding: 0 10px 10px 10px;
	flex-grow: 1;
}

.tierlist {
	width: 80%;
}

.tierlist .header {
	min-width: 100px;
	min-height: 120px;
	display: flex;
	align-items: center;
	flex-flow: row;
	font-size: 30px;
	font-family: sans-serif;
	border: 0;
	padding: 0;
}

.tierlist div.row {
	border: 0px solid #666;
	border-top-width: 1px;
	border-right-width: 1px;
	display: flex;
	user-select: none;
}

.tierlist div:last-child {
	border-bottom-width: 1px !important;
}

.tierlist div.row:hover {
	opacity: 1;
}

.tierlist div.row.drag-entered {
	background-color: #888;
}

span.header {
	justify-content: center;
	align-self: stretch;
	cursor: pointer;
}

span.header label {
	cursor: pointer;
}

span.header input[type=text] {
	display: none;
	height: 50px;
	font-size: 30px;
	text-align: center;
}

span.items {
	display: flex;
	flex-wrap: wrap;
	flex-grow: 1;
	justify-content: left;
	pointer-events: none;
	height: fit-content;
}

span.item {
	pointer-events: auto;
}

.images {
	display: flex;
	height: 100%;
	overflow-y: auto;
	flex-wrap: wrap;
	flex-grow: 1;
	width: 100%;
	align-content: flex-start;
	margin-top: 10px;
}

.images.drag-entered {
	background-color: #888;
}

img.draggable {
	cursor: grab;
	width: 100px;
	height: 120px;
}

img.draggable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    transition: 200ms ease-in-out;
}

.button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    transition: background-color 200ms linear, transform 200ms ease-in-out, box-shadow 200ms ease-in-out;
}

img.draggable.dragged, .button:active {
	filter: brightness(0.4);
}

.button img {
	user-select: none;
}

.first-container {
	display: flex;
}

.bottom-container {
	display: flex;
	flex-flow: column;
	align-items: center;
	width: 310px;
	flex: 1;
	padding: 0px 5px;
	align-self: center;
	gap: 10px 0;
}

.bottom-container input {
	border: 0;
	padding: 0;
	display: none;
}

#search-input {
	display: block;
	background: transparent;
	border: 0px;
	color: #ddd;
	width: 202px;
}

.header label {
	padding: 10px;
}

.header label:empty {
	min-width: 50px;
	min-height: 50px;
}

.button.export {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ccc;
    min-width: 100px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content button {
    display: block;
    width: 100%;
    padding: 8px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.dropdown-content button:hover {
    background-color: #f0f0f0;
}

.bottom-container > div {
	margin: 0;
}

.button {
	height: 100px;
	border: 1px solid #666;
	margin: 1px;
}

.title-img {
    position: absolute;
    opacity: 0;
	left: 0px;
	overflow: clip;
	word-break: break-all;
	font-size: 1px;
}

.highlight {
    filter: none;
}

.image-container img.grayed {
    filter: grayscale(100%) brightness(0.5);
}


.image-container {
  height: 120px;
	width: 100px;
	overflow: hidden;
  position: relative;
}

.row-buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-evenly;
	opacity: 0.2;
	transition: 200ms linear;
}

.images.bank.droppabled:empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.images.bank.droppabled:empty::before {
	content: "\f093    Drag and drop images here";
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	font-size: 28px;
	color: white;
	display: block;
	margin-bottom: 10px;
	text-align: center;
	opacity: .2;
	position: absolute;
}

.row-buttons:hover {
	opacity: 1;
	transition: 200ms linear;
}

.buttons-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1000px) { 
    .buttons-container {
        grid-template-columns: 1fr; /* 1 seule colonne */
    }
}

.gh-link {
	position: absolute;
	top: 5px;
	color: #ccc;
	text-decoration: none;
}

.export {
	opacity: 0.4;
}

#trash {
	height: 90px;
	opacity: 0.4;
	padding: 5px;
}

.bank {
	width: 100%;
	min-height: 120px;
	border: 1px solid #666;
}

.hint {
	font-style: italic;
	font-size: small;
	color: #ccc;
}


.github-corner:hover .octo-arm {
	animation: octocat-wave 560ms ease-in-out
  }

  .github-corner {
	  cursor: pointer;
  }

  @keyframes octocat-wave {

	0%,
	100% {
	  transform: rotate(0)
	}

	20%,
	60% {
	  transform: rotate(-25deg)
	}

	40%,
	80% {
	  transform: rotate(10deg)
	}
  }

  @media (max-width:500px) {
	.github-corner:hover .octo-arm {
	  animation: none
	}

	.github-corner .octo-arm {
	  animation: octocat-wave 560ms ease-in-out
	}
  }

#toggle-shortcuts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  z-index: 1001;
  border: none;
}

#shortcuts-box {
  max-width: 680px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 17px;
  color: #f5f5f5;
  border-color: black;
  padding: 1rem;
  border-radius: 12px;
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.shortcut-row {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  margin-bottom: 0.6rem;
  gap: 10px;
  white-space: nowrap;
}

.keys kbd.kbc-button {
  min-width: 50px;
  display: inline-block;
  text-align: center;
  font-size: 18px;
  font-weight: bold;;
}

.keys {
  flex-shrink: 0;
  width: 240px;
}

.desc {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.shortcut-section-title {
  font-weight: bold;
  text-decoration: underline;
  margin: 0 0 0.6rem;
  width: 100%;
  text-align: center;
  font-size: 20px;
}

.shortcuts-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-weight: bold;;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
}
.shortcuts-close:hover {
  color: #fff;
}

.custom-season-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
  max-width: 400px;
  margin: auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-season-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  color: black;
  border: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.12);
  padding: 10px 25px;
  max-width: 100px;
  border-radius: 12px;
  overflow: hidden;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.custom-season-cell:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  filter: brightness(1.07);
}

.custom-season-cell.selected {
  outline: 2px solid #234b87;
  outline-offset: 1px;
}

.custom-season-cell:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

.custom-season-cell.winter {
  background-color: #cce7ff;
  color: #005b96;
  text-shadow: 0 0 3px #bbdefb;
  overflow: visible;
  position: relative;
}

.custom-season-cell.winter::before,
.custom-season-cell.winter::after,
.custom-season-cell.winter span.snow-layer {
  position: absolute;
  top: -20px;
  user-select: none;
  pointer-events: none;
  color: #fff;
  text-shadow:
    0 0 4px #e0f2ff,
    0 0 8px #a9d1ff;
  white-space: nowrap;
  content: "❄";
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
}

/* biggest snowflake */
.custom-season-cell.winter::before {
  left: 10px;
  font-size: 25px;
  animation-name: snow-fall-1;
  animation-duration: 7s;
  animation-delay: 0s;
}

/* medium snowflake */
.custom-season-cell.winter::after {
  left: 55px;
  font-size: 22px;
  animation-name: snow-fall-2;
  animation-duration: 9s;
  animation-delay: 3s;
}

/* smallest snowflake */
.custom-season-cell.winter span.snow-layer {
  left: 90px;
  font-size: 19px;
  animation-name: snow-fall-3;
  animation-duration: 8s;
  animation-delay: 5s;
  position: absolute;
  top: -20px;
}

/* Animations with fade in/out */
@keyframes snow-fall-1 {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(50px) translateX(15px); opacity: 0; }
}

@keyframes snow-fall-2 {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(60px) translateX(-10px); opacity: 0; }
}

@keyframes snow-fall-3 {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(55px) translateX(10px); opacity: 0; }
}
/* Spring */
.custom-season-cell.spring {
  background-color: #d4f1be;
  color: #33691e;
  text-shadow: 0 0 3px #a6d785;
}

.custom-season-cell.spring::before {
  content: "✿ ✿";
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 25px;
  color: #a3d977;
  opacity: 0.7;
  animation: float-petal 4s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

/* Summer */
.custom-season-cell.summer {
  background-color: #fff3b0;
  color: #b35700;
  text-shadow: 0 0 4px #ffe899;
}

.custom-season-cell.summer::before {
  content: "☀";
  position: absolute;
  top: -3px;
  right: 2px;
  font-size: 30px;
  color: #ffbb33;
  opacity: 0.8;
  animation: sun-spin 10s linear infinite;
  user-select: none;
  pointer-events: none;
}

/* Fall */
.custom-season-cell.fall {
  background-color: #ffd9a6;
  color: #7a3e00;
  text-shadow: 0 0 4px #ffb84c;
}

.custom-season-cell.fall::before {
  content: "🍁 🍂";
  position: absolute;
  bottom: 6px;
  left: 10px;
  font-size: 25px;
  color: #d9822b;
  opacity: 0.75;
  animation: leaf-fall 6s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

.custom-season-cell.full-year {
  grid-column: 1 / -1;
  max-width: none;
  background: linear-gradient(135deg, #ffe6ef 0%, #ffd3e2 52%, #ffc2d8 100%);
  color: #7a1f45;
  border: 1px solid #e58ab0;
  box-shadow: 0 6px 12px rgba(173, 60, 112, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  letter-spacing: 0.4px;
}

/* Animations */

@keyframes leaf-fall {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.75; }
  50% { transform: translateY(8px) translateX(4px) rotate(15deg); opacity: 1; }
}

@keyframes float-petal {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.7; }
  50% { transform: translateY(-6px) translateX(3px); opacity: 1; }
}

@keyframes sun-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.air-datepicker-body.-months- .air-datepicker-body--cells.-months- {
  display: none !important;
}

.input-wrapper {
position: relative;
width: 180px;
display: inline-block;
}

#seasonPicker {
width: 100%;
padding: 8px 25px 8px 8px; /* less right padding */
font-size: 16px;
box-sizing: border-box;
cursor: pointer;
}

.input-wrapper .arrow {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
color: #555;
font-size: 12px;
user-select: none;
font-weight: bold;
line-height: 1;
}

.custom-season-cell.disabled {
  display: none !important;
}

.custom-season-container:empty::before {
  content: "No seasons available for this year";
  display: block;
  padding: 1em;
  color: #666;
  font-style: italic;
  text-align: center;
}

#seasonPicker::placeholder {
  color: #000;
  opacity: 1;
}

.air-datepicker-cell.-disabled- {
  display: none !important;
}

.badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 3px;
    pointer-events: none;
    font-size: 24px;
}

.color-btn.selected {
  outline: 5px solid white;
  border: none !important;
  outline-offset: 3px;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.color-btn {
    width:40px;
    height:40px;
    border-radius:50%;
    border:3px solid black;
    margin:5px;
    cursor:pointer;
}

body.swal2-shown > [aria-hidden='true'] {
  transition: 0.1s filter;
  filter: blur(10px);
}

.icon a i {
	color: white;
	font-size: 30px;
	padding: 10px;
	background-color: #232830;
	transition: 0.3s;
	border-radius: 5px;
}

.icon a i:hover {
	cursor: pointer;
}

.mal a:hover {
 background-color: #2E51A2;
}
.youtube a i:hover {
	background-color: #FF0000;
}

.animetheme svg:hover {
  transition: 0.3s;
  background-color: #75ead4;
}

.icon.color-selector a:hover i {
    background-color: #ffcc00;
    cursor: pointer;
}

.icon {
  width: 50px;
  height: 50px;
}

.icon a i {
  color: white;
  font-size: 30px;
  padding: 10px;
  background-color: #232830;
  transition: 0.3s;
  border-radius: 5px;
  width: 30px;
}

.si-a {
  display: flex;
	background-color: #232830;
  width: 50px;
  height: 50px;
  transition: 0.3s;
  border-radius: 5px;
}

.si-mal {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background-color: white !important;
  -webkit-mask: url("https://unpkg.com/simple-icons@latest/icons/myanimelist.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask: url("https://unpkg.com/simple-icons@latest/icons/myanimelist.svg") no-repeat center;
    mask-size: auto;
  mask-size: contain;
  margin: auto;
  align-self: center;
}

.fa-no-width {
  width: auto !important;
}

.avatar-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.avatar {
    height: 50px;
    cursor: pointer;
}
