body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
}

#app {
    width: 100%;
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
}

#soundSelector {
    padding: 5px;
}

#controlPanel {
    padding: 20px;
}

#xyPad {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

#sliderBox {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.parameter-control {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.parameter-control label {
    flex: 1;
}

.parameter-control input[type="range"] {
    flex: 2;
    margin: 0 10px;
}

.parameter-control select {
    width: 80px;
}

.parameter-value {
    width: 50px;
    text-align: right;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;

    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE10+ */
    -webkit-tap-highlight-color: transparent; /* optional mobile polish */
}

button:hover {
    background-color: #45a049;
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
}

#motion-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#motion-permission-modal .modal-content {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    font-family: sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#motion-allow-button {
    font-size: 16px;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
}