/* CSS Variables for Light/Dark Mode */
:root {
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-tertiary: #ffffff;
  --text-primary: #353740;
  --text-secondary: #6e6e80;
  --border-color: #e5e5e6;
  --shadow: rgba(0, 0, 0, 0.1);
  --accent: #6110a3;
  --accent-hover: #600d8c;
  
  /* Sub Day Colors (Light Mode) - More Vibrant */
  --sub-bg: #f3e8ff;
  --sub-border: #a855f7;
  --sub-accent: #7c3aed;
  --sub-text: #6b21a8;
  
  /* Chatbot Colors */
  --chatbot-bg: #f0f0f0;
  
  /* Nav Panel */
  --nav-bg: #ffffff;
  --nav-hover: #f7f7f8;
}

[data-theme="dark"] {
  /* Dark Mode Colors */
  --bg-primary: #343541;
  --bg-secondary: #40414f;
  --bg-tertiary: #565869;
  --text-primary: #ececf1;
  --text-secondary: #c5c5d2;
  --border-color: #565869;
  --shadow: rgba(0, 0, 0, 0.3);
  --accent: #b989dd;
  --accent-hover: #eab5f6;
  
  /* Sub Day Colors (Dark Mode) - More Vibrant */
  --sub-bg: #5b21b6;
  --sub-border: #8b5cf6;
  --sub-accent: #a78bfa;
  --sub-text: #c4b5fd;
  
  /* Chatbot Colors */
  --chatbot-bg: #40414f;
  
  /* Nav Panel */
  --nav-bg: #40414f;
  --nav-hover: #565869;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Google Font */
.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

#gIconMini{
  color: var(--accent);
}

#gIcon {
  color: var(--accent);
  vertical-align: text-bottom;
  font-size: 1.65rem !important;
}

/* Global Header */
.global-header {
  width: 100%;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 100%;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--accent);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px var(--shadow);
}

.nav-toggle:hover {
  background-color: var(--bg-secondary);
}

.hamburger-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.course-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.course-btn {
  padding: 0.375rem 0.625rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px var(--shadow);
}

.course-btn:hover, .acaDeca:hover, .theme-toggle:hover, .chatbot-toggle:hover, .makerspaceToggle:hover, .refresh-toggle:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px var(--shadow);
}

.course-btn.active, .acaDeca.active, .theme-toggle.active, .chatbot-toggle.active, .makerspaceToggle.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.theme-toggle,
.chatbot-toggle,
.makerspaceToggle,
.navToggle, 
.acaDeca,
.refresh-toggle {
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  color: var(--accent);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px var(--shadow);
}

.theme-toggle:hover,
.chatbot-toggle:hover,
.makerspaceToggle:hover,
.acaDeca:hover,
.navToggle:hover,
.refresh-toggle:hover {
  background-color: var(--bg-secondary);
}

.refresh-toggle:active {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Main Container */
.main-container {
  display: flex;
  min-height: calc(100vh - 60px);
  max-width: 100%;
  overflow-x: hidden;
}

/* Navigation Panel */
.nav-panel {
  width: 240px;
  background-color: var(--nav-bg);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  transition: transform 0.3s ease, width 0.3s ease;
  box-shadow: 2px 0 4px var(--shadow);
}

.nav-panel.collapsed {
  transform: translateX(-100%);
  width: 0;
  border-right: none;
}

.nav-panel-content {
  padding: 1rem 0.75rem;
}

.nav-panel-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.week-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
  opacity: 0.5;
}

.nav-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.4rem 0.625rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 1px var(--shadow);
  text-decoration: none;
  color: var(--text-primary);
  text-align: left;
}

.nav-item:hover {
  background-color: var(--nav-hover);
  transform: translateX(4px);
  box-shadow: 0 2px 4px var(--shadow);
}

