@tailwind base;
@tailwind components;
@tailwind utilities;


@layer components {
  :root {
    font-size: 14px;
    --header-height: 5rem;
    --menu-sticky-height: 3.5rem;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--menu-sticky-height) );

    /* --primary-color: #EF5261; */
    --primary-color: #D32F2F          ;
    --secondary-color: #F6A623;
  }
  
  .bg-primary {
    background: var(--primary-color)
  }
  .bg-secondary {
    background: var(--secondary-color)
  }

  .bg-1 {
    background: #EF5261
  }
  .bg-2 {
    background: #F6A623
  }
  .bg-3 {
    background: #FDE74C
  }
  .bg-4 {
    background: #8BC34A
  }
  .bg-5 {
    background: #4CAF50
  }
  .bg-6 {
    background: #388E3C
  }
  .bg-7 {
    background: #37474F
  }
  .bg-8 {
    background: #263238
  }
}

/* Layout */
/* Header */
.header-container {
  @apply sticky top-0 z-[9999] shadow-md ;
  @apply md:px-40;
  height: var(--header-height);
  background: var(--secondary-color);
}

.header__logo-title {
  @apply self-center pl-1 text-3xl font-bold whitespace-nowrap ;
  color: var(--primary-color);
}
.header__logo-img {
  @apply h-8 py-1 md:h-10;
}

/* body */
.body-container {
  @apply bg-[#F5F5F5];
}

/* footer */
.footer-container {
  /* @apply w-full text-white; */
  background: var(--secondary-color); /* #DC3545; */
  font-family: Arial, sans-serif;
}

.footer-container .footer-container__logo-img {
  @apply h-12 mr-3 md:h-16;
}

.footer-container .footer-container__logo-title {
  @apply self-center text-4xl font-bold whitespace-nowrap ;
  color: var(--primary-color);
}



/* buttons */
.btn {
 @apply px-2 py-2 border-none rounded-md hover:brightness-90;
}

.btn-primary {
  color: #FFFFFF;
  background: var(--primary-color);

}
.btn-secondary {
  color: #fff;
  background: var(--secondary-color);
}
.btn-disabled {
  @apply bg-[#F5F5F5];
  color: #37474F;
}

/* Text ellipsis utilities */
.ellipsis-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


:root {
  --baemin-color: #3ac5c9;
  --shopee-color: #ee4d2d;
  --loship-color: #ea001c;
  --gofood-color: #01a94a;
  --grab-color: #00b14f;
  --be-color: #fec418;
  --gojek-color: #01a94a;
}

@layer components {
  .bg-gojek {
    background: var(--gojek-color)
  }
}



.ellipsis-2-lines {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}







  .homepage .map-container {
    position: relative;
    
  }
  .homepage .map-container #current-location {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    z-index: 400;
  }
    
  
  

/* .homepage { */



/* .homepage .map-container {
  position: relative;
  
}
.homepage .map-container #current-location {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  z-index: 400;
}
   */
/* } */

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


