* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --main-gradient: linear-gradient(
        90deg,
        #004798,
        #573590 25%,
        #c8117d 50%,
        #e5175c 75%,
        #e9581d 100%
    );

    --orange: #e9581d;
}

.hidden {
    display: none !important;
}

a {
    text-decoration: none;
    color: #fff;
}
a:hover {
    text-decoration: underline;
}

img#logo {
    width: 100%;
    height: auto;
}

small {
    font-size: 0.75rem;
}

.text.small {
    font-size: 0.75rem;
}

.disclaimer {
    font-size: 0.85rem !important;
}

body {
    background: var(--main-gradient);
    font-family: "Roboto", sans-serif;
    max-width: 1220px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    min-height: 90vh;
}

header {
    background-color: #fff;
    position: relative;
    user-select: none;
}
header img {
    -webkit-user-drag: none;
}

.disabled {
    pointer-events: none !important;
    opacity: 0.5;
}

.login-user-bar {
    position: absolute;
    color: #fff;
    top: 15px;
    left: 82%;
    display: flex;
    align-items: center;
    height: 30px;
    cursor: pointer;
    font-size: 0.75rem;
}
.login-user-bar.logged-in {
    cursor: default;
}

#logout-user {
    display: none;
}
.login-user-bar.logged-in #logout-user {
    display: block;
    cursor: pointer;
}
.login-user-bar img {
    height: 100%;
    width: auto;
    margin-right: 12px;
}

label {
    padding-left: 1rem;
    margin-bottom: 5px;
}

input,
button {
    height: 3rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 500px;
    color: #fff;
    outline: none;
    padding: 0 1em;
    font-size: 1.5rem;
    margin-bottom: 15px;
    height: 3.5rem;
    width: 100%;
}

button {
    background-color: var(--orange);
    font-weight: bold;
    font-size: 1.65rem;
    border: none;
    cursor: pointer;
}

.form.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 350px;
    max-width: 90%;
    color: #fff;
    margin: 0 auto;
    padding: 40px 0;
}
.form a {
    display: block;
    width: fit-content;
    font-size: 0.8rem;
    margin-left: 1rem;
    margin-top: -5px;
    margin-bottom: 20px;
}
label.keep-signed {
    font-size: 0.8rem;
    display: inline-block;
}
input[type="checkbox"] {
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.75rem;
    display: inline-block;
    accent-color: var(--orange);
    position: relative;
    transform: translateY(0.23rem);
}

.input-group {
    position: relative;
}

.form-group {
    position: relative;
    display: flex;
}

i {
    position: absolute;
    z-index: 5;
    cursor: pointer;
    top: 1.5rem;
    right: 1.5rem;
    transform: translateY(-40%);
}
main {
    display: flex;
}

.main-section {
    width: 75%;
    padding: 25px;
}

.sidebar {
    width: 25%;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
}
.sidebar img {
    width: 100%;
    height: auto;
    display: block;
}
.sidebar img.sidebar-img-h {
    display: none;
}

.form.registration {
    width: 100%;
    margin: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.form-line {
    display: flex;
    justify-content: space-between;
}
.form-line > div {
    width: 48%;
}

.title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--orange);
}

.text {
    color: #fff;
}

button#register {
    max-width: 260px;
    margin-top: 20px;
    align-self: center;
}

/* home */

.home-links {
    display: flex;
    justify-content: flex-end;
    position: relative;
    text-align: right;
    padding-top: 15px;
    flex-wrap: wrap;
}

.btn-link {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 15px;
    margin-bottom: 15px;
    width: 40%;
    min-width: 200px;
    border-radius: 400px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 25px;
    transition: background-color 0.4s ease;
    box-shadow: 0 0 1px 0px rgba(90, 90, 90, 0.5);
    position: relative;
}
.btn-link:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.btn-link img {
    height: 95%;
    width: auto;
    margin-left: 10px;
}

#link-survey span {
    font-size: 0.65rem;
    line-height: 0.6rem;
    display: block;
}

.workshop-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 1px 0px rgba(90, 90, 90, 0.2);
    border-radius: 30px;
    margin-top: 20px;
    padding-bottom: 40px;
    position: relative;
}