.nav-item.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.nav-item-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.nav-item-date {
  font-size: 0.6875rem;
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.nav-item-topic {
  font-size: 0.6875rem;
  font-style: italic;
  line-height: 1.25;
  color: var(--text-secondary);
}

.nav-item.active .nav-item-topic {
  color: rgba(255, 255, 255, 0.9);
}

.show-all-btn {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.625rem;
  width: 100%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.6875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 1px var(--shadow);
}

.show-all-btn:hover {
  background-color: var(--bg-secondary);
  box-shadow: 0 2px 4px var(--shadow);
}

/* Resource Groups (Makerspace) */
.resource-group {
  margin-bottom: 0.5rem;
}

.resource-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 1px var(--shadow);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.resource-group-header:hover {
  background-color: var(--nav-hover);
  box-shadow: 0 1px 2px var(--shadow);
}

.resource-group-title {
  flex: 1;
  text-align: left;
}

.resource-group-icon {
  font-size: 0.6875rem;
  transition: transform 0.2s ease;
}

.resource-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.resource-group.expanded .resource-group-items {
  max-height: 2000px;
  padding-top: 0.25rem;
}

/* Main Panel */
.main-panel {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: var(--bg-primary);
  min-height: calc(100vh - 60px);
}

/* Welcome Message */
.welcome-message {
  text-align: center;
  padding: 4rem 2rem;
}

.welcome-message h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.welcome-message p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Course Content */
.course-content {
  max-width: 1200px;
  margin: 0 auto;
}

.course-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

/* Lesson Header */
.lesson-header {
  margin-bottom: 2rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.lesson-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  padding: 0rem;
}

.lesson-meta-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.unit-label,
.lesson-number,
.lesson-date,
.lesson-duration {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.lesson-topic {
  font-size: 2rem;
  margin: 0;
  color: var(--text-primary);
}

.lesson-activity {
  margin-top: 0.5rem;
  color: var(--text-primary);
}

/* Sub Day Styling - Vibrant Colors */
.course-content.sub-day .course-title {
  color: var(--sub-accent);
  border-bottom-color: var(--sub-border);
}

.course-content.sub-day .lesson-header,
.course-content.sub-day .objective-section,
.course-content.sub-day .embeds-grid > div,
.course-content.sub-day .day-summary,
.course-content.sub-day .absent-info {
  background-color: var(--sub-bg);
  border-color: var(--sub-border);
}

.course-content.sub-day .lesson-topic {
  color: var(--sub-accent);
}

.course-content.sub-day .lesson-header,
.course-content.sub-day .objective-section,
.course-content.sub-day .day-summary,
.course-content.sub-day .absent-info {
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}

/* Objective Section */
.objective-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.objective-content {
  flex: 1;
}

.objective-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.objective-content p {
  color: var(--text-primary);
  line-height: 1.7;
}

.due-content {
  flex: 1;
}

.due-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.due-content p {
  color: var(--text-primary);
  line-height: 1.7;
}

.download-links {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}

.download-btn {
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 1px var(--shadow);
  font-size: 0.75rem;
}

.download-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0 1px 2px var(--shadow);
}

.download-btn span {
  font-size: 1rem;
}

/* Embeds Grid */
.embeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.embed-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px var(--shadow);
}

.embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.embed-desc {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.embed-desc-link {
  color: var(--accent);
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.embed-desc-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* Day Summary */
.day-summary {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
}

.day-summary h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.day-summary p {
  color: var(--text-primary);
  line-height: 1.7;
}

/* Absent Info */
.absent-info {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
}

.absent-info h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.absent-info p {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.absent-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px var(--shadow);
}

.absent-link:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px var(--shadow);
}

/* Makerspace Content */
.makerspace-content {
  max-width: 1200px;
  margin: 0 auto;
}

.machine-header {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
}

.machine-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.machine-location {
  color: var(--text-secondary);
  font-size: 1rem;
}

.student-experts {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
}

.machine-info-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.machine-overview,
.machine-uses,
.machine-materials {
  flex: 1;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
}

.machine-overview h2,
.machine-uses h2,
.machine-materials h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.machine-overview p,
.machine-uses p,
.machine-materials p {
  color: var(--text-primary);
  line-height: 1.7;
}

/* Chatbot Panel */
.chatbot-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  max-height: 600px;
  background-color: var(--chatbot-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  display: none;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.3s ease;
}

.chatbot-panel.open {
  display: flex;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: 12px 12px 0 0;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatbot-header h3 {
  flex: 1;
  font-size: 1rem;
  color: var(--text-primary);
}

.chatbot-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.chatbot-close:hover {
  background-color: var(--bg-tertiary);
}

.chatbot-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  min-height: 400px;
}

.chatbot-welcome {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
}

.chatbot-welcome-intro {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.chatbot-welcome-greeting {
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

#chatbase-widget-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.chatbot-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: 0 0 12px 12px;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: var(--accent);
}

.chatbot-input::placeholder {
  color: var(--text-secondary);
}

.chatbot-send-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px var(--shadow);
}

.chatbot-send-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px var(--shadow);
}

