/* General */
body {
    background-color: #004C5B;
    color: #fff;
    font-size: 15px;
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
    display: block!important;
    height: 100vh;
}
button, 
.button, 
a.button, 
input[type=submit], 
input[type=reset], 
input[type=button], 
label[type=button] {
    border: 1px solid #fff;
    background-color: transparent;
    color: #fff!important;
}

button:enabled:hover, 
.button:not([aria-disabled=true]):hover, 
input[type=submit]:enabled:hover, 
input[type=reset]:enabled:hover, 
input[type=button]:enabled:hover, 
label[type=button]:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000!important;
}
ul {
    text-align: left;
    list-style: none;
}

/* Utilities */
.hidden {
    display: none;
}
.visible {
    display: block;
}
.disabled {
    pointer-events: none;
}

/* Header */
header {
    background-color: #004C5B!important;
    color: #fff;
    padding: 40px 20px 0!important;
    margin-bottom: 20px;
    border-bottom: 0!important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    width: 200px;
    text-align: right;
}
.logo img {
    width: 50px;
}
.logo-big img {
    width: 200px;
}

/* Body */
section {
    border: 0!important;
    margin-top: 1rem!important;
    padding-top: 0!important;
}

/* Video Html5 */
.video-container {
    position: relative;
    max-width: 1280px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 20px); /* Riduci la larghezza tenendo conto del padding */
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}
button#play {
    background-color: #ff0000!important;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
}
button#play:hover {
    background-color: #ff0000!important;
    border: none;
    color: white!important;
    opacity: 0.8;
}
#custom-video {
    border: 5px solid grey;
}

/* Funnel */
/* #pulsanti-funnel {
    margin-top: 20px;
} */
#pulsanti-funnel button {
    margin: 5px 15px;
    width: 240px;
}
#pulsanti-funnel.disabled button {
    border: 1px solid grey!important;
    background-color: transparent!important;
}
#pulsanti-funnel.disabled a {
    color: grey;
    text-decoration: none;
}
#pulsanti-funnel.active a {
    color: #fff;
    text-decoration: none;
}
#pulsanti-funnel.active a:hover,
#pulsanti-funnel.active button:hover a {
    color: #000;
}
#pulsanti-funnel.active button {
    border: 1px solid #fff!important;
    background-color: transparent!important;
}
#pulsanti-funnel.active button:hover {
    border: 1px solid #fff!important;
    background-color: #fff!important;
    color: #000;
}

/* Chat */
#chat-box {
    border: 1px solid #fff;
    background: #fff;
    color: #000;
    margin: 0 20px 30px;
    padding: 30px;
    border-radius: var(--standard-border-radius);
    text-align: left;
    max-height: 400px;
    overflow-y: scroll;
}

#chat-form {
    margin: 0 20px;
}

#chat-form textarea {
    width: 100%;
}

.calendar {
    background-color: #fff;
}

.title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-chat {
    display: flex;
    align-items: center;
}

.title-chat img {
    height: 78px;
}

.title-chat h1 {
    font-weight: 300;
}

.time {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timeout {
    background: #D0D8DB;
    color: #000;
    padding: 10px;
    border-radius: 10px;
}

.timeout span {
    color: red;
}

.title-empty,
.time {
    width: 25%;
}

.down-icon {
    margin-top: -30px;
    margin-bottom: -30px;
}

.down-icon img {
    filter: invert(1);
    height: 30px;
}

/* Tooltip che appare inizialmente e viene poi nascosto */
.tooltip {
    visibility: visible;
    width: 200px;
    background-color: grey;
    color: #fff;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: -61px;
    left: 50%;
    margin-left: -100px;
    opacity: 1;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip.hidden {
    visibility: hidden;
    opacity: 0;
}

.tooltip.visible {
    visibility: visible;
    opacity: 1;
}

/* Freccia del tooltip */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: grey transparent transparent transparent;
}

/* Mobile */
@media (max-width: 780px) {
    #pulsanti-funnel button {
        width: 200px;
        font-size: 13px;
    }

    .title-wrap {
        flex-direction: column;
        margin: 0 20px;
    }

    .title-chat img {
        height: 50px;
    }

    .title-wrap h1 {
        font-size: 30px;
    }

    .time {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
    }
  }