@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    /*margin-bottom: 60px;*/
}

/* Sharing links */

.email-link {
    background: cadetblue;
    color: white;
    border-radius: 5px;
    padding: 5px;
}

.whatsapp-link {
    background: #1AD03F;
    color: white;
    border-radius: 5px;
    padding: 5px;
}

.phone-link {
    background-color: darkslategrey;
    color: white;
    border-radius: 5px;
    padding: 5px;
}

.copy-link {
    background: darkcyan;
    color: white;
    border-radius: 5px;
    padding: 5px;
}

    .copy-link:hover {
        color: white;
        border-radius: 5px;
        padding: 5px;
        cursor: pointer;
    }

.email-link:hover {
    color: white;
    border-radius: 5px;
    padding: 5px;
}

.whatsapp-link:hover {
    color: white;
    border-radius: 5px;
    padding: 5px;
}

.phone-link:hover {
    color: white;
    border-radius: 5px;
    padding: 5px;
}

/* Snapchat Logo */

.fvmxvuk {
    width: 38px !important;
    height: 38px !important;
}

.f16qnola {
    width: 38px !important;
    height: 38px !important;
}

.f1ixov3b {
    width: 28px !important;
    height: 28px !important;
}

.card-item {
    border-radius: 5px !important;
    padding: 20px !important;
}

/* Initial Hole Card Details - Jack  */

.circle {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #45DB54;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin: 0 auto;
}

img {
    width: 80%;
}

.btn-primary {
    font-weight: bold;
    background-color: #45DB54;
    border: 0px;
}

.row {
    margin-bottom: 20px;
}

.active {
    display: block;
}

.inactive {
    display: none;
}

.logo {
    width: 64px;
}


@media only screen and (max-width: 400px) {
    .logo {
        width: 40px;
    }
}

/* Navbar */
.navbar-collapse {
    text-align: center;
}

.form-nav-item {
    display: flex;
    justify-content: center;
}


/* For scorecard */

table {
    min-width: 320px !important;
    border-collapse: collapse !important;
    white-space: nowrap !important;
    text-align: center;
}

table, th {
    border: 1px solid black !important;
    text-align: center;
    color: white;
    text-align: center;
}

td {
    background-color: aliceblue;
    border: 1px solid black !important;
    text-align: center;
    font-family: 'Unica One', sans-serif !important;
    text-align: center;
}

.mud-table-container {
    box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.36) !important;
}

.mud-table-head {
    background-color: #45DB54 !important;
    color: white !important;
    font-size: 100% !important;
    text-align: center;
}

    .mud-table-head .mud-table-cell {
        font-family: 'Unica One', sans-serif !important;
        font-weight: bold !important;
        background-color: #45DB54 !important;
        color: white !important;
        font-size: 100% !important;
        text-align: center !important;
    }

.mud-table-cell {
    text-align: center !important;
}

.total-score {
    font-weight: bold !important;
    font-size: 150% !important;
    border-width: 2px !important;
}

.mud-table-root {
    border: 2px solid black !important;
}

.team-name {
    border-width: 2px !important;
    font-weight: bold !important;
}
/* Hole Card */