.chatbot-send-btn:active {
  transform: translateY(0);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 2000;
  color: white;
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .embeds-grid {
    grid-template-columns: 1fr;
  }
  
  .lesson-header {  
    flex-direction: column;
  }
  
  .download-links {
    width: 100%;
    min-width: auto;
  }
  
  .machine-info-row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .objective-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  .nav-panel {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    z-index: 999;
    transform: translateX(-100%);
  }
  
  .nav-panel.collapsed {
    transform: translateX(-100%);
  }
  
  .nav-panel:not(.collapsed) {
    transform: translateX(0);
  }
  
  .main-panel {
    width: 100%;
    padding: 1rem;
  }
  
  .course-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .course-btn {
    white-space: nowrap;
    font-size: 0.6875rem;
    padding: 0.3rem 0.5rem;
  }
  
  .chatbot-panel {
    width: calc(100% - 40px);
    max-width: 400px;
    bottom: 10px;
    right: 10px;
    max-height: calc(100vh - 100px);
  }
  
  .lesson-topic {
    font-size: 1.5rem;
  }
  
  .welcome-message h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.5rem;
  }
  
  .main-panel {
    padding: 1rem 0.75rem;
  }
  
  .lesson-header,
  .objective-section,
  .day-summary,
  .absent-info {
    padding: 0.5rem;
  }
  
  .embeds-grid {
    gap: 1rem;
  }
  
  .embed-item {
    padding: 0.75rem;
  }
}





/* From Uiverse.io by Nawsome */ 
.loader {
  position: relative;
  width: 75px;
  height: 100px;
}

.loader__bar {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 50%;
  background: rgb(0, 0, 0);
  transform-origin: center bottom;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.loader__bar:nth-child(1) {
  left: 0px;
  transform: scale(1, 0.2);
  -webkit-animation: barUp1 4s infinite;
  animation: barUp1 4s infinite;
}

.loader__bar:nth-child(2) {
  left: 15px;
  transform: scale(1, 0.4);
  -webkit-animation: barUp2 4s infinite;
  animation: barUp2 4s infinite;
}

.loader__bar:nth-child(3) {
  left: 30px;
  transform: scale(1, 0.6);
  -webkit-animation: barUp3 4s infinite;
  animation: barUp3 4s infinite;
}

.loader__bar:nth-child(4) {
  left: 45px;
  transform: scale(1, 0.8);
  -webkit-animation: barUp4 4s infinite;
  animation: barUp4 4s infinite;
}

.loader__bar:nth-child(5) {
  left: 60px;
  transform: scale(1, 1);
  -webkit-animation: barUp5 4s infinite;
  animation: barUp5 4s infinite;
}

.loader__ball {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  background: rgb(44, 143, 255);
  border-radius: 50%;
  -webkit-animation: ball624 4s infinite;
  animation: ball624 4s infinite;
}

@keyframes ball624 {
  0% {
    transform: translate(0, 0);
  }

  5% {
    transform: translate(8px, -14px);
  }

  10% {
    transform: translate(15px, -10px);
  }

  17% {
    transform: translate(23px, -24px);
  }

  20% {
    transform: translate(30px, -20px);
  }

  27% {
    transform: translate(38px, -34px);
  }

  30% {
    transform: translate(45px, -30px);
  }

  37% {
    transform: translate(53px, -44px);
  }

  40% {
    transform: translate(60px, -40px);
  }

  50% {
    transform: translate(60px, 0);
  }

  57% {
    transform: translate(53px, -14px);
  }

  60% {
    transform: translate(45px, -10px);
  }

  67% {
    transform: translate(37px, -24px);
  }

  70% {
    transform: translate(30px, -20px);
  }

  77% {
    transform: translate(22px, -34px);
  }

  80% {
    transform: translate(15px, -30px);
  }

  87% {
    transform: translate(7px, -44px);
  }

  90% {
    transform: translate(0, -40px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@-webkit-keyframes barUp1 {
  0% {
    transform: scale(1, 0.2);
  }

  40% {
    transform: scale(1, 0.2);
  }

  50% {
    transform: scale(1, 1);
  }

  90% {
    transform: scale(1, 1);
  }

  100% {
    transform: scale(1, 0.2);
  }
}

@keyframes barUp1 {
  0% {
    transform: scale(1, 0.2);
  }

  40% {
    transform: scale(1, 0.2);
  }

  50% {
    transform: scale(1, 1);
  }

  90% {
    transform: scale(1, 1);
  }

  100% {
    transform: scale(1, 0.2);
  }
}

@-webkit-keyframes barUp2 {
  0% {
    transform: scale(1, 0.4);
  }

  40% {
    transform: scale(1, 0.4);
  }

  50% {
    transform: scale(1, 0.8);
  }

  90% {
    transform: scale(1, 0.8);
  }

  100% {
    transform: scale(1, 0.4);
  }
}

@keyframes barUp2 {
  0% {
    transform: scale(1, 0.4);
  }

  40% {
    transform: scale(1, 0.4);
  }

  50% {
    transform: scale(1, 0.8);
  }

  90% {
    transform: scale(1, 0.8);
  }

  100% {
    transform: scale(1, 0.4);
  }
}

@-webkit-keyframes barUp3 {
  0% {
    transform: scale(1, 0.6);
  }

  100% {
    transform: scale(1, 0.6);
  }
}

@keyframes barUp3 {
  0% {
    transform: scale(1, 0.6);
  }

  100% {
    transform: scale(1, 0.6);
  }
}

@-webkit-keyframes barUp4 {
  0% {
    transform: scale(1, 0.8);
  }

  40% {
    transform: scale(1, 0.8);
  }

  50% {
    transform: scale(1, 0.4);
  }

  90% {
    transform: scale(1, 0.4);
  }

  100% {
    transform: scale(1, 0.8);
  }
}

@keyframes barUp4 {
  0% {
    transform: scale(1, 0.8);
  }

  40% {
    transform: scale(1, 0.8);
  }

  50% {
    transform: scale(1, 0.4);
  }

  90% {
    transform: scale(1, 0.4);
  }

  100% {
    transform: scale(1, 0.8);
  }
}

@-webkit-keyframes barUp5 {
  0% {
    transform: scale(1, 1);
  }

  40% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1, 0.2);
  }

  90% {
    transform: scale(1, 0.2);
  }

  100% {
    transform: scale(1, 1);
  }
}

@keyframes barUp5 {
  0% {
    transform: scale(1, 1);
  }

  40% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1, 0.2);
  }

  90% {
    transform: scale(1, 0.2);
  }

  100% {
    transform: scale(1, 1);
  }
}



