*{
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    box-sizing: border-box;
  }

.background{
        position: fixed;
        inset: 0;
        display: block;
        width: 100vw;
        height: 100vh;
    height: 100dvh;
        max-width: none;
    object-fit: fill;
        z-index: -1;
    pointer-events: none;
      }

.search-box{
        width:550px;
        background: #fff;
        margin: 100px;
        top: 0px;
        border-radius: 15px;
        position: absolute;
        right: 4%;
        padding: 5px;
        border: 1px solid lightgray;
  z-index: 10;
      }

.row{
        display: flex;
        align-items: center;
        padding: 10px 20px;
      }

input{
        flex: 1;
        height: 45px;
        background: transparent;
        border: 0;
        outline: 0;
        font-size: 26px;
        color: #303030;
      }

button{
        background: transparent;
        border: 0;
        outline: 0;
      }

button .fa-solid{
        width: 25px;
        color: #232323;
        font-size: 36px;
        cursor: pointer;
      }

.search-box button{
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
      }

::placeholder{
        color: #b4b4b4;
      }

.result-box ul{
        border-top: 1px solid #999;
        padding: 15px 10px;
      }

.result-box ul li{
        list-style: none;
        border-radius: 3px;
        padding: 15px 10px;
        cursor: pointer;
      }

.result-box ul li:hover{
        background: #e9f3ff;
      }

.result-box{
        max-height: 280px;
        overflow-y: scroll;
      }

.acordes-search-box {
        display: none;
      }

.acordes-search-box.open-acordes-search {
        display: block;
      }

.partituras-search-box {
        display: none;
      }

.partituras-search-box.open-partituras-search {
        display: block;
      }

.videos-search-box {
        display: none;
      }

.videos-search-box.open-videos-search {
        display: block;
      }

@media (max-width: 700px){
        body{
          --mobile-top-offset: clamp(24px, 10vh, 84px);
          min-height: 100svh;
          overflow-x: hidden;
          padding: calc(296px + var(--mobile-top-offset)) 12px 24px;
          text-align: center;
        }

        .search-box{
          width: auto;
          margin: 0;
          top: calc(max(12px, env(safe-area-inset-top)) + var(--mobile-top-offset) + 140px) !important;
          left: 82px;
          right: 82px;
          border-radius: 12px;
          padding: 2px;
        }

        .row{
          padding: 5px 8px;
        }

        input{
          min-width: 0;
          height: 44px;
          font-size: 18px;
        }

        button .fa-solid{
          font-size: 24px;
        }

        .result-box{
          max-height: 42svh;
          text-align: left;
          -webkit-overflow-scrolling: touch;
        }

        .result-box ul{
          padding: 8px 6px;
        }

        .result-box ul li{
          padding: 12px 8px;
        }

        .button-indices,
        .button-acordes,
        .button-partituras,
        .button-videos,
        .button-autorias,
        .button-pedidos,
        .button-contacto{
          position: relative;
          top: auto;
          left: auto;
          right: auto;
          display: inline-block;
          width: min(42vw, 240px);
          aspect-ratio: 210 / 61;
          height: auto;
          object-fit: fill;
          margin: 8px 2%;
          vertical-align: middle;
          touch-action: manipulation;
        }

        .button-pedidos,
        .button-contacto{
          width: min(32vw, 180px);
        }

        .autorias-pedidos-row{
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
        }

        .container{
          display: contents;
        }

        .popup{
          position: fixed;
          top: 50%;
          left: 50%;
          width: min(300px, calc(100vw - 32px));
          height: auto;
          min-height: 280px;
          margin: 0;
          z-index: 20;
        }

        .popup button{
          width: calc(100% - 40px);
          min-height: 48px;
          margin: 28px 20px 0;
          padding: 10px;
          font-size: 17px;
          touch-action: manipulation;
        }
}