
.xf-light {
    --color-bg: #fff;
    --title-color: black;
}

.xf-dark {
    --color-bg: #141929;
    --title-color: white;
}

.nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: var(--bs-nav-link-color);
    background: none;
    border: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Augment */
.xf-augment {
    position: relative;
    display: block;
	background-color: var(--color-bg);

	.xf-error-message {
		justify-content: center;
    	margin: 50px;
    	padding-top: calc(15vw);
    	display: flex;
		color: white;
	}

	.xf-iframe {
		width: calc(35vw);
		height: calc(100vh);
	}

	.xf-spinner-container {
		margin: 50px;
		padding-left: calc(15vw);
	}

}

.xf-augment > .xf-btn {
    border-radius: 0;
    height: 25px;
    width: 25px;
}
.xf-augment > .xf-btn-close {
    position: fixed;
    left: -25px;
    top: 0px;
    border: 0;
    border-radius: 0;
    opacity: 1;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background: #4C70B4 var(--bs-btn-close-bg) center/1em auto no-repeat;
}
.xf-augment.view {
    display: none;
    border-left: 1px solid #4C70B4;
    text-align: left;
    z-index: 102;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    box-shadow: -4px 5px 8px -3px rgba(17, 17, 17, .16);
    animation: slideToRight 0.5s 1 forwards;
    transform: translateX(100vw);
    
}

.xf-augment.view[opened] {
    display: block	;
    animation: slideFromRight 0.2s 1 forwards;
}

@keyframes spinner {
	from {transform: rotate(0deg);}
	to {transform: rotate(360deg);}
  }
@keyframes slideFromRight {
    0% {
      transform: translateX(100vw);
    }
    100% {
      transform: translateX(0);
    }
}
@keyframes slideToRight {
    100% {
      transform: translateX(100vw);
      display: none;
    }
}
@media screen and (min-width: 900px) {
    .xf-augment.view {
      width: 600px;
    }
}


/* Embed */
.xf-embed {
    position: relative;
    display: block;
	background-color: var(--color-bg);

	.xf-error-message {
		justify-content: center;
    	margin: 50px;
    	padding-top: calc(15vw);
    	display: flex;
		color: white;
	}

	.xf-iframe {
		width: 100%;
		height: calc(100vh);
	}

	.xf-spinner-container {
		justify-content: center;
    	margin: 50px;
    	padding-top: calc(15vw);
    	display: flex;
		
	}
}
@keyframes spinner {
	from {transform: rotate(0deg);}
	to {transform: rotate(360deg);}
}

/* Pop-up */
.xf-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
  z-index: 1000; /* ensure the overlay is above other content */
  display: flex;
  justify-content: center; /* horizontally center the popup */
  align-items: center; /* vertically center the popup */

    /* Style for the popup */
    .popup {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 500px;
        height: 50%;
        border: 1px solid transparent;
        border-top: 2px solid #22a6af;
        background-color: var(--color-bg);
        
        .xf-spinner-container {
            justify-content: center;
            padding-top: 10px;
            display: flex;
            
        }

        .body {
            height: 100%;
            .xf-iframe {
                padding: 10px;
                width: 500px;
                height: 300px;
            }
        }
    }

}


.xf-header {
    background: var(--color-bg);
    border-color: #0d1218;
    padding: 0px;
    display: flex;
    border-bottom: 1px solid #0d1218;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 300;
    height: 50px;

    .title {
        padding: 10px 10px 10px 30px;
        color: var(--title-color);
    }

    .close {
        font-size: 1.5em;
        padding-right: 10px;
        cursor: pointer;
        background: transparent;
        border: 0;


        .close-button {
            display: block;
            font-size: 40px;
            font-weight: 300;
            margin-top: 10px;
            transform: rotate(45deg);
            font-family: 'Lato', sans-serif;
            color: var(--title-color);
        }
    }
}

.xf-spinner {
    height: 50px;
    width: 50px;
    animation: spinner 1s infinite linear;
    border-top: 3px solid #4C70B4;
    border-left: 3px solid #4C70B4;
    border-right: 3px solid #4C70B4;
    border-radius: 50%;
}
