@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

.disable-transitions * {
  transition: none !important;
  animation: none !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*:before,
*:after {
  box-sizing: inherit;
}

:root {
  /* ===== Colors ===== */
  --body-color: #fff;
  --sidebar-color: #ffc199;
  --primary-color: #ff7919;
  --header-color: #ff9640;
  --primary-color-light: #f6f5ff;
  --toggle-color: #ddd;
  --text-color: #010101;
  --container-bg-color: #f4f5f7;
  --nav-color: #f4f4f4;
  --button-color: #f0f0f0;
  --solve-color-1: #1100ff;
  --solve-color-2: rgb(73, 100, 255);
  --solve-color-3: #3149ff;
  --solve-color-4: #1b14ff;
  /* ====== Transition ====== */
  --tran-03: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.3s ease;
  --tran-05: all 0.3s ease;

  /* ==== Verdict Color ==== */
  --ac-color: #008600;
  --wa-color: #ff0000;
  --rte-color: #c8c800;
  --mle-color: #7400f0;
  --ce-color: #d30000;
}

.home {
  background-color: var(--body-color);
  transition: var(--tran-05);
  min-height: 100vh;
}

html {
  height: 100%;
  box-sizing: border-box;
  /* font-family: "Inter", sans-serif !important; */
}

body {
  min-height: 100vh;
  width: 100%;
  height: 100%;
  padding: 0px;
  margin: 0px;
  background-color: var(--body-color);
  transition: var(--tran-05);
  /* display: flex; */
  overflow-x: hidden;
  flex-direction: column;
  display: none;
  /* align-items: center */
}

body.dark {
  --body-color: #101524;
  --sidebar-color: #242526;
  --primary-color: #2b52bc;
  --header-color: #3c60c2;
  --primary-color-light: #192139;
  --toggle-color: #171e32;
  --text-color: #fff;
  --nav-color: #0e111e;
  --button-color: #182242;
  --container-bg-color: #1e293b;
  --solve-color-1: #00ff00;
  --solve-color-2: #34ff34;
  --solve-color-3: #69ff69;
  --solve-color-4: #31ff31;

  /* ==== Verdict Color ==== */
  --ac-color: #00ff00;
  --wa-color: #ff0000;
  --rte-color: #ffff00;
  --mle-color: #7400f0;
  --ce-color: #d30000;
}

.body>* {
  flex-shrink: 0;
}

::selection {
  background-color: var(--primary-color);
  color: #fff;
}

.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
  border-radius: inherit;
}

@keyframes skeleton-loading {
  0% {
    background-color: #6c757d;
  }

  100% {
    background-color: hsl(208, 7%, 70%);
  }
}

.inline {
  display: inline-block;
}

table td.shrink {
  white-space: nowrap;
}

table td.expand {
  width: 99%;
  text-align: left;
}

.nav-link {
  background-color: var(--nav-color) !important;
}

.navbar-brand {
  background-color: var(--nav-color) !important;
}

.splash-img {
  width: 150px;
  height: 50px;
  overflow: hidden;
  margin-top: 2px;
}

.breadcrumb {
  background-color: var(--toggle-color) !important;
  width: 100vw;
}

.breadcrumb-item {
  color: var(--primary-color) !important;
}

.breadcrumb-item.active {
  color: var(--text-color) !important;
}

/* .nav-link.dark {
  background-color: var(--nav-color) !important;
}

.navbar-brand.dark {
  background-color: var(--nav-color) !important;
}

.breadcrumb.dark {
  background-color: #171e32 !important;
  width: 100vw;
} */

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  padding: 10px 14px;
  background: var(--sidebar-color);
  transition: var(--tran-05);
  z-index: 100;
}

.sidebar.close {
  width: 88px;
  padding: 10px 14px;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
  height: 50px;
  list-style: none;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
}

.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sidebar .text,
.sidebar .icon {
  color: var(--text-color);
  transition: var(--tran-03);
}

