* {
  margin:  0;
  padding:  0;
  box-sizing: border-box;
  font-family: "Segoe UI";
}

:root {
  /* Dark mode colors */
  --background-color: #444;
  --background-color-2: #555;
  --background-opposite: #888;
  --text-color: #fff;
  --text-color-opposite: #000;
  --sidebar-color: #000;
  --button-color: #23c0fa;
  --button-text: #fff;
  --hover-color: #666;
  --tooltip-color: #000;
  --transition: all 0.3s ease;
}

[data-theme="light"] {
  /* Light mode colors */
  --background-color: #eee;
  --background-color-2: #ddd;
  --background-opposite: #333;
  --text-color: #000;
  --text-color-opposite: #fff;
  --sidebar-color: #91cdeb;
  --button-color: #23c0fa;
  --button-text: #fff;
  --hover-color: #eee;
  --tooltip-color: #fff;
  --transition: all 0.3s ease;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: var(--transition);
  font-size: 12px;
}

.title-bar {
  display: flex;
  justify-content: space-between;
  margin: 1em;
  margin-top: 0;
}

.info-button {
  color: var(--text-color);
  font-size: 2em;
}

@media (max-width: 768px) {
  /* Top Section */
  .top-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-color-2);
    color: var(--text-color);
    padding: 0.83em 1.66em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .logo-link {
    text-decoration: none;
  }
  
  .logo-name {
    display: flex;
    align-items: center;
  }
  
  .logo {
    display: flex;
  }
  
  .logo-text {
    display: block;
    padding-top: 3px;
    color: var(--text-color);
  }
  
  .logo-text span {
    font-size: 16px;
  }
  
  .menu-icon {
    font-size: 2em;
    cursor: pointer;
  }
  
  .sidebar {
    position: fixed;
    top: 5.5em;
    right: -100%;
    width: 100%;
  	height: calc(100% - 5.5em);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  .sidebar-content {
    padding: 1.66em;
  }
  
  .sidebar.active {
    right: 0;
  }
  
  .main-content {
	position: relative;
	top: 5.5em;
  	height: calc(100% - 5.5em);
    margin: 1em;
  }
  
  .user {
    margin: 1rem;
  }
  
  .sidebar ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .main-content {
	position: relative;
	left: 80px;
	padding: 1rem;
  	width: calc(100% - 80px);
  }

  .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80px;
    background-color: var(--sidebar-color);
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
    position: fixed;
  }
  
  .sidebar.active ~ .main-content {
    left: 250px;
    width: calc(100% - 250px);
  }
  
  .sidebar.active {
    width: 250px;
  }
  
  .user {
    margin: 1rem 0.15rem;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
}

button {
  padding: 0.5rem 1rem;
  background-color: var(--button-color);
  color: var(--button-text);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  opacity: 0.8;
}

span {
  display: block;
}

.different-color {
  background-color: var(--background-color-2);
}

.main-content {
  min-height: 100vh;
  max-width: 100vw;
  transition: all 0.3s ease;
}

.dropdowns {
  display: inline-flex;
}

.dropbtn {
  background-color: var(--button-color);
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  min-width: 160px;
  text-align: center;
  height: 50px;
  border-radius: 12px;
  line-height: 50px;
}

#top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  z-index: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 60px;
  height: 60px;
  font-size: 30px;
  display: block !important;
}

#top-btn:hover {
  background-color: #45a049;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

.footer-links {
  display: flex;
}

.footer-links a {
  text-decoration: underline;
  color: var(--text-color);
  margin-right: 0.5rem;
}

.footer .small {
  font-size: smaller;
}

.disclaimer-text {
  text-align: center;
}

.disclaimer-text-upper {
  padding-top: 1rem;
  text-align: center;
}

.disclaimer-text-lower {
  padding-bottom: 1rem;
  text-align: center;
}

.sidebar #menuBtn {
  position: absolute;
  color: var(--text-color);
  top: 0.4rem;
  left: 50%;
  font-size: 1.2rem;
  line-height: 50px;
  transform: translateX(-50%);
  cursor: pointer;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.sidebar.active #menuBtn {
  left: 90%;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.sidebar .logo-link {
  width: 175px;
  text-decoration: none;
}

.sidebar.active .logo-link {
	display: block;
}

.sidebar .top .logo {
  color: var(--text-color);
  display: flex;
  height: 50px;
  width: 100%;
  align-items: center;
  pointer-events: none;
  opacity: 0;
}

.sidebar.active .top .logo {
  opacity: 1;
}

.user {
  display: flex;
  align-items: center;
}

.user-img {
  width: 50px;
  border-radius: 100%;
  border: 1px solid #eee;
}

.user p {
  color: var(--text-color);
  opacity: 1;
  margin-left: 1rem;
  display: none;
  overflow-wrap: break-word;
  font-size: 16px;
}

.sidebar.active .user p {
  margin-left: 1rem;
  display: block;
}

.sidebar .user #logoutBtn {
  color: var(--text-color);
  opacity: 1;
  font-size: 1.2rem;
  line-height: 50px;
  cursor: pointer;
  display: none;
}

.sidebar.active .user #logoutBtn {
  position: absolute;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  display: block;
  right: 1em;
}

.bold {
  font-weight: 600;
}

.sidebar p {
  opacity: 0;
}

.sidebar.active p {
  opacity: 1;
}

.sidebar ul li {
  position: relative;
  list-style-type: none;
  height: 50px;
  width: 90%;
  margin: 0.8rem auto;
  line-height: 50px;
  font-size: 16px;
}

.sidebar ul li a {
  color: var(--text-color);
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 0.8rem;
  max-width: 50px;
  max-height: 50px;
}

.sidebar ul li a:hover {
  background-color: var(--hover-color);
  max-width: 100%;
}

.sidebar ul li a i {
  min-width: 50px;
  text-align: center;
  height: 50px;
  border-radius: 12px;
  line-height: 50px;
}

.sidebar .nav-item {
  display: none;
}

.sidebar.active .nav-item {
  min-width: 100px;
  overflow: hidden;
  white-space: nowrap;
  display: block;
}

.sidebar ul li .tooltip {
  position: absolute;
  left: 125px;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--background-color);
  box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.2);
  border-radius: 0.6rem;
  padding:  0.4rem 1.2rem;
  line-height: 1.8rem;
  z-index: 20;
  display: none;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar ul li:hover .tooltip {
  display: block;
}

.sidebar ul li .tooltip:hover {
  display: none;
}

.sidebar.active ul li .tooltip {
  display: none;
}

.google {
  margin-top: 1em;
}

.google-sign-in-button-link {
  text-decoration: none;
  color: #1F1F1F;
  font-family: "Google Sans",arial,sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.google-sign-in-button {
  display: flex;
  background-color: #F2F2F2;
  height: 40px;
  padding: 10px 12px;
}

.google-sign-in-button span {
  padding-left: 10px;
  text-decoration: none;
  color: #1F1F1F;
  font-family: "Google Sans",arial,sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.guest {
  margin-top: 1rem;
}

.guest-sign-in-button,
.guest span {
  margin: 0.25rem 0;
}

.warning-message {
  background-color: #e9d502;
  color: #000000;
  font-size: 1.25em;
  padding: 0.5rem;
  margin: 0.5rem;
  text-align: center;
  border-radius: 0.5rem;
}

.hidden {
  display: none;
}