

.presentation .block > .cards > .card{
  aspect-ratio: 4/3;
  width: 400px;
}

.write .block > .cards > .card{
  aspect-ratio: 2/3;
  width: 250px;
}

.notes .block > .cards > .card{
  width: 350px;
}

.simplelist{margin: 15px 0 0; font-size: 1.2rem; line-height: 1.3rem;}
.simplelist li{display: flex; gap: 10px; padding: 10px 0;}
.simplelist li .title{flex: 1;opacity: .8;}
.simplelist li input[type="checkbox"]:checked ~ span{opacity: .2; text-decoration: line-through;}
.simplelist li button{border: 0; background: transparent; padding: 0; font-size: 1.2rem; line-height: 1.3rem;opacity: 0; visibility: none; transition: all 0.2s; margin-top: -5px;}
.simplelist li:hover button{opacity: 1; visibility: visible;}

.buttons.set{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: var(--radius);
    gap: 2px;
    padding: 2px;

    & > li{
      flex-direction: row-reverse;
    }

    .button{
      background: transparent;
      opacity: .2;
    }

    &:hover{
      background: rgba(0,0,0,.05);

      .button{
        opacity: 1;
      }
    }
}

.sticky-top-right{
  position: sticky;
  top: 0;
  right: 0;
  float: right;
}

.sticky-top-right .btn{
  margin: -20px -20px 0 0;
}

.absolute-top-right{
  position: absolute;
  top: 0;
  right: 0;
}

.pull-top-right{
  float: right;
  margin-left: 10px;
}

.add-form{ 
  margin-top: 20px; border-radius: 100px; background: #fff; display: inline-flex; 
  
  input{background: transparent; border: 0; font-size: 1rem; border-radius: 100px;} 
}

label.add-form input { width: 0; opacity: 0; padding: 0; transition: width 0.3s ease, opacity 0.2s ease, padding 0.3s ease; }

label.add-form:focus-within input:focus, label.add-form:focus-within input:first-child { width: 180px; opacity: 1; padding: 20px; outline: none; }
label.add-form:focus-within input:first-child{width: fit-contents;}

label.add-form .button{ background: transparent; }

label.add-form .button{ transform: scale(1.1); pointer-events: none;}

label.add-form:focus-within .button{ background: #f6f6f6; color: #000000; transform: scale(1); margin: 10px;pointer-events: auto;}

.card .add-form{ background: #f6f6f6; input{font-size: 1.15rem} } .card .add-form:focus-within .button{ background: #ffffff}

/* Hide native styling
input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0,0,0,.1);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  top: -3px;
}

input[type="checkbox"]:checked {
  background-color: #ff0075;
  border-color: #ff0075;
}

input[type="checkbox"]:checked::before {
  content: '✔';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */

.expanded .cards .card{
      overflow:visibile;
      display: block;
    }
    .expanded .add-card{
      overflow:visibile;
      display: inline-flex;
    }
    .expanded .container > h2, .expanded > h3{
      font-size: 40px !important;
    }

    .expanded{
      background: #000 !important;
      z-index: 999;
      padding: 100px !important;
      overflow: auto;
    }
    .expanded > .cards > .card{min-width: 300px}

    .expanded > .cards > .card{
      padding: 50px;
    }

    /* Hide the checkbox visually, but keep it accessible for screen readers */
.toggle-checkbox[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Style the content to be initially hidden */
.toggle-content {
  display: none;
  /* Add your transition for a smooth effect if desired */
}

/* When the checkbox is checked, show the content */
.toggle-checkbox:checked ~ .toggle-content {
  display: block; /* or flex, grid, etc. */
}


.cards{
  display: flex;
  list-style:none;
  gap: 20px;
  flex-wrap: wrap;
  padding-top:20px;
}
.card{
  background: rgba(0, 0, 0, 0.06);
  padding: 20px;
  border-radius: 20px;
  flex: 1;
  min-width: 200px;
  transition: all var(--transition);

  h2, h3{font-size: 24px;}
}
.cards .cards .card, .add-card{
  overflow:hidden;
  display: none;
}

.card > .sticky-top-right, .block > .sticky-top-right{opacity: 0; pointer-events: none; margin: -20px;}
.card:hover > .sticky-top-right,.block:hover > .sticky-top-right{opacity: .8; pointer-events: auto;}

.block{max-width: none;}
.block + .block{margin-top: 30px;}

panel[menu]{background: transparent; padding: 5px 20px 0;}