/* Default */

/* Formats the navigation bar */
nav {
  height: fit-content;
  padding: 5px;
  border-radius: 8px;
  grid-column: span 5;
  font-family: Verdana;
  font-size: medium;
  background-color: black;
  text-align: center;
}

nav * {
  color: #ffffff;
}

#nav-placeholder {
  grid-column: span 5;
}

/* Formats the navigation bar's contents */
nav a:link {
  padding: 5px;
  color: white;
  background-color: transparent;
  text-decoration: none;
}

nav a:hover {
  color: black;
  background-color: white;
  text-decoration: underline;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

nav img {
  height: 20px;
  vertical-align: middle;
}

/* Formats the default of everything on web page*/
body {
  background: linear-gradient(to bottom, #394240, #293037);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: min-content min-content auto;
  column-gap: 20px;
  row-gap: 0px;
}


h1 {
  height: fit-content;
  grid-column: span 5;
  padding: 10px;
  border-radius: 8px;
  background-color: #1a1a1a;
}


/* Formats the entire results box */
#result {
  height: 100%;
  grid-column: 4 / span 2;
  padding: 20px;
  padding-bottom: 10px;
  border-radius: 8px;
  background-color: #1a1a1a;
}


/* Formats the entire input data box */
#inputForm {
  height: 100%;
  grid-column: 1 / span 3;
  padding: 20px;
  padding-bottom: 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
}


/* Formats the inputs that allow text */
#inputTable {
  min-width: 150px;
  width: 50%; /* Set your desired fixed width */
  border-collapse: collapse; /* Remove space between table cells */
  margin: 0; /* Remove default margin */
}

#inputTable td {
  padding: 3px;
}

#inputTable td:nth-child(2) {
  width: 60%; /* Set the width of the second column */
}

#inputTable input {
  width: 100%; /* Set the width of the input boxes to 100% of the width of the second column */
  box-sizing: border-box; /* Include padding in the width calculation */
  padding: 3px; /* Add padding to the input boxes for a cleaner look */
  border: 2px solid #ddd; /* Add a light border to the input boxes */
  border-radius: 5px; /* Add rounded corners to the input boxes */
  transition: border-color 0.3s, box-shadow 0.3s; /* Add transitions for smoother effects */
}

#inputTable input:focus {
  outline: none; /* Remove the default focus outline */
  border-color: #3498db; /* Change border color on focus */
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); /* Add a subtle box shadow on focus */
}


/* Formats the buttons */
button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #000000;
}

/* Formats the tick boxes */
input{ 
  margin-right: 5px;
  cursor: pointer;
  flex: 0 0 auto;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-group label {
  background-color: #2c2c2c;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s; /* Add transition for smoother effect */
}

.checkbox-group label:hover {
  background-color: #545454; /* Pink color when hovered or checked */
}