.cardy {
    height: initial;
    background-color: #f9f3e6;
    color: dimgray;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border-radius: 2rem;
    box-shadow: 0px 1rem 1.5rem rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .cardy .banner {
        background-color: #45DB54;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 11rem;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
        z-index: 1;
    }

        .cardy .banner > svg {
            background-color: #fff;
            width: 8rem;
            height: 8rem;
            box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
            border-radius: 50%;
            transform: translateY(50%);
            transition: transform 200ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
            border-color: #45DB54;
            border-width: 3px;
        }

            .cardy .banner > svg:hover {
                transform: translateY(50%) scale(1.3);
            }

    .cardy .menu {
        width: 100%;
        height: 3.5rem;
        padding: 1rem;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        position: relative;
        box-sizing: border-box;
        border-top-width: 3px;
        border-top-color: #45DB54;
    }

        .cardy .menu .opener {
            width: 2.5rem;
            height: 2.5rem;
            position: relative;
            border-radius: 50%;
            transition: background-color 100ms ease-in-out;
        }

            .cardy .menu .opener:hover {
                background-color: #f2f2f2;
                cursor: pointer;
            }

            .cardy .menu .opener span {
                background-color: #404040;
                width: 0.4rem;
                height: 0.4rem;
                position: absolute;
                top: 0;
                left: calc(50% - 0.2rem);
                border-radius: 50%;
            }

                .cardy .menu .opener span:nth-child(1) {
                    top: 0.45rem;
                }

                .cardy .menu .opener span:nth-child(2) {
                    top: 1.05rem;
                }

                .cardy .menu .opener span:nth-child(3) {
                    top: 1.65rem;
                }

    .cardy h4.name {
        text-align: center;
        padding: 0 2rem 0.5rem;
        margin: 0;
    }

    .cardy .title {
        color: #a0a0a0;
        font-size: 1.2rem;
        text-align: center;
        padding: 0 1.6rem 0.8rem;
    }

    .cardy .actions {
        padding: 0 2rem 1.2rem;
        display: flex;
        flex-direction: column;
        order: 99;
    }

        .cardy .actions .follow-info {
            padding: 0 0 1rem;
            display: flex;
        }

            .cardy .actions .follow-info h2 {
                text-align: center;
                width: 50%;
                margin: 0;
                box-sizing: border-box;
            }

                .cardy .actions .follow-info h2 a {
                    text-decoration: none;
                    padding: 0.8rem;
                    display: flex;
                    flex-direction: column;
                    border-radius: 0.8rem;
                    transition: background-color 100ms ease-in-out;
                }

                    .cardy .actions .follow-info h2 a span {
                        color: #1c9eff;
                        font-weight: bold;
                        transform-origin: bottom;
                        transform: scaleY(1.3);
                        transition: color 100ms ease-in-out;
                    }

                    .cardy .actions .follow-info h2 a small {
                        color: #afafaf;
                        font-size: 0.85rem;
                        font-weight: normal;
                    }

                    .cardy .actions .follow-info h2 a:hover {
                        background-color: #f2f2f2;
                    }

                        .cardy .actions .follow-info h2 a:hover span {
                            color: #007ad6;
                        }

        .cardy .actions .follow-btn button {
            color: inherit;
            font: inherit;
            font-weight: bold;
            background-color: #ffd01a;
            width: 100%;
            border: none;
            padding: 1rem;
            outline: none;
            box-sizing: border-box;
            border-radius: 1.5rem/50%;
            transition: background-color 100ms ease-in-out, transform 200ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
        }

            .cardy .actions .follow-btn button:hover {
                background-color: #efb10a;
                transform: scale(1.1);
            }

            .cardy .actions .follow-btn button:active {
                background-color: #e8a200;
                transform: scale(1);
            }

    .cardy .desc {
        text-align: justify;
        padding: 0 2rem 2.5rem;
        order: 100;
    }

.card-circle {
    aspect-ratio: 1/1;
    background-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    width: 6rem;
    height: 6rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
    border-radius: 50%;
    transform: translateY(50%);
    transition: transform 200ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border-color: #45DB54;
    border-width: 3px;
    margin: 0 auto;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}


.img-70 {
    width: 70%;
}

.img-100 {
    width: 100%;
}

.locked {
    background-color: #45DB54 !important;
    color: white;
}


/* Score entry input */

.score {
    width: 100%;
    max-width: 60%;
    margin: 0 auto;
    margin-top: -2%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.score-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.scorebar {
    padding: 3%;
    border-radius: 60px;
}

    .scorebar:focus {
        outline: none;
        max-width: 100%;
        transition: all .3s;
    }

input::-webkit-input-placeholder {
    color: white;
    transition: all .3s;
}

.scorebar:focus input:focus::-webkit-input-placeholder {
    filter: opacity(.5);
    transition: all .3s;
}


.scorebar {
    background: white;
    border: #45DB54 3px solid;
    transition: all .3s;
}

.icon2 {
    background-color: #45DB54;
    text-decoration: none;
    padding: 5%;
    font-size: 15px;
    text-align: center;
    height: 80%;
    border-radius: 50%;
    color: white;
}

    .icon2:hover {
        cursor: pointer;
        color: white;
        background-color: #0a58ca;
    }
    .icon2:active {
        cursor: pointer;
        color: white;
        background-color: #0a58ca;
    }
    .icon2:focus {
        cursor: pointer;
        color: white;
        background-color: #0a58ca;
    }

.score-box input::-webkit-input-placeholder {
    color: #45DB54;
    filter: opacity(.6);
    transition: all .3s;
}

.score-box input:focus::-webkit-input-placeholder {
    filter: opacity(.8);
    transition: all .3s;
}
/* Keyframes by https://animate.style */

.bounceIn {
    opacity: 0;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    animation-name: bounceIn;
    animation-fill-mode: forwards;
}

.bounceOut {
    animation-duration: 0.5s;
    animation-name: bounceOut;
    animation-fill-mode: forwards;
}

#penalties {
    color: red;
}

.teamManagement {
    display: flex;
}
.teamManagement > button {
    margin: 10px;
    flex-grow: 1;
}
#courseCarousel {
    overflow: auto;
}
@media (max-height: 885px) {
    #courseCarousel {
        height: 80vh;
    }
}
@media (min-height: 885px) {
    #courseCarousel {
        height: 75vh;
    }
}