.workshop-btns {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding-top: 10px;
    flex-wrap: wrap;
    max-width: 680px;
}

.workshop-btn {
    position: relative;
    display: flex;
    justify-content: space-between;
    border-radius: 10px;
    align-items: center;
    height: 70px;
    padding: 10px 15px;
    margin: 10px 5px;
    max-width: 60%;
    min-width: 300px;
    box-shadow: 0 2px 10px 1px rgba(90, 90, 90, 0.6);
    cursor: pointer;
    transition-property: opacity, transform, box-shadow;
    transition-duration: 0.4s;
    opacity: 0.8;
}

.workshop-btn * {
    pointer-events: none;
}

.workshop-btn.selected,
.workshop-btn:not(.full):hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 2px 20px 3px rgba(90, 90, 90, 0.3);
}
.workshop-btn.selected {
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.workshop-section:not(.workshop-selected) .workshop-btn.full {
    cursor: default;
    opacity: 0.2;
    pointer-events: none;
    box-shadow: none;
    filter: grayscale(100%);
}
.workshop-section.workshop-selected .workshop-btn:not(.selected) {
    filter: grayscale(100%);
    opacity: 0.6;
}

.workshop-btn img {
    height: 90%;
    width: auto;
    margin-left: 10px;
}

.w1 {
    background-color: #0a55a3;
}
.w2 {
    background-color: #60269e;
}
.w3 {
    background-color: #e40073;
}
.w4 {
    background-color: #c016a2;
}
.ws-not-found {
    background-color: grey;
    opacity: 0;
    pointer-events: none;
}

#confirm-workshop {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 300px;
    padding: 0 15px;
    color: #fff;
    box-shadow: 0 1px 6px 0px rgba(90, 90, 90, 0.5);
    border-radius: 300px;
    position: absolute;
    right: 40px;
    bottom: -40px;
    transition: background-color 0.2s ease;
}

button#confirm-workshop:hover {
    background-color: #e9490a;
}
#confirm-workshop img {
    height: 60%;
    width: auto;
    margin-left: 40px;
    position: relative;
    bottom: 2px;
}
#confirm-workshop p {
    position: relative;
    top: 2px;
}

.workshop-section.workshop-selected * {
    pointer-events: none;
}
.workshop-section.workshop-selected #confirm-workshop {
    display: none;
}

.thanks-ws {
    display: none;
}
.workshop-section.workshop-selected .thanks-ws {
    display: block;
    font-size: 1.5rem !important;
    margin-top: 20px;
}
.workshop-section.workshop-selected .please-ws {
    display: none;
}

/* event */

.event-section {
    display: flex;
    justify-content: space-between;
    padding: 25px;
    color: #fff;
    flex-wrap: wrap;
    gap: 50px;
}

.razionale {
    flex-basis: 30%;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 300px;
}

.event-box {
    position: relative;
    flex-basis: 60%;
    flex-grow: 1;
    flex-shrink: 1;

    height: fit-content;
    border-radius: 30px;
    background: linear-gradient(90deg, #fa117ab2 50%, #e9571dbc 100%);
    box-shadow: 0 0 10px 0px rgba(42, 24, 39, 0.1);
}

.event-box img.event-bg {
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: auto;
    margin: 30px 0;
}

#meeting-btn {
    /* position: absolute; */
    height: 60px;
    /* bottom: 20%;
    right: 35px; */
    width: 100%;
    /* min-width: 180px;
    max-width: 40%; */
    font-size: 1.35rem;
    font-weight: normal;
    box-shadow: #c23801b5 2px 4px 10px 0px;
    animation: btnZoom 2s infinite;
}

#meeting-btn::after {
    content: "per partecipare \A al meeting";
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    height: 100%;
    white-space: pre;
    cursor: default;
    pointer-events: none;
}

.meeting-btn-box {
    position: absolute;
    bottom: 22%;
    right: 35px;
    width: 30%;
    min-width: 180px;
    max-width: 40%;
    height: 60px;
}