.sidebar .text {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
}

.sidebar.close .text {
  opacity: 0;
}

/* =========================== */
.sidebar header {
  position: relative;
}

.sidebar header .image-text {
  display: flex;
  align-items: center;
}

.sidebar header .logo-text {
  display: flex;
  flex-direction: column;
}

header .image-text .name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

header .image-text .profession {
  font-size: 16px;
  margin-top: -2px;
  display: block;
}

.sidebar header .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar header .image img {
  width: 40px;
  border-radius: 6px;
}

.sidebar header .toggle {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%) rotate(180deg);
  height: 25px;
  width: 25px;
  background-color: var(--primary-color);
  color: var(--sidebar-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: var(--tran-05);
}

.sidebar.close .toggle {
  transform: translateY(-50%) rotate(0deg);
}

.sidebar .menusidebar {
  margin-top: 40px;
}

.sidebar li.search-box {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  cursor: pointer;
  transition: var(--tran-05);
}

.sidebar li.search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  background-color: var(--primary-color-light);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  transition: var(--tran-05);
}

.sidebar li a {
  list-style: none;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--tran-03);
}

.sidebar li a:hover {
  background-color: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
  color: var(--sidebar-color);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
  color: var(--text-color);
}

.sidebar .menu-sidebar {
  height: calc(100% - 55px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
}

.menu-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar .menu-sidebar .mode {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  position: relative;
  transition: var(--tran-05);
}

.menu-sidebar .mode .sun-moon {
  height: 50px;
  width: 60px;
}

.mode .sun-moon i {
  position: absolute;
}

.mode .sun-moon i.sun {
  opacity: 0;
}

body.dark .mode .sun-moon i.sun {
  opacity: 1;
}

body.dark .mode .sun-moon i.moon {
  opacity: 0;
}

.menu-sidebar .bottom-content .toggle-switch {
  position: absolute;
  right: 0;
  height: 100%;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}

.toggle-switch {
  margin-top: 0.24rem !important;
}

.toggle-switch .switch {
  position: relative;
  height: 22px;
  width: 40px;
  border-radius: 25px;
  background-color: var(--toggle-color);
  transition: var(--tran-05);
}

.switch::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  background-color: var(--sidebar-color);
  transition: var(--tran-04);
}

body.dark .switch::before {
  left: 20px;
}

.home .text {
  color: var(--text-color) !important;
  background-color: var(--body-color);
  margin-bottom: 0 !important;
}

.table2 {
  background-color: var(--primary-color-light) !important;
}

.sidebar.close~.home {
  left: 78px;
  height: 100vh;
  width: calc(100% - 78px);
}

body.dark .home .text {
  color: var(--text-color);
}

.i1i1i1i1i1i {
  font-family: boxicons !important;
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  display: inline-block;
  text-transform: none;
  /* speak: none; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  margin: 0;
}

#content {
  min-height: 600px;
  height: auto !important;
  flex: 1 1 auto !important;
}

.submit {
  background-color: var(--solve-color-1);
  border: 5px solid var(--solve-color-2);
  font-size: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 1800;
  padding: 10px 28px;
  border-radius: 10px;
  transition-duration: 0.4s;
  margin-top: 10px;
  color: white;
}

.submit:hover {
  background-color: var(--solve-color-3);
  border: 5px solid var(--solve-color-4);
  color: black;
}

.navbar-toggler {
  border: 3px solid var(--bs-navbar-toggler-border-color) !important;
  border-radius: 6px !important;
}

.dark .navbar-toggler {
  border: 3px solid #171e32 !important;
  border-radius: 6px !important;
}

.navbar-toggler-icon {
  background: url("https://img.icons8.com/?size=30&id=OTxpMqWbm71F&format=png&color=444444") !important;
  width: 30px !important;
  height: 30px !important;
}

.dark .navbar-toggler-icon {
  background: url("https://img.icons8.com/?size=30&id=OTxpMqWbm71F&format=png&color=bebebe") !important;
  /* color: #bebebe; */
  width: 30px !important;
  height: 30px !important;
}

