/*
html,
body {
    height: 100%;
    width: 100%;
    background-color: #FFFFFF;
}

.center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}
*/
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hide Flutter loading indicators only during our custom loading */
.splash-screen:not(.hidden) ~ flt-glass-pane,
.splash-screen:not(.hidden) ~ .flutter-loader,
.splash-screen:not(.hidden) ~ .loading,
.splash-screen:not(.hidden) ~ .progress {
  display: none !important;
}

/* Allow Flutter to render normally when splash screen is hidden */
flt-glass-pane,
flutter-view,
[flt-renderer] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body{
  background-color: #00A174;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

/* Reset body styles when Flutter app is ready */
body.flutter-ready {
  background-color: initial;
  display: initial;
  align-items: initial;
  justify-content: initial;
  flex-direction: initial;
  min-height: initial;
  overflow: initial;
}

.splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  position: relative;
}

.top-section {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding-top: 10px;
}

.chief-text-container {
  background: #FFFFFF;
  padding: 25px 30px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chief-text-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.center-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.chef-character-container {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.chef-character {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.bottom-section {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.loading-bar {
  width: 180px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 0;
  background-color: #FFFFFF;
  border-radius: 2px;
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% { width: 0; }
  50% { width: 60%; }
  100% { width: 100%; }
}

.contain {
  display:block;
  width:100%; height:100%;
  object-fit: contain;
}

.stretch {
  display:block;
  width:100%; height:100%;
}

.cover {
  display:block;
  width:100%; height:100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .top-section {
    padding-top: 8px;
  }
  
  .chief-text-logo {
    width: 120px;
  }
  
  .chef-character {
    width: 160px;
  }
  
  .chef-character-container {
    padding: 25px;
  }
  
  .chief-text-container {
    padding: 20px 25px;
  }
  
  .loading-bar {
    width: 140px;
  }
  
  .bottom-section {
    bottom: 50px;
  }
}

@media (max-width: 480px) {
  .top-section {
    padding-top: 5px;
  }
  
  .chief-text-logo {
    width: 100px;
  }
  
  .chef-character {
    width: 140px;
  }
  
  .chef-character-container {
    padding: 20px;
  }
  
  .chief-text-container {
    padding: 18px 22px;
  }
  
  .loading-bar {
    width: 120px;
  }
  
  .bottom-section {
    bottom: 40px;
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.flutter-ready) {
    background-color: #007d5a;
  }
}
