body, html {
    padding: 0;
    margin: 0;
}

.wrapper {
    border-radius: 0.5rem;
    position: sticky;
    z-index: 2;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Imposta l'altezza minima della pagina uguale alla finestra */
}

#app {
    flex: 1; /* Questo farà sì che la sezione contenuto occupi tutto lo spazio possibile */
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.bi {
    width: 2.5rem;
    height: 2.5rem;
    fill: white;
}

.menu {
    background-color: #185BF0;
    color: white;
}

.menu-item {
    text-decoration: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.active {
    border-radius: 1rem;
    background-color: white;
    color: #0848D5;
    font-weight: bold;
}

.background-gray {
    background-color: #f8f9fa;
}

.spinner-loader {
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    font-size: 1.2rem;
}

/* button styles */
.btn {
    border-radius: 12px;
}
.btn-login {
    background-color: #185BF0;
    color: white;
    border: 0;
    height: auto;
    font-weight: bold;
}
.btn-custom {
    height: 3rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16pt;
}
#btnLogin:hover, #btnLogin:focus, #btnSignupSearch:hover, #btnSignupSearch:focus, #btnSignupQuest:hover, #btnSignupQuest:focus {
    border: 2px solid #185BF0;
    color: #185BF0;
    background-color: white;
    height: auto;
}
.btn-next-question {
    color: white;
    background-color: #185BF0;
    font-size: 12pt;
    padding: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-end-questionnaire {
    color: #185BF0;
    background-color: white;
    border: 2px solid #185BF0;
    font-size: 12pt;
    padding: 0.5rem;
    border-radius: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-next-question:hover, .btn-next-question:focus, .btn-end-questionnaire:hover, .btn-end-questionnaire:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
.btn-next-question:disabled, .btn-end-questionnaire:disabled {
    border: 0;
    color: white;
    background-color: lightgray;
    cursor: not-allowed;
}
.btn-register {
    background-color: white;
    color: #185BF0;
    border: 2px solid #185BF0;
    height: auto;
    font-weight: bold;
}
.btn-register:hover, .btn-register:focus {
    border: 2px solid white;
    color: white;
    background-color: #185BF0;
}
/* END button styles */

/* registration random videos progress */
.active-dot {
    width: 0.7rem;
    height: 0.7rem;
    display: inline-block;
    background-color: black;
}
.light-dot {
    width: 0.7rem;
    height: 0.7rem;
    display: inline-block;
    background-color: #C6D1F1;
}
.colored-dot {
    width: 0.7rem;
    height: 0.7rem;
    display: inline-block;
    background-color: #185BF0;
}
.light-span {
    background-color: #C6D1F1;
    height: 1rem;
    border-radius: 2rem;
    display: inline-block;
}
.colored-span {
    background-color: #185BF0;
    height: 1rem;
    border-radius: 2rem;
    display: inline-block;
}

/* custom links style */
.custom-links {
    text-decoration: none;
    color: #333;
    border: 2px solid transparent;
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
}
.custom-links::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}
.custom-links:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.custom-links:hover {
    color: #007bff;
}

.message-info {
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 14pt;
    color: #333;
    width: fit-content;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.message-info a {
    color: #007bff;
    font-weight: bold;
}
.message-info a:hover {
    text-decoration: underline;
}

/* btnLike and btnDislike style (QuestionVideo.js) */
.btn-like {
    width: 100%;
    height: 3rem;
    border-left: 4px solid #0DB714;
    border-right: 4px solid #0DB714;
    border-radius: 12px;
    border-top: 0;
    border-bottom: 0;
    background-color: #f1f1f1;
    color: #000;
    font-weight: bold;
}
.btn-like-click {
    width: 100%;
    height: 3rem;
    border-left: 4px solid #14822C;
    border-right: 4px solid #14822C;
    border-top: 0;
    border-bottom: 0;
    background-color: #0DB714;
    color: white;
    font-weight: bold;
}
.btn-dislike {
    width: 100%;
    height: 3rem;
    border-left: 4px solid #EA0E0E;
    border-right: 4px solid #EA0E0E;
    border-radius: 12px;
    border-top: 0;
    border-bottom: 0;
    background-color: #f1f1f1;
    color: #000;
    font-weight: bold;
}
.btn-dislike-click {
    width: 100%;
    height: 3rem;
    border-left: 4px solid #992222;
    border-right: 4px solid #992222;
    border-top: 0;
    border-bottom: 0;
    background-color: #EA0E0E;
    color: white;
    font-weight: bold;
}
.btn-like:disabled, .btn-dislike:disabled {
    cursor: not-allowed;
}

.text-muted-personalized {
    color: #7F7F7F;
}
.text-active {
    color: black;
    font-weight: bold;
}

#linkRegister {
    text-decoration: underline;
    color: #185BF0;
    font-weight: bold;
}
#linkRegister:hover {
    cursor: pointer;
}