/* Clubhouse */
.clubhouse-background {
    /*background: url('../lib/images/ClubhouseBackground.svg') repeat;*/
}

.disabled-option {
    position: relative;
    pointer-events: none;
    opacity: 0.5; 
}

.disabled-option::after { /* Placed on top of the div */
    content: "Coming Soon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 5vh;
}

.shelf-row {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 5vh;
}

.row-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.shelves {
    width: 100%;
    height: auto;
    max-width: 1000px;
}

.thirty-width {
    width: 30%;
}

.column-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.on-shelf {
    height: auto;
    transition: transform 0.3s ease;
}

.on-shelf:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

.shelf-text {
    color: white;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

.no-style {
    text-decoration: none;
    color: inherit;
}

/* Create Course */
input.valid {
    border-width: 1px;
    border-radius: 5px;
    border-color: darkgrey;
}

/* Marketplace */
.course-preview {
    border-radius: 2rem!important;
    background: #cfcfcf;
    min-width: 250px;
    height: 175px;
}

.course-container {
    width: 100%;
    overflow: scroll;
    padding-bottom: 10px;
    color: black;
}

.course-container > div {
    margin-right: 10px;
}

.course-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.courses {
    height: 100vh;
    color: white;
    padding-top: 10px;
}

/* Override Mudblazor */
:root {
    --mud-palette-primary: #45DB54 !important
}

.card-header {
    background: #45DB54;
    color: white;
}

.no-padding {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.validation-message {
    color: red;
}

.h-90 {
    height: 90% !important;
}
/* CSS styles specific to the My Courses page */
.my-courses-container {
    background-color: #f5f5f5; /* Light background color for the container */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding around the container */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.course-card {
    transition: transform 0.2s, box-shadow 0.2s; /* Animation for hover effect */
}

    .course-card:hover {
        transform: scale(1.05); /* Slightly enlarge on hover */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
    }

.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Adjust MudText styles */
.my-courses-container .mud-typography {
    color: #333; /* Change text color */
}









/* Wrapper for the entire marketplace */
.marketplace-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Carousel container - adding min-height to display card content fully */
.featured-carousel {
    min-height: 250px; /* Ensures the carousel always displays enough height for full content */
}

/* Each slide in the carousel */
.carousel-slide {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Card container inside the carousel */
.carousel-item {
    width: 30%; /* Ensures 3 cards fit in a single row within the carousel */
    padding: 10px;
}

/* Shelf image under the carousel */
.shelf-img {
    width: 100%;
    margin-top: -20px; /* Adjust this for alignment with the shelf */
}

/* Full list of courses below the carousel */
.all-courses-container {
    margin-top: 50px;
}

.course-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.course-list-item {
    flex: 1 1 calc(33.33% - 15px); /* Ensures each card in the full list takes up one-third of the row */
    margin-bottom: 15px;
}



/* Overall container for the marketplace */
.marketplace-wrapper {
    max-width: 1200px; /* Set a max-width to keep it centered */
    margin: 0 auto; /* Center the content */
    padding: 20px; /* Add padding for breathing space */
}

/* Text color for headers */
.text-off-white {
    color: #f0f0f0; /* Light off-white color */
}

/* Featured course container styles */
.featured-course-container {
    position: relative; /* Allows positioning of shelf image */
}

/* All courses container styles */
.all-courses-container {
    margin-top: 40px;
}

/* Search field styling */
.text-field-off-white {
    background-color: #ffffff; /* White background for text field */
    color: #333333; /* Dark text for readability */
}

    .text-field-off-white input {
        background-color: #f9f9f9; /* Light background for input */
        border: 1px solid #d3d3d3; /* Light border */
    }

        .text-field-off-white input::placeholder {
            color: #888888; /* Placeholder color */
        }

/* Course preview container */
.course-preview-container {
    width: calc(33.333% - 20px); /* Display 3 per row with margin */
    margin: 10px; /* Space between cards */
}

/* Main course preview card */
.course-preview {
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9; /* Light background for contrast */
}

/* Header styling for course names */
.preview-header {
    margin-bottom: 10px;
    font-size: 1.5rem; /* Increase font size for visibility */
}

/* Body styling */
.preview-body {
    padding: 10px 0; /* Spacing around body content */
}

/* Course detail styling */
.course-detail {
    flex: 1; /* Equal flex spacing for both details */
    justify-content: center; /* Center content */
}

/* No ratings style */
.no-ratings {
    color: #888; /* Gray color for no ratings */
}

/* Rating section */
.rating {
    margin-top: 10px;
}

/* Align text for course plays */
.course-plays {
    font-weight: bold; /* Emphasize the plays count */
    color: #333; /* Dark text color */
}

/* Media query for responsive design */
@media (max-width: 768px) {
    .course-preview-container {
        width: 100%; /* Full width on smaller screens */
        max-width: none; /* Remove max-width */
    }
}



.h-300 {
    height: 300px !important;
}
.h-400 {
    height: 400px !important;
}


/* Wrapper for each course preview card */
.course-preview-container {
    background-color: #f9f3e6; /* Light cream background resembling wood or parchment */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

    /* Hover effect for card - pops out slightly */
    .course-preview-container:hover {
        transform: translateY(-5px);
    }

/* Main preview container */
.course-preview {
    background-color: #fdf7e1; /* Slightly darker cream, mimicking a rustic wall or paper */
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Title Section */
.preview-header h1 {
    color: #3d3b2f; /* Warm, dark brown color for title */
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Georgia', serif; /* Classic, elegant font */
}

/* Course Details Section */
.preview-body {
    width: 100%;
}

.course-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .course-detail MudText {
        color: #5c5a48; /* Dark, earthy color for course details */
        margin-left: 5px;
        font-size: 1rem;
    }

/* Rating Section */
.rating {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

    .rating MudIcon {
        font-size: 1.2rem;
    }

/* Course Plays Section */
.course-plays {
    font-size: 0.9rem;
    color: #716d5f;
    text-align: center;
}

.no-ratings {
    color: #b0b0a6;
    font-size: 0.9rem;
    margin-top: 10px;
}

.mud-inherit-text.color-white {
    color: white !important;
}

.background-transparent {
    background-color: transparent !important;
}

.background-beige {
    background-color: #f9f3e6 !important;
}

    .background-beige .mud-input-label.mud-input-label-animated.mud-input-label-outlined.mud-input-label-margin-dense.mud-input-label-inputcontrol {
        background-color: #f9f3e6 !important;
    }

    .background-beige .mud-input-label-outlined {
        background-color: #f9f3e6 !important;
    }

.game-card {
    max-width: 600px;
    margin: auto;
    background: #fdf8ee;
    border: 6px ridge #8b5e3c;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    position: relative;
}

.frame-hanger {
    height: 30px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.certificate-frame {
    background: #fefcf5;
    background-image: repeating-linear-gradient( 45deg, #fefcf5, #fefcf5 10px, #f9f5e9 10px, #f9f5e9 20px );
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Georgia', serif;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.text-gold {
    color: #c9a13b;
}

.font-serif {
    font-family: 'Georgia', serif;
}

.course-award-wrapper {
    position: relative;
    width: 240px;
    margin: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .course-award-wrapper:hover {
        transform: scale(1.02);
    }

.award-ribbon {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 58px;
    height: 72px;
    z-index: 10;
    pointer-events: none;
}

.award-frame {
    border: 4px solid #c49a6c;
    background: #fffdf5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-size: cover;
    background-repeat: repeat;
}

.hole-preview-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 2px solid #e3c9a7;
}

.award-header {
    padding: 0.75rem 1rem 0 1rem;
    text-align: center;
}

.course-title {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    margin: 0;
    color: #3b2f2f;
}

.award-body {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #5a4a3d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.divider {
    height: 1px;
    background-color: #d3c0a3;
    margin: 0.3rem 0;
}

.course-rating {
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-ratings {
    color: #a89c90;
    font-style: italic;
}

.course-plays {
    text-align: center;
    font-size: 0.9rem;
    color: #7a6f62;
}
.hanging-string {
    display: flex;
    justify-content: center;
    position: absolute;
    top: -20px; /* Adjust this to control spacing from card */
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 4;
}

    .hanging-string svg {
        width: 100px;
        height: 40px;
    }
.award-frame {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.course-award-wrapper {
    position: relative;
    width: 240px;
    margin-top: 3.5rem; /* Give space for string to sit above */
    transition: transform 0.3s ease;
    cursor: pointer;
    perspective: 1000px;
}

    .course-award-wrapper:hover .award-frame {
        animation: swing 1s ease-in-out;
        transform-origin: 50% -30px; /* swing from ~top where string connects */
    }

/* The swing animation */
@keyframes swing {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(3deg);
    }

    30% {
        transform: rotate(-2.5deg);
    }

    45% {
        transform: rotate(2deg);
    }

    60% {
        transform: rotate(-1.5deg);
    }

    75% {
        transform: rotate(1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* For screens above 500px */
@media (min-width: 500px) {
    .course-award-wrapper {
        width: 340px;
    }
}

/* Background overlay */
.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    /* start hidden, fade in */
    opacity: 0;
    pointer-events: none;
    animation: fadeInBg 0.3s ease forwards;
    z-index: 9999;
}

/* Modal box */
.install-modal {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.3);
    /* start slightly smaller, fade + pop in */
    transform: scale(0.95);
    opacity: 0;
    animation: popIn 0.3s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Title */
.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333333;
    text-align: center;
}

/* Ordered list */
.modal-list {
    padding-left: 20px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #444444;
    text-align: left;
}

/* Close button */
.modal-close {
    align-self: flex-end;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #e0e0e0;
    color: #333333;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
    max-height: 40px;
}

    .modal-close:hover {
        background-color: #cccccc;
    }

/* Animations for open */
@keyframes fadeInBg {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

@keyframes popIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animations for close */
.modal-background.closing {
    animation: fadeOutBg 0.3s ease forwards;
}

.install-modal.closing {
    animation: popOut 0.3s ease forwards;
}

@keyframes fadeOutBg {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes popOut {
    to {
        transform: scale(0.95);
        opacity: 0;
    }
}

.gif-container {
    margin: auto;
}

.row {
    margin-bottom: 10px !important;
}
#components-reconnect-modal {
    display: none;
}

/* Base Modal */
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: fixed;
    inset: 0;
    z-index: 10001;

    background: linear-gradient(to bottom, #87ceeb 0%, #b0e0e6 100%);
    overflow: hidden;
    color: white;
    text-align: center;
}

/* Text */
#components-reconnect-modal h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

#components-reconnect-modal p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Reload button */
#components-reconnect-modal button {
    background-color: #1976d2;
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background 0.2s ease;
}

#components-reconnect-modal button:hover {
    background-color: #1565c0;
}

/* Cloud container */
.cloud {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    animation: drift linear infinite;
}

/* Each puff in the cloud */
.cloud span {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: -10px 5px 20px rgba(0,0,0,0.1);
}

/* Large clouds */
.cloud.large { width: 250px; height: 120px; animation-duration: 100s; }
.cloud.medium { width: 180px; height: 90px; animation-duration: 80s; }
.cloud.small { width: 120px; height: 60px; animation-duration: 60s; }

/* Puff positioning inside each cloud */
.cloud.large span:nth-child(1) { width: 120px; height: 120px; top: -20px; left: 20px; }
.cloud.large span:nth-child(2) { width: 90px; height: 90px; top: -10px; left: 100px; }
.cloud.large span:nth-child(3) { width: 140px; height: 100px; top: 20px; left: 60px; }

.cloud.medium span:nth-child(1) { width: 80px; height: 80px; top: -10px; left: 15px; }
.cloud.medium span:nth-child(2) { width: 70px; height: 70px; top: -5px; left: 70px; }
.cloud.medium span:nth-child(3) { width: 90px; height: 60px; top: 15px; left: 40px; }

.cloud.small span:nth-child(1) { width: 50px; height: 50px; top: -5px; left: 10px; }
.cloud.small span:nth-child(2) { width: 40px; height: 40px; top: 0; left: 45px; }
.cloud.small span:nth-child(3) { width: 60px; height: 45px; top: 10px; left: 25px; }

@keyframes drift {
    0% { transform: translateX(0vw); }
    100% { transform: translateX(120vw); }
}