/* From Uiverse.io by alexruix */ 
.loader {
  width: 112px;
  height: 112px;
}

.box1,
.box2,
.box3 {
  border: 16px solid #f5f5f5;
  box-sizing: border-box;
  position: absolute;
  display: block;
}

.box1 {
  width: 112px;
  height: 48px;
  margin-top: 64px;
  margin-left: 0px;
  animation: abox1 4s 1s forwards ease-in-out infinite;
}

.box2 {
  width: 48px;
  height: 48px;
  margin-top: 0px;
  margin-left: 0px;
  animation: abox2 4s 1s forwards ease-in-out infinite;
}

.box3 {
  width: 48px;
  height: 48px;
  margin-top: 0px;
  margin-left: 64px;
  animation: abox3 4s 1s forwards ease-in-out infinite;
}

@keyframes abox1 {
  0% {
    width: 112px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
  }

  12.5% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
  }

  25% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
  }

  37.5% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
  }

  50% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
  }

  62.5% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
  }

  75% {
    width: 48px;
    height: 112px;
    margin-top: 0px;
    margin-left: 0px;
  }

  87.5% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
  }

  100% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
  }
}

@keyframes abox2 {
  0% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
  }

  12.5% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
  }

  25% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
  }

  37.5% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
  }

  50% {
    width: 112px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
  }

  62.5% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 64px;
  }

  75% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 64px;
  }

  87.5% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 64px;
  }

  100% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 64px;
  }
}

@keyframes abox3 {
  0% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 64px;
  }

  12.5% {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 64px;
  }

  25% {
    width: 48px;
    height: 112px;
    margin-top: 0px;
    margin-left: 64px;
  }

  37.5% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 64px;
  }

  50% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 64px;
  }

  62.5% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 64px;
  }

  75% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 64px;
  }

  87.5% {
    width: 48px;
    height: 48px;
    margin-top: 64px;
    margin-left: 64px;
  }

  100% {
    width: 112px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
  }
}
