.sheet .controls {
  display: flex;
  background: #ffffff;
  flex-direction: column;
  justify-content: space-between;
  align-content: stretch;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 90%;
  padding: 15px 15px;
  z-index: 2;
  height: 70px;
  border-bottom: 0.3px solid #f5f5f5;
  margin: 0px auto;
}
.sheet .contents {
    display: flex;
    flex-direction: column;
    border-radius: 40px 40px 0px 0px;
    background: #fff;
    overflow-y: hidden;
    --default-transitions: transform 0.5s, border-radius 0.5s;
    transition: var(--default-transitions);
    transform: translateY(0);
    max-width: 100vw;
    max-height: 100vh;
    height: 50vh;
    box-sizing: border-box;
    width: 100vw;
    box-shadow: 2px -100px 100px 100px rgba(0,0,0,0.1);
    overscroll-behavior:contain;
}
  .sheet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;    
    position: fixed;  
    top: 0;  
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    visibility: visible;
    transition: all 0.3s ease-out;
    overscroll-behavior: contain;
  }
  
  .sheet[aria-hidden="true"] {
    top:100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .sheet .overlay {
    position: absolute;  
    top: 0;    
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: var(--overlay);
    opacity: 0.5;
  }

  a {
    color: #769fcd;
      text-decoration: none;
      font-weight: bold;
  }
 
  
  
  .sheet .contents:not(.not-selectable) {
    transition: var(--default-transitions), height 0.5s;
    box-shadow: 2px -1px 20px 0px rgba(0,0,0,0.1);
  }
  
  .sheet .contents.fullscreen {
    border-radius: 0;
  }
  
  .sheet[aria-hidden="false"] .contents {
    transform: translateY(100%);
    opacity:1;
    box-shadow: 2px -1px 10px 0px rgba(0,0,0,0.1);
  }
  
  
  
  .sheet .draggable-area {
    width: 5rem;
    margin: auto;
    padding: 1rem;
    cursor: grab;
    height: 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    
    justify-content: flex-start;
    align-items: center;
}
  
  .sheet .draggable-thumb {
    width: 100%;
    height: 0.15rem;
    background: #f2f4f57a;
    border-radius: 1.125rem;
    opacity: 0.6;
    box-shadow: inset 1px 0px 19px 20px rgba(0,0,0,0.1);
}
  


.sheet .close-sheet {
    border: none;
    padding: 0.7rem;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    border-radius: 100%;
    opacity:0.1
}

#sheet > div.contents > header > button > img{
  opacity:0.2;
}

#sheet > div.contents > header > button > img:hover{
  opacity:0.4
}
  
  .sheet .body {
    flex-grow: 1;
    height: 100%;
  
    display: flex;
    flex-direction: column;
  
    overflow-y: auto;
    gap: 1rem;
  
    padding: 1rem;
    box-sizing: border-box;
  }
  
  form {
    gap: 1rem;
  }
  
  .sheet .body::-webkit-scrollbar {
    
  
    display: none;
    
  }
