@import url("https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800");
:root {
  --primary: #7460ee;
  --secondary: #6c757d;
  --success: #28b779;
  --info: #2255a4;
  --warning: #ffb848;
  --danger: #da542e;
  --light: #f8f9fa;
  --dark: #343a40;
  --cyan: #27a9e3;
  --orange: #fb8c00;
  --purple: #7460ee;
  --bg: #eeeeee;
  --text: #3e5569;
  --card-bg: #ffffff;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 100vh;
}

/* KEYFRAMES */
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(359deg); }
}

@keyframes spin3D {
  from { transform: rotate3d(.5, .5, .5, 360deg); }
  to { transform: rotate3d(0deg); }
}

@keyframes configure-clockwise {
  0% { transform: rotate(0); }
  25% { transform: rotate(90deg); }
  50% { transform: rotate(180deg); }
  75% { transform: rotate(270deg); }
  100% { transform: rotate(360deg); }
}

@keyframes configure-xclockwise {
  0% { transform: rotate(45deg); }
  25% { transform: rotate(-45deg); }
  50% { transform: rotate(-135deg); }
  75% { transform: rotate(-225deg); }
  100% { transform: rotate(-315deg); }
}

@keyframes pulse {
  from { opacity: 1; transform: scale(1); }
  to { opacity: .25; transform: scale(.75); }
}

/* SPINNING ELEMENTS */
.leo-border-1 {
  position: absolute;
  width: 150px;
  height: 150px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(0deg, rgba(63, 249, 220, 0.1) 33%, rgba(63, 249, 220, 1) 100%);
  animation: spin3D 1.8s linear 0s infinite;
}

.leo-core-1 {
  width: 100%;
  height: 100%;
  background-color: #37474faa;
  border-radius: 50%;
}

.leo-border-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(0deg, rgba(251, 91, 83, 0.1) 33%, rgba(251, 91, 83, 1) 100%);
  animation: spin3D 2.2s linear 0s infinite;
}

.leo-core-2 {
  width: 100%;
  height: 100%;
  background-color: #1d2630aa;
  border-radius: 50%;
}

.circle-border {
  width: 150px;
  height: 150px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(0deg, rgba(63, 249, 220, 0.1) 33%, rgba(63, 249, 220, 1) 100%);
  animation: spin .8s linear 0s infinite;
}

.circle-core {
  width: 100%;
  height: 100%;
  background-color: #1d2630;
  border-radius: 50%;
}

/* NAVIGATION */
.navbar-dark.bg-dark {
  background-color: var(--primary) !important;
  background: linear-gradient(45deg, var(--primary), var(--purple));
}

.list-group-item-action {
  padding: 0.9rem 1rem;
  transition: all 0.3s ease;
}

.list-group-item-action:hover {
  background: linear-gradient(45deg, var(--primary), var(--info));
  color: white;
}

/* CARDS */
.card {
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body.modal-open .card,
body.modal-open .card:hover {
  transform: none !important;
  transition: none !important;
}

.min-vh-100 {
  min-height: 100vh;
}

/* BUTTONS */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  background: linear-gradient(45deg, var(--primary), var(--purple));
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--purple), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(116, 96, 238, 0.3);
}

/* FORMS */
.form-select, .form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(116, 96, 238, 0.25);
}

/* SPINNER BOX */
.spinner-box {
  width: 337px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  position: relative;
  top: 4px;
  left: 37%;
}

/* CONFIGURE BORDERS */
.configure-border-1 {
  width: 115px;
  height: 115px;
  padding: 3px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fb5b53;
  animation: configure-clockwise 3s ease-in-out 0s infinite alternate;
}

.configure-border-2 {
  width: 115px;
  height: 115px;
  padding: 3px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #19b6ee;
  animation: configure-xclockwise 3s ease-in-out 0s infinite alternate;
}

.configure-core {
  width: 100%;
  height: 100%;
  background-color: #1d2630;
}

/* LOADING TEXT */
.word {
  bottom: 0;
  color: var(--primary);
  font-size: 1.5em;
  height: 2.5em;
  left: 0;
  line-height: 2.5em;
  margin: auto;
  left: auto;
  position: relative;
  text-shadow: 0 0 10px rgba(116, 96, 238, 0.5), 0 0 5px rgba(100, 255, 100, 0.5);
  top: 0px;
}

.word span {
  display: inline-block;
  transform: translateX(100%) scale(0.9);
  transition: transform 800ms;
}

.word .done {
  color: var(--success);
  transform: translateX(0) scale(1);
}