.flex-1 {
  color: var(--text-color);
}

.pointsdisplay {
  padding: 8px 24px;
  border: none;
  width: 6.5rem;
  height: 2.6rem;
  border-radius: 1rem;
  background-color: var(--toggle-color);
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-shadow: black;
  text-align: center;
  margin-right: 5px;
  margin-top: 0.2rem;
}

.pointimg {
  margin-bottom: 0.3rem;
  transition-duration: 0.3s;
  width: 25px;
  height: 25px;
}

.verdict-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.pending {
  color: var(--text-color) !important;
}

.ac {
  color: var(--ac-color) !important;
}

.wa {
  color: var(--wa-color) !important;
}

.tle {
  color: var(--text-color) !important;
}

.rte {
  color: var(--rte-color) !important;
}

.ce {
  color: var(--ce-color) !important;
}

.mle {
  color: var(--mle-color) !important;
}

.code-box {
  background-color: var(--nav-color);
  color: var(--text-color);
  margin: 0.5rem;
}

.source-box {
  background-color: var(--nav-color);
  border-radius: 12px;
  margin: 2rem;
  padding: 1rem;
}

.code {
  color: var(--text-color);
}

/* Contests */

.contest-table {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 78% !important;
}

.contest-table td,
.contest-table th {
  border: 1px solid var(--text-color);
  padding: 8px;
  color: var(--text-color);
  text-align: center;
  width: 17%;
}

.contest-table tr:nth-child(even) {
  background-color: var(--primary-color-light) !important;
}

.contest-table th {
  border: 1px solid var(--text-color) !important;
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: var(--header-color);
  color: var(--text-color);
}

.time-text {
  color: var(--text-color);
  font-size: small;
}

.total-points {
  font-size: larger;
  /* color: var(--ac-color) !important; */
}

.offcanvas {
  transition: all 0.2s ease-in-out;
}

@media(max-width: 991px) {
  .sidebar {
    backdrop-filter: blur(5px) !important;
  }
}

/* PROFILE */

.p-container {
  position: sticky;
  /* background-color: var(--nav-color); */
  width: 15rem;
  height: 25rem;
  padding: 12px;
  border-radius: 10%;
  /* cursor: pointer; */
  /* box-shadow: 0 0 60px 5px #000; */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  margin-top: 4rem;
  margin-bottom: 7rem;
}

.img-container {
  width: 15rem;
  height: 25rem;
  border-radius: 10%;
  overflow: hidden;
  /* box-shadow: 0 0 60px 5px #000; */
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
}

.img-container img {
  height: 100%;
  max-height: 100%;
  border-radius: 10%;
}

.ptext {
  /* background-color: #000; */
  opacity: 0;
  transition: all 150ms ease-in-out;
  position: sticky;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  margin: auto;
  width: 12rem;
  /* [OPTIONAL] modify from 300px */
  height: 0;
  /* ditto */
  color: #fff;
  pointer-events: none;
}

.trigger:hover+.ptext,
.trigger:focus+.ptext {
  opacity: 1;
  width: 15rem;
  height: 9rem;
  text-shadow: black 0 2px .1rem;
}

.nickname {
  font-size: 180%;
}

.full-name {
  font-size: 70%;
}

.role {
  font-size: 110%;
}

.zoom {
  transition: transform .2s;
}

.zoom:hover {
  transform: scale(1.25);
}

.theme-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--toggle-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  margin: 0 5px;
}

.theme-btn:hover {
  background-color: rgba(100, 116, 139, 0.2);
  transform: rotate(30deg);
  transition: 0.2s ease-in-out;
}

.icon {
  width: 25px;
  height: 25px;
  stroke-width: 2;
  color: var(--text-color);
}