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

@layer components {
}

@font-face {
  font-family: 'Bitter';
  src: url(/fonts/Bitter-VariableFont_wght.ttf) format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
.filter-button {
  padding: 8px 16px;
  border-radius: 16px;
  background-color: #EAFBFA;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-button.active {
  background-color: #7CC8C8;
  color: #004d40;
}

.filter-button.active .close-icon {
  display: block;
}
.filter-button .filter-button-text {
  color: black;
}
.filter-button.active .filter-button-text {
  color: white;
}

/*event*/
.event-filter-button {
  padding: 8px 16px;
  border-radius: 16px;
  background-color: #EAFBFA;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-filter-button.active {
  background-color: #7CC8C8;
  color: #004d40;
}

.event-filter-button.active .close-icon {
  display: block;
}
.event-filter-button .event-filter-button-text {
  color: black;
}
.event-filter-button.active .event-filter-button-text {
  color: white;
}
.search-input{
  outline: none;
  transition: width 0.3s ease
}

.search-input::placeholder{
  text-align: right;
  color: rgba(73, 186, 180, 0.93);
  opacity: 0.8;
  margin-right: 5%;
}
.search-input:focus {
  /*border-color: rgba(186, 73, 73, 0.2);*/
  border: 1px solid rgba(73, 186, 180, 0.93);
  transform: scale(1.1);
  width: 250px;
}

.header-button {
  border: none;
  background: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  color: black;
}

.header-button:focus{
  background: white;
  color: #49BAB4;
}

.header-button-active{
  background: white;
  color: #49BAB4;
}

.header-button-2 {
  border: none;
  background: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  /*color: black;*/
}

.header-button-2:focus-within{
  /*background: white;*/
  color: #49BAB4;
}

.header-button-2.header-button-active svg,
.header-button-2.header-button-active p {
  color: #49BAB4 !important;
  stroke: #49BAB4 !important;
}

.header-button-2.header-button-active:hover {
  background: white !important;
}

.header-button-2.header-button-active:hover svg,
.header-button-2.header-button-active:hover p {
  color: #49BAB4 !important;
  stroke: #49BAB4 !important;
}

i.fa {
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
}
.search-input:focus + #search-icon {
  opacity: 0; /* Полная прозрачность при фокусе */
}

#search-icon {
  transition: opacity 0.2s ease-in-out; /* Плавный переход */
}

/* Плавное исчезновение плейсхолдера при фокусе */
.search-input::placeholder {
  transition: opacity 0.3s ease-in-out;
  opacity: 1; /* Начальное значение */
}

.search-input:focus::placeholder {
  opacity: 0; /* Прозрачность при фокусе */
}
/*
 * 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.
 *


 */
