@import 'variables.css';
@import 'carousel.css';
@import 'navbar.css';
@import 'pagination.css';

@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: Comfortaa, Arial, sans-serif;
  color: var(--color-text-base);
}

main {
  padding-top: 60px;
}

#messages-container {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
}

body.with-messages main {
  padding-top: 100px;
}

#messages-container .alert {
  padding: 0.5rem 1rem;
}

#messages-container .btn-close {
  margin: 0;
  padding: 0.5rem;
  align-self: center;
}

::selection {
  background-color: var(--color-brand-bg);
  color: var(--color-brand-dark);
}

.text-brand {
  color: var(--color-text-base);
}

.text-muted-brand {
  color: var(--color-brand-medium);
}

.btn-brand {
  background-color: var(--color-brand-dark);
  color: white;
  border: 2px solid var(--color-brand-dark);
  border-radius: 50rem;
}

.btn-brand:focus,
.btn-brand:active,
.btn-brand:hover {
  background-color: transparent;
  color: var(--color-brand-dark);
  border: 2px solid var(--color-brand-dark);
}

.btn-brand-secondary {
  background-color: transparent;
  color: var(--color-brand-medium);
  border: 2px solid var(--color-brand-medium);
  border-radius: 50rem;
}

.btn-brand-secondary:focus,
.btn-brand-secondary:active,
.btn-brand-secondary:hover {
  background-color: var(--color-brand-medium);
  color: white;
  border: 2px solid var(--color-brand-medium);
}

.btn-brand-danger {
  background-color: #dc3545;
  color: white;
  border: 2px solid #dc3545;
  border-radius: 50rem;
}

.btn-brand-danger:focus,
.btn-brand-danger:active,
.btn-brand-danger:hover {
  background-color: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.btn-brand-telegram {
  background-color: #0088cc;
  color: white;
  border: 2px solid #0088cc;
  border-radius: 50rem;
}

.btn-brand-telegram:focus,
.btn-brand-telegram:active,
.btn-brand-telegram:hover {
  background-color: transparent;
  color: #0088cc;
  border: 2px solid #0088cc;
}

.avatar-border {
  border: 2px solid var(--color-brand-medium);
  border-radius: 50%;
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-border--small {
  width: 40px;
  height: 40px;
}

.avatar-border--medium {
  width: 100px;
  height: 100px;
}

.avatar-border--large {
  width: 150px;
  height: 150px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.custom-border {
  border: 2px solid var(--color-brand-medium);
  border-radius: 2rem;
  overflow: hidden;
}

.custom-input {
  border: 2px solid var(--color-brand-medium);
  border-radius: 20px;
  color: var(--color-brand-dark);
}

.custom-input::placeholder {
  color: var(--color-brand-light);
}

.custom-input:focus {
  border-color: var(--color-brand-dark);
  box-shadow: none;
}

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

.dropdown-menu {
  border: 2px solid var(--color-brand-dark);
  border-radius: 1.2rem;
}

.dropdown-item {
  color: var(--color-text-base);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--color-brand-dark);
  color: white;
}

.custom-link {
  color: inherit;
  text-decoration: none;
}

.custom-link:hover {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.custom-link-underline {
  color: var(--color-text-base);
  text-decoration: underline;
}

.custom-link-underline:hover {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.custom-form {
  max-width: 330px;
  padding: 1rem;
}

.custom-form .form-floating:focus-within {
  z-index: 2;
}

.custom-form label {
  color: var(--color-brand-light);
}

.text-small {
  font-size: 85%;
}

.modal-border {
  border: 2px solid var(--color-brand-medium);
  border-radius: 1.5rem;
  overflow: hidden;
}

.custom-card {
  border: 2px solid var(--color-brand-medium);
  border-radius: 1.5rem;
  overflow: hidden;
}