.input-error {
    border: 2px solid red;
}

.custom-margin-questionnaire {
    margin-top: 2rem;
}

.responsive-img-signup {
    width: 70%;
}
.fav-img { width: 12%; }
.responsive-img {
    width: 100%;
    border-radius: 50%;
}
.responsive-thumbnail {
    width: 100%;
    border-radius: 12px;
    object-fit: cover; /* Assicura che l'immagine riempia lo spazio senza distorsioni */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Aggiunge profondità */
}
.remove-img {
    width: 100%;
    cursor: pointer;
}

.rounded-choice {
    background-color: #D3D3D3;
    width: 15rem;
    height: 15rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* loading suggestions */
.skeleton {
    display: inline-block;
    background: #e0e0e0;
    background-image: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.skeleton-text {
    width: 80%;
    border-radius: 0.5rem;
    height: 20px;
    margin: 10px 0;
}
.skeleton-body {
    width: 97%;
    border-radius: 0.5rem;
    height: 5rem;
    margin: 0.5rem;
}
/* END loading suggestions */

/* youtube player style */
.youtube-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-image: url("./assets/video-placeholder.jpg");
    background-size: cover;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.youtube-player-wrapper iframe { /* styles for player responsive */
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
}
/* END youtube player style */

/* style for items rating */
.rating-options-item {
    width: 1.5rem;
    cursor: pointer;
}

/* style for questionnaire */
.survey-wrapper *,
.survey-wrapper *::before,
.survey-wrapper *::after {
    box-sizing: border-box;
    caret-color: transparent;
}
.survey-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    /* text-align: center; */
    font-family: 'Arial', sans-serif;
}
.hero {
    background: linear-gradient(135deg, #0848D5, #4e73ec);
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.hero h3 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}
.description {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.survey-container {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: -3.5rem;
    animation: fadeInUp 0.6s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.question-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.question-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}
.options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.options button {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 120px;
    text-align: center;
}
.emoji-img {
    width: 40px;
    height: 40px;
}
.options button:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}
.options button.selected {
    background-color: #cce5ff;
    border-color: #007bff;
}
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.navigation button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.navigation button:hover {
    background-color: #0056b3;
}
.navigation button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transition: none;
}
.textarea-open {
    resize: vertical;
    caret-color: auto;
}
/* END style for questionnaire */

@media (max-width: 767px) {
    .background-one, .background-two, .background-three, .background-four {
        background-color: #f8f9fa;
    }
    .rounded-choice {
        width: 12rem;
        height: 12rem;
    }
}

@media (min-width: 768px) {
    /* backgrounds handle */
    .background-one {
        background-image: url("./assets/background-blue.png");
        background-repeat: no-repeat;
        background-size: 90rem 90rem;
        background-attachment: fixed;
        background-position: -10rem 0.5rem;
    }
    .background-two {
        background-image: url("./assets/background-pink.png");
        background-repeat: no-repeat;
        background-size: 90rem 90rem;
        background-attachment: fixed;
        background-position: 30rem -10rem;
    }
    .background-three {
        background-image: url("./assets/background-pink.png");
        background-repeat: no-repeat;
        background-size: 150rem 150rem;
        background-attachment: fixed;
        background-position: -40rem -30rem;
    }
    .background-four {
        background-color: rgba(0, 0, 0, 0.1);
    }
    /* navbar handle */
    .menu {
        border-radius: 50px;
        box-shadow: 0 0 200px 100px rgba(0, 0, 0, 0.1);
        padding: 0.5rem;
        background-color: white;
        color: black;
    }
    .logo {
        background-color: #185BF0;
        color: white;
        width: 15%;
        font-size: 18pt;
    }
    .menu-item {
        color: black;
        font-size: 15pt;
    }
    .active {
        text-decoration: underline;
        color: #0848D5;
        background-color: transparent;
    }

    .fav-img { width: 8%; }
}

@media (min-width: 576px) and (max-width: 991px) {
    .remove-img {
        width: 50%;
    }
}

/* responsive items for devices with width >= 992px */
@media (min-width: 992px) {
    .custom-margin-questionnaire { margin-top: 15rem; }
    .responsive-img-signup { width: 85%; }
    .custom-height-lg { height: 90vh; }
}

/* responsive items for devices with width >= 1200px */
@media (min-width: 1200px) {
    .btn-login { height: 2.5rem; }
    .btn-register { height: 2.5rem; }
    #btnLogin:hover, #btnLogin:focus, #btnSignupSearch:hover, #btnSignupSearch:focus, #btnSignupQuest:hover, #btnSignupQuest:focus, #btnRegister:hover, #btnRegister:focus {
        height: 2.5rem;
    }
    .remove-img { width: 60%; }
}