html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: "Google Sans", sans-serif;
  background-image: url("../img/AnhMoi/devfest_background.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  display: flex;
  flex-direction: column;
}

button {
  font-family: "Google Sans", sans-serif !important;
}

.logo-bar {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  padding-bottom: 4px;
}

.header-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.devfest-logo-img {
  height: 55px;
  width: auto;
  display: block;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid #202124;
  background-color: #ffffff;
  color: #202124;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.header-pill--accent {
  background-color: #fbbc05;
  color: #202124;
  font-weight: 500;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.co-organizer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1.5px solid #202124;
  background-color: #d2e3fc;
  color: #202124;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

.co-organizer-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.gdg-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid #202124;
  background-color: #ffffff;
}

.gdg-icon {
  width: 34px;
  height: 22px;
  flex-shrink: 0;
}

.gdg-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.gdg-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #202124;
  letter-spacing: -0.01em;
}

.gdg-subtitle {
  font-size: 0.56rem;
  font-weight: 400;
  color: #3c4043;
}

.gdg-accent {
  color: #1a73e8;
  font-weight: 600;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  padding-bottom: 16px;
}

h1 {
  font-weight: 300;
}

.hidden {
  display: none;
}

img {
  /* mix-blend-mode: multiply; */
}

/*
* Styles for the Score Panel
*/

.head {
  flex-shrink: 0;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

.head h1 {
  text-align: center;
  font-weight: 900;
  font-size: 40px;
}

.head span {
  margin: 0;
}

.head p {
  text-align: center;
  width: 90%;
  margin: 0.25rem auto 1.25rem;
}

.score-info {
  display: flex;
  justify-content: center;
}

.score-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 2px solid #0f7deb;
  width: 86%;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 1px 3px 14px -4px rgba(0, 0, 0, 0.75);
}

.restart i {
  font-size: 24px;
  color: #007bff;
  transition: color 0.3s ease;
}

/*========== Media Query ==========*/

@media screen and (max-width: 960px) {
  .logo-bar {
    flex-direction: column-reverse;
    align-items: center;
    padding: 12px 12px 0;
    gap: 8px;
  }

  .header-left {
    justify-content: space-between;
    padding-bottom: 0;
  }

  .header-right {
    width: 100%;
  }
}

@media screen and (max-width: 540px) {
  .logo-bar {
    padding: 10px 10px 0;
    gap: 8px;
  }

  .header-left {
    width: 100%;
    justify-content: start;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .header-pills {
    gap: 6px;
  }

  .devfest-logo-img {
    height: 40px;
  }

  .header-pill {
    padding: 3px 9px;
    font-size: 0.68rem;
  }

  .header-right {
    width: 100%;
    gap: 5px;
  }

  .co-organizer-badge {
    font-size: 0.64rem;
    padding: 1px 10px;
  }

  .co-organizer-pills {
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .gdg-pill {
    padding: 4px 8px;
    gap: 5px;
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  .gdg-icon {
    width: 22px;
    height: 15px;
  }

  .gdg-title {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gdg-subtitle {
    font-size: 0.56rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .head {
    margin-top: 1.25rem;
  }

  .head h1 {
    font-size: 30px;
  }

  .head p {
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
  }
}