@font-face {
  font-family: "CardFont";
  src: url("assets/fonts/CodygoonRegular-oweO0.ttf");
  font-weight: 2.5em;
  font-family: monospace;
  font-display: swap;
}

:root {
  --base-height: 8rem;
  /* Base height for .item and .time-cell */
  --double-factor: 2;
  /* Multiplier for double items */
  --triple-factor: 3;
  /* Multiplier for triple items */
  --quadruple-factor: 4;
  --font-scale: 0.2rem;
}

.main-body .container {
  max-width: 1500px !important;
  padding: 50px;
}

body {
  -webkit-overflow-scrolling: touch;
  margin-bottom: 5rem;
}

.profile-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;

  button {
    margin-top: 1rem;
    width: 5rem;
    height: 5rem;
    border: none !important;
    cursor: pointer;

    i {
      font-size: 3rem;
      color: black;
    }
  }
}

.schedule-counter {
  /* bold font */
  font-weight: 700;
}

.item,
.time-cell {
  height: var(--base-height);
  border: 1px solid #ddd;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
}

.item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  line-height: 1.2;
  font-size: clamp(0.7rem, 1.2vw, 1rem);

  .item-speaker {
    font-size: clamp(0.6rem, 1vw, 0.9rem);
  }
}

/* Title adjustments */
.item-title {
  color: #0048e9;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
}

.table-row {
  /* display flex */
  display: flex;
  flex-direction: column;
  /* justify content */
  gap: 10px;

  /* margin bottom */
  .item {
    /* margin bottom */
    padding: 10px;
    border: 1px solid #ddd;
  }

  .item.double {
    height: calc(var(--base-height) * var(--double-factor) + 10px);
  }

  .item.triple {
    height: calc(var(--base-height) * var(--triple-factor) + 20px);
  }

  .item.quadruple {
    height: calc(var(--base-height) * var(--quadruple-factor) + 30px);
  }

  .time-cell.coffee {
    background-color: #d642ea90;
    height: calc(var(--base-height) * 2 + 10px);
    font-weight: bold;
  }

  .item.coffee {
    background-color: #d642ea90;
    height: calc(var(--base-height) * 2 + 10px);
    font-weight: bold;
    font-size: 1.5rem;
  }

  .item.coffee::before {
    content: "Coffee Break";
  }
}

.schedule-grid,
.schedule-grid2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* 5 equal columns */
  gap: 10px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.table-header {
  font-weight: bold;
  background-color: #0048e9;
  color: white;
  padding: 10px;
  border: 1px solid #ddd;
}

.item-description strong {
  color: #0048e9 !important;
}

.qr-container {
  border: 3px solid #ddd;
}

.qr {
  width: 15rem;
}

.profile-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.table-container {
  margin: 5vw;
}

.hidden-tab {
  display: none !important;
}

/* 
.menu-register {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 20px 0 !important;
} */


.right-side {
  padding-left: 100px;
}

.container-right-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px;
  width: 100%;
  gap: 30px;
  background: linear-gradient(135deg, #4980f9 0%, #143c91 40%, #061129 100%);
  border-radius: 25px;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
  height: 94%;
}

.container-right-side *>*,
.container-right-side>* {
  color: white !important;
  font-family: "CardFont";
  font-size: 1.09em;
  text-shadow:
    0.15em 0.15em 0.1em rgba(0, 0, 0, 0.7),
    0em 0.15em 0.1em rgb(255, 255, 255, 0.2);
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .table-header {
    grid-column: span 2;
  }

  .table-header:hover {
    cursor: pointer;
  }

  .selected {
    background-color: #d642ea90;
  }

  .main-body .container {
    padding: 10px;
  }

  .container-right-side {
    height: 100%;
    padding: 30px;
    gap: 30px;
  }

  .container-right-side *>* {
    font-size: 1em;
  }

  .container-right-side *> {
    font-size: 0.8em;
  }

  .right-side {
    padding: 0px !important;
    margin: 0px !important;
    justify-content: center;
  }

}

@media (max-width: 992px) {

  .menu-register {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
  }

  .register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -5px;

    a {
      display: inline-block;
      background-color: #0048e9;
      width: max-content !important;
      height: 100% !important;
      font-size: 1rem !important;
      padding: 15px !important;
    }

  }

  .right-side {
    padding: 15px !important;
  }

  .flip-card-front h1 {
    font-size: 2em;
  }


  .container-right-side {
    margin-left: 0px !important;
  }

}

@media (max-width: 1400px) {

  .flip-card {
    max-width: 100% !important;
  }

  .right-side {
    padding-left: 30px;
  }

}

/* END RESPONSIVE  */

.item-description a {
  color: #0048e9;
  text-decoration: underline;
}

.item-description a:hover {
  color: #002f95;
  text-decoration: none;
}

/* .topic_container {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  margin: 50px 0;
}

.topic_container p {
  padding-left: 10px;
}

.topic_container li {
  list-style-type: armenian;
  list-style-position: inside;
  padding: 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.topic_container li:hover {
  background: #0554ff;
  color: white;
  transform: scale(105%);
  box-shadow: 0 5px 5px 5px rgba(0, 0, 0, 0.1);
}

.topic_container li:hover p {
  color: white;
} */


/* ========= FLIP CARDS ========== */

.flip-card-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 70px 0;
  width: 100%;
  gap: 30px;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 150px;
}

.flip-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
}

.flip-card:hover .flip-card-front {
  transform: perspective(1000px) rotateX(-180deg);
}

.flip-card:hover .flip-card-back {
  transform: perspective(1000px) rotateX(0deg);
}

.flip-card-front,
.flip-card-back {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  position: absolute;
  gap: 5px;
  border-radius: 25px;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 5px 5px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.8s ease;
}

.flip-card-front {
  background-color: #0048e9;
  color: black;
  transform: perspective(1000px) rotateX(0deg);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  filter: brightness(0.8);
  border-radius: 25px;
}

.flip-card-front h1 {
  font-family: "CardFont";
  position: absolute;
  z-index: 2;
  color: white;
  text-shadow:
    0.2em 0.2em 0.1em rgba(0, 0, 0, 0.7),
    0em 0.15em 0.1em rgb(255, 255, 255, 0.2);
  font-weight: 700;
}

.flip-card-back {
  background-color: #000000;
  color: white;
  border: 1px solid white;
  transform: perspective(1000px) rotateX(180deg);
}

.flip-card-back p {
  color: white !important;
  font-weight: 500 !important;
}

.flip-card-front>*,
.flip-card-back>* {
  margin: 0 !important;
  padding: 0 !important;
}