// Widget position \\
.widget-left {
    bottom: 20px;
    left: 15px;
    position: fixed;
    z-index: 1000;
    text-align: left;
}

.widget-right {
    bottom: 20px;
    right: 15px;
    position: fixed;
    z-index: 1000;
    text-align: right;
}

#widget-container {

    // Globals \\
    @font-face {
        font-family: AmericanCaptain;
        src: url('../assets/fonts/american-captain.otf');
    }

    .renesse-yellow {
        background-color: #fbba00;
    }
    .renesse-blue {
        background-color: #158db4;
    }
    .renesse-green {
        background-color: #199975;
    }

    // Text \\
    h1 {
        font-family: "Open Sans",system-ui,-apple-system,"Helvetica Neue",sans-serif;
        font-size: 26px;
    }
    h2 {
        font-family: "Open Sans",system-ui,-apple-system,"Helvetica Neue",sans-serif;
        font-size: 20px;
    }
    h3 {
        font-family: "Open Sans",system-ui,-apple-system,"Helvetica Neue",sans-serif;
        font-size: 20px;
    }

    p {
        font-family: 'Open Sans', system-ui, -apple-system,'Helvetica Neue', sans-serif;
        font-size: 14px;
    }

    i {
        cursor: pointer;
        transition: all .3s ease-out;
        
        &:hover {
            scale: 1.1;
        }
    }

    .close-events, .close-activities {
        &:before {
            font-size: .6em!important;
        }
    }

    .date-text {
        font-family: AmericanCaptain;
        font-size: 20px;

        .text-white {
            padding-bottom: 0!important;
            margin-bottom: 0!important;
        }
    }

    // Widget elements \\
    #renesse-button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: url('/wp-content/plugins/renesse-aan-zee/assets/img/renesse-aan-zee-plugin-icon.png') no-repeat center center;
        background-size: cover;
        color: #fff;
        border: none;
        font-size: 24px!important;
        cursor: pointer;
        transition: all .3s ease-out;
        line-height: 50px;
        padding: 0;

        &:hover {
            scale: 1.1;
        }
    }

    .btn:hover, .btn:active {
        background-color: #ec671a !important;
        color: #fff !important;
        border-color: #ec671a !important;
        transform: scale(1.05)!important;
    }
    
    #renesse-button.active {
        background-color: #ec671a;
        background-image: none;
        color: #fff;
    }

    #widget-content {
        display: none; 
        margin-bottom: 10px;
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 300px;
        position: relative;
        text-align: left!important;
    }

    #widget-buttons {
        display: none; 
        margin-bottom: 10px;
        border-radius: 5px;
        width: 300px;
        position: relative;
    }

    .widget-button {
        margin-bottom: 10px;
        margin-left: 5px;
        padding: 10px;
        background-color: #fff;
        border: none;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: auto;
        position: relative;
        color: #fff;
        background-color: #ec671a;
        cursor: pointer;
        font-size: .9rem!important;
        transition: all .3s ease-out;
        font-family: 'Open Sans', system-ui, -apple-system,'Helvetica Neue', sans-serif;
        text-decoration: none;

        &:hover {
            scale: 1.1!important;
        }
    }

    .widget-hidden {
        display: none;
    }
    
    .widget-button {
        margin-top: 10px;
    }


    // Card \\
    .card {
        margin: 10px 0;
        border-radius: 10px;
        height: 100%;

        .card-img-top {
            max-height: 150px;

        }

        .card-body {
            flex-grow: 1;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;

            a {
                margin-left: 0!important;
            }
        }
    }

    .date-overlay {
        position: absolute;
        top: 0;
        left: 0;
        background-color: black;
        color: white;
        padding: 5px;
        font-size: 14px;
        text-align: center;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
        border-top-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .carousel {
        .carousel-inner .card {
            margin: 0 auto; 
            width: 90%; 
        }
        
        .carousel-control-prev,
        .carousel-control-next {
            width: 5%; 
        }

        .carousel-control-prev-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
        }

        .carousel-control-next-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }
    }

    // Mobile styling \\
    @media only screen and (max-width: 900px) {

        h1, h2, h3{
            font-size: 1.25rem!important;
        }
    
        p {
            font-family: 'Open Sans', system-ui, -apple-system,'Helvetica Neue', sans-serif;
        }

        #widget-content { 
            margin-bottom: 5px!important;

            .card-body {
                padding: 10px;

                .widget-button{ 
                    margin-top: 0px!important;
                }
            }
        }

        #widget-buttons {
            margin-bottom: 5px!important;

            .widget-button{ 
                margin-top: 5px!important;
                margin-bottom: 5px!important;
                font-size: .8rem!important;
            }
        }

    }
    
}