@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;600&display=swap');
/* Root Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Body styles */
body {
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(#0f0f0f, #121212);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}
/* Header */
h2 {
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
/* Links */
a {
  color: #ffffff;
  fill: #ffffff;
  display: flex;
  align-items: center;
}
/* Active Link */
.active a {
  color: #BB86FC;
  fill: #BB86FC;
}
/* Lists */
ul {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
/* List Items */
li  {
  background-color: #141414;
  padding: 0.5em;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Article */
article {
  display: flex;
  flex-direction: column;
  margin-top: 1em;
}
/* Main */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding: 1em;
  max-width: 600px;
  margin-bottom: 40px;
}
/* Main Section Wrapper */
.main-section-wrapper {
  background-color: #1E1E1E;
  width: 100%;
  height: fit-content;
  min-height: 500px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 1em 1em;
}
/* Main Section Header */
.main-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Expenses Header */
#expenses-header {
  display: none;
}
#friends-list-header {
  display: none;
}
/* Main Section Title */
.section-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
}
/* Introduction Page */
#introduction-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  text-align: center;
  padding: 3em;
  margin-top: 1em;
}
/* Get Started Button */
#get-started-button {
  padding: 0.5em 1em;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 1em 0;
  margin-bottom: 55px;
  text-decoration: none;
  font-size: 1em;
  transition: all 0.3s ease;
  align-self: center;
}
/* Friends List */
.friends-list-article ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: 1.5em;
}
.friends-list-article ul li {
  background-color: #141414;
  padding: 0.5em;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Profile Picture */
.profile-picture {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  order: -1;
}
/* Form */
form {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
/* Select */
select {
  height: 40px;
  background-color: #1E1E1E;
  color: #ffffff;
  border: none;
  font-size: 1em;
  padding: 0 0;
  width: 100%;
}
select:focus-visible {
  outline: none !important;
}
/* Option */
option {
  background-color: #1E1E1E;
  color: #ffffff;
  border: none;
  font-size: 1em;
  padding: 0 1em;
}
/* Label */
label {
  display: none;
}
/* Input Label */
fieldset {
  border: #b9b9b9 solid 2px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 0 1em 0.3em 1em;
}

/* Legend */
legend {
  color: #b9b9b9;
  font-size: 0.8rem;
  font-weight: 300;
  margin-left: 10px;
  padding: 0 10px;
}
/* Inputs */
input {
  height: 40px;
  background-color: #1E1E1E;
  color: #ffffff;
  border: none;
  font-size: 1em;
  width: 100%;
}
input:focus {
  outline: none;
  border: none;
}
#add-friends-input {
  width: 100%
}
#name-input {
  display: flex;
  justify-content: space-between;
  gap: 2em;
}
#add-friend-input-plus {
  width: 30px;
  color: #BB86FC;
  font-weight: 600;
  font-size: 2em;
  cursor: pointer;
  height: fit-content;
  background-color: #00000000;
}
#add-friend-input-plus:hover {
  transform: scale(1.5);
  transition: all 0.3s ease;
  color: blueviolet;
}
#add-friend-input-plus:active {
  transform: scale(0.9);
  transition: all 0.3s ease;
  color: #ffffff;
}
/* Error Message */
.error-message {
  color: #ff0000;
  font-size: 14px;
  margin-top: 0.3em;
  font-weight: 300;
  margin-left: 1em;
}
/* Action words */
.action-word {
  font-size: 1em;
  font-weight: 300;
  color: #BB86FC;
}
.owed-amount {
  display: flex;
  align-items: center;
  gap: 2em;
}
.money {
  font-size: 1.2em;
  font-weight: 600;
  color: #BB86FC;
}
.money-owed {
  font-size: 1.2em;
  font-weight: 600;
  color: #BB86FC;
  display: flex;
  gap: 1em;
  align-items: center;
}
/* Action buttons */
button {
  background-color: #00000000;
  color: #ffffff;
  border: #ffffff solid 1px;
  padding: 0.5em 1em;
  border-radius: 20px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 1em 0;
  margin-bottom: 55px;
}
button:hover {
  background-color: #a35afd;
  color: #fff;
  transform: scale(0.9);
  transition: all 0.3s ease;
  fill: #ffffff;
  border: #bbbbbb solid 1px;
}
.action-button {
  align-self: flex-end;
  color: #000000;
  background-color: #BB86FC;
  border: none;
}
/* Form Buttons */
#form-buttons {
  display: flex;
  align-self: flex-end;
  gap: 1em;
}
#add-expense-button {
  display: none;
}
#add-friends-button {
  display: none;
}
/* Total Spent */
#total-spent {
  margin-top: 1em;
}
/* Footer */
footer {
  position: fixed;
  bottom: 0;
  background-color: #050505;
  width: 100%;
  animation: nav-in 0.3s ease-out;
}
/* Nav */
footer nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  border-top: #BB86FC solid 2px;
  padding: 0.5em 0;
}
/* Nav List */
.nav-list {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}
.nav-list li {
  background-color: #00000000;
}
/* Nav item */
footer nav ul li a{
  text-decoration: none;
  color: #ffffff;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  fill: #ffffff;
  animation: nav-in 0.5s ease-in-out;
}
/* Animation */
@keyframes nav-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}
/*Sections*/
#expenses-section {
  display: none;
}
#totals-section {
  display: none;
}
#balance-section {
  display: none;
  margin-bottom: 60px;
}
/* Hide Buttons on Load */
#form-buttons {
  display: none;
}
#add-friends-button {
  display: none;
}
#add-expense-cancel-button {
  display: none;
}
/* Hide Navigation on load */
#friends {
  display: none;
}
#totals {
  display: none;
}
#balance {
  display: none;
  border: blueviolet solid 2px;
}
#expenses {
  display: none;
}
@media screen and (min-width: 800px) {
  a:hover {
    fill: #bbbbbb;
    color: #bbbbbb;
    transform: scale(1.1);
    transition: all 0.3s ease;
  }  
  svg {
    width: 40px;
    height: 40px;
  }
  footer nav ul li a {
    font-size: 1rem;
  }
}

