@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

:root {
    --primary-color: #333;
    --accent-color: #a8170d;
    --background-color: #F4F4F9;
    --confirm-button-color: #28a745;
    --confirm-button-color-hover: #218838;
    --header-background-color: #171717;
}


/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    background-color: var(--background-color)
}

header {
    background-color: var(--header-background-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid #a8170d;
}

header h1 {
    color: white;
    text-align: center;
    padding: 10px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    margin: 10px;
    margin-top: 0;
    padding: 5px 10px 5px 10px;
    border: solid 1px white;
    border-radius: 5px
}

footer {
  background-color: black;
  color: white;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Body Styling */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: var(--primary-color);
  line-height: 1.6;
  padding: 20px;
  margin-top: 120px;
  padding-bottom: 110px;
  /* align items to center */
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
    width: 80%;
    flex: 1
}

.centered-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 auto;
}

/* Heading Styling */
h1, h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 30px;
}

h2 {
    font-size: 1.5rem;
}

/* Form Styling */
form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

input[type="text"] {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
}

button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--accent-color);
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border: 1px solid #ddd;
}

th {
  background-color:
  var(--background-color);
  color: var(--accent-color);
  font-size: 1.2rem;
}

td {
  font-size: 1rem;
}

td a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

td a:hover {
  color: var(--accent-color);
}

tbody tr:hover {
  background-color: var(--background-color);
}

/* Responsive Styling */
@media (max-width: 768px) {
  table, th, td {
    font-size: 0.9rem;
  }

  form {
    flex-direction: column;
    align-items: center;
  }

  input[type="text"] {
    width: 100%;
    max-width: 300px;
  }

  button {
    width: 100%;
    max-width: 150px;
  }
}

#search-button {
    width: 75px;
    background-color: var(--confirm-button-color);
    border-radius: 5px;
    border: 1px solid lightgray;
}

#search-button:hover {
    background-color: var(--confirm-button-color-hover);
}

.red-button {
    background-color: var(--accent-color);
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.red-button a {
    text-decoration: none;
    color: white
}

.red-button:hover {
    background-color: #8c0d03;
    cursor: pointer;
}

.centered-flex-button {
    width: 200px;
    margin: 0 auto;
    text-align: center;
}

.sentiment-positive {
    color: green;
}

.sentiment-negative {
    color: red;
}

.sentiment-neutral {
    color: grey;
}

.back-link {
    position: fixed;
    bottom: 50px;
    right: 50px;
}

.filter-form {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.filter-form form {
    margin: 0;
}

select {
    min-width: 200px;
}

.chart-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1000px, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.chart {
  background-color: lightgray;
  padding: 30px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  height: 800px;
}

.chart-svg {
    transform: scale(0.9);
    z-index: 1;
}

.member-photo {
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}