@keyframes btnZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.event-box .btn-link {
    width: 50%;
    height: 80px;
    font-size: 1.4rem;
    align-items: baseline;
    padding: 15px 25px;
    min-width: 350px;
    position: absolute;
    bottom: -120px;
    right: 0;
    border-radius: 30px;
}
.event-box .btn-link p {
    transform: translateY(-2px);
}

/* footer */

footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

footer img.biomarin {
    height: 60px;
    padding: 10px;
}

.footer-links {
    display: flex;
}

footer a {
    display: inline-block;
    padding: 0 8px;
    margin: 0;
}

.footer-links a:not(:last-of-type) {
    border-right: 1px solid var(--orange);
}

.zincode {
    position: absolute;
    font-size: 0.6rem;
    left: 10px;
    bottom: 5px;
    color: #ffffff90;
}

/* LIVE  */

body.shrink {
    max-width: 890px;
}

main#live {
    display: block;
    color: #fff;
}

#liveContainer {
    display: block;
    position: relative;
    border-top: 5px solid;
    border-image: var(--main-gradient);
}
#userCommentsContainer {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

#chat-send-btn {
    width: fit-content;
    max-width: 200px;
    margin: 0px 10px;
    font-size: 16px;
    height: auto;
    padding: 4px 25px;
    border-radius: 6px;
}

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

.title-and-workshop .title {
    width: 50%;
    font-weight: bold;
}
.title-and-workshop .workshop-enter {
    width: auto;
    height: auto;
    padding: 7px 22px;
    max-width: 50%;
    font-size: 14px;
    box-shadow: 3px 3px 15px 0px rgba(0, 0, 0, 0.3);
    border: 1px solid #ffffff7c;
    user-select: none;
}
.workshop-enter span {
    font-weight: normal;
}

#ws-enter.inactive {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
    background-color: rgb(89, 89, 89);
}

#policy-confirm {
    width: 100%;
    height: 80px;
    background-color: #1d1d1d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    text-align: center;
    padding: 5px;
}
#policy-confirm:hover {
    background-color: #009607;
}

body.bg-gray {
    background: #f1f1f1;
    overflow-y: hidden;
}

/* ============ MEDIA QUERIES =============== */

@media screen and (max-width: 991px) {
    .main-section {
        width: 65%;
    }
    .sidebar {
        width: 35%;
    }
    #confirm-workshop {
        right: 50%;
        transform: translateX(50%);
    }
    .event-box {
        margin-bottom: 100px;
    }
    .login-user-bar {
        left: 75%;
    }
}
@media screen and (max-width: 767px) {
    main {
        flex-direction: column-reverse;
    }
    .main-section {
        width: 100%;
    }
    .sidebar {
        width: 100%;
    }
    .sidebar img.sidebar-img-v {
        display: none;
    }
    .sidebar img.sidebar-img-h {
        display: block;
    }
    .form-line {
        flex-direction: column;
    }
    .form-line > div {
        width: 100%;
    }

    .home-links .btn-link {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }

    .meeting-btn-box {
        bottom: -40px;
        right: 50%;
        transform: translateX(50%);
        min-width: 220px;
        max-width: 80%;
        font-size: 1.35rem;
    }
    .event-box {
        margin-bottom: 200px;
    }

    .event-box .btn-link {
        width: 50%;
        font-size: 1.25rem;
        min-width: 320px;
        right: 50%;
        transform: translateX(50%);
        bottom: -230px;
        align-items: center;
        justify-content: center;
    }
    .event-box .btn-link img {
        height: 60%;
    }

    footer {
        flex-direction: column;
    }

    footer img.biomarin {
        height: 45px;
        margin-bottom: 20px;
    }
    .footer-links {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    .login-user-bar {
        left: 0;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        padding-right: 20px;
        top: 4px;
    }
    .login-user-bar img {
        height: 80%;
    }
    .login-text {
        display: flex;
    }
    #login-user {
        border-right: 1px solid #fff;
        padding-right: 5px;
    }
    #logout-user {
        padding-left: 5px;
    }
}
@media (max-width: 400px) {
    .workshop-btn {
        min-width: 240px;
    }
}
