body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #ffffff;
    margin: 0;
    padding: 20px 0;
    max-width: 600px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    margin-top: 0;
}

.container {
    background: #1f1f1f;
    padding: 20px
}

.card {
    background: #2b2b2b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.javascript-warning {
    border-left: 4px solid #ffb300;
    color: #fff3cd;
}

.card h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.card-event {
    display: flex;
    gap: 24px;
}

.event-info,
.owner-profile {
    flex: 1;
    min-width: 0;
}

.owner-profile {
    border-left: 1px solid #555;
    padding-left: 24px;
}

.owner-profile h3 {
    margin-bottom: 8px;
}

.owner-profile-image {
    display: block;
    height: 100px;
    margin: 12px 0;
    max-width: 100px;
    object-fit: cover;
    width: 100px;
}

.social-link {
    align-items: center;
    border: 1px solid #777;
    color: #ffffff;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    margin: 8px 8px 0 0;
    width: 32px;
}

.social-icon {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.social-link:last-child .social-icon path {
    fill: currentColor;
    stroke: none;
}

.event-rules {
    background: #3b2f13;
    border-left: 4px solid #ffb300;
    border-radius: 4px;
    color: #fff3cd;
    margin: 0 0 16px;
    padding: 12px 14px;
}

.event-rules h3 {
    color: #ffca28;
    font-size: 16px;
    margin: 0 0 8px;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
}

button {
    padding: 10px 15px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    background: #333;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.actions {
    white-space: nowrap;
}

.btn {
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
    color: white;
    border-radius: 4px;
    margin-right: 4px;
    font-size: 13px;
}

.btn-play {
    background: #2196f3;
}

.btn-done {
    background: #4caf50;
}

.btn-duet {
    background: #ff9800;
}

.btn-cancel {
    background: #f44336;
}

.small {
    color: #cccccc;
    font-size: 12px;
}

.url-box {
    word-break: break-all;
    background: #161616;
    padding: 10px;
    border-radius: 5px;
}

.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
}


.modal-content {
    position: fixed;
    max-width: 20%;
    top: 40%;
    left: 40%;
    padding: 30px;
    background: black;
    width: 20%;
    height: calc(20% + 30px);
    max-height: calc(20% + 30px);
    display: flex;
    flex-direction: column;
    border: orange 4px solid;
}

select#duetUserSelect {
    font-size: 20px;
    line-height: 30px;
    min-height: 30px;
}

.card.evento-attivo {
    display: flex;
}

.evento-attivo .left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.evento-attivo .left h2 {
    margin: 0;
}

.card.evento-attivo .right {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 180px;
    width: 50%;
}

.evento-attivo .title {
    font-size: 24px;
}

.evento-attivo .nome-evento {
    font-size: 22px;
}

.event-qr {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
}

.event-qr img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    justify-self: right;
}

.card-playing {
    background: #203820;
    border-left: 4px solid green;
}

.card-next-performance {
    border-left: 4px solid orange;
}

.card-requests {
    border-left: 4px solid salmon;
}

.requests-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.requests-heading h2 {
    margin-bottom: 0;
}

.requests-count {
    color: #ffb300;
    white-space: nowrap;
}

.request-feedback {
    background: #163d25;
    border: 1px solid #42c779;
    border-radius: 4px;
    color: #b8ffd1;
    padding: 10px;
}

.request-feedback-error {
    background: #4b2020;
    border-color: #f08080;
    color: #ffd0d0;
}

.request-feedback-visible {
    animation: request-feedback-fade 6000ms ease forwards;
}

@keyframes request-feedback-fade {

    0%,
    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.card-add-request {
    border-left: 4px solid cyan;
}

.card-playing-self {
    background: #0b4d0b;
    border: 2px solid #00ff88;
}

.booking-block-modal {
    align-items: center;
    background: rgb(0 0 0 / 75%);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 10;
}

.booking-block-modal[hidden] {
    display: none;
}

.booking-block-modal-content {
    background: #3b2f13;
    border: 2px solid #ffb300;
    border-radius: 8px;
    box-sizing: border-box;
    color: #fff3cd;
    max-width: 520px;
    padding: 24px;
    width: 100%;
}

.booking-block-modal-content button {
    margin-top: 8px;
}

#addRequestButton:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 680px) {
    .card-event {
        display: block;
    }

    .owner-profile {
        border-left: 0;
        border-top: 1px solid #555;
        margin-top: 20px;
        padding-left: 0;
        padding-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .owner-profile h3,
    .owner-profile strong {
        width: 50%;
        font-size: 18px;
    }

    .owner-profile-image {
        width: 75px;
        height: 75px;
        margin: 0;
        margin-left: calc(50% - 40px);
    }

    .social-link {
        align-self: center;
    }
}

.event-closed {
    border-left: 4px solid #42c779;
}

.event-summary {
    border-top: 1px solid #555;
    margin-top: 20px;
    padding-top: 12px;
}