/*
*   Homepage
*/
body {
  margin: 0;
  padding: 0;
}

#line1 {
  height: 2px;

  margin: 75.4px 10px 0px 224px;

  background-color: gray;
}

#line2 {
  height: 4px;
  width: 90%;

  margin: 8px 0px 0px 10%;

  background-color: green;
}

.title_wrapper img {
  margin: 10px 10px;

  position: absolute;
  z-index: 2;

  border-radius: 20px;
  border: green 4px solid;
}

.title_wrapper{
  height: 130px;

  border: white 1px dashed;
}

.title {
  font-family: "Georgia", serif;
  font-size: 30px;
  text-align: left;

  width: calc(100% - 240px);

  margin: 30px 225px;

  position: absolute;
  z-index: 2;
  white-space: nowrap;
}

.nav_menu {
  display: flex;

  margin: 12px 0px 0px 220px;
  position: relative;
  z-index: 1;
}

.calculations_dropdown
.other_dropdown {
  position: relative;
  display: inline-block;
}

.calculations_dropdown button {
  font-family: "Georgia", serif;
  font-size: 16px;

  padding: 10px;
  margin: 0px;
  width: 140px;

  background-color: white;
  color: RGB(150, 200, 255);
  border-left: none;
  border-right: 2px gray solid;
  border-top: none;
  border-bottom: none;
}

.videos_button {
  font-family: "Georgia", serif;
  font-size: 16px;

  padding: 10px 0px;
  margin: 0px;
  width: 140px;

  background-color: white;
  color: RGB(150, 200, 255);
  border: none;

  cursor: pointer;
}

.videos_button a {
  color: RGB(135, 185, 240);
  text-decoration: none;
}

.other_dropdown button {
  font-family: "Georgia", serif;
  font-size: 16px;

  padding: 10px 0px;
  margin: 0px;
  width: 140px;

  background-color: white;
  color: RGB(150, 200, 255);
  border-left: 2px gray solid;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

.title_wrapper .calculations_dropdown:hover button {
  border-left: 2px gray solid;
  border-bottom: 2px gray solid;
}

.videos_button:hover {
  background-color: RGB(135, 185, 240);
}

.videos_button:hover a {
  color: white;
}

.title_wrapper .other_dropdown:hover button {
  border-right: 2px gray solid;
  border-bottom: 2px gray solid;
}

.dropbtn:hover{
  background-color: RGB(135, 185, 240);
  color: white;
}

.dropdown_content {
  text-align: center;

  width: 136px;
  padding: 0px;
  margin: 0px;

  display: none;
  position: fixed;
  white-space: wrap;
  z-index: 10;

  background-color: white;
  border-top: none;
  border-right: 2px gray solid;
  border-bottom: 2px gray solid;
  border-left: 2px gray solid;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: black;
}

.calculations_dropdown:hover .dropdown_content,
.other_dropdown:hover .dropdown_content {
  display: block;
}

.dropdown_content a {
  display: block;
  padding: 10px;
  color: RGB(135, 185, 240);
}

.nav_menu a:hover {
  background-color: #bde2ff;
}

.subtitle {
  font-family: "Georgia", serif;
  font-style: italic;
  text-align: center;
  font-size: 16px;

  margin-top: 10px;
  padding: 0px 50px;

  color: black;
}

.subtitle h3 {
  font-style: normal;
}

.calculations {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;

  width: 100%;
  height: 400px;

  margin: 20px 0px;
}

.calculations button {
  font-family: "Georgia", serif;
  font-size: 16px;

  width: 140px;
  height: 50px;

  margin: 10px 10px 0px 10px;

  color: white;
  background-color: RGB(150, 200, 255);
  border: RGB(135, 185, 240) 5px solid;
}

.factorizations_dropdown,
.properties_dropdown,
.operations_dropdown {
  font-family: "Georgia", serif;
  position: relative;
  display: inline-block;

  white-space: wrap;
}

.factorizations_content,
.properties_content,
.operations_content {
  text-align: center;

  width: 140px;

  margin: 0px 10px 0px 10px;
  padding: 0;
  top: 100%;
  left: 0;

  align-self: center;

  display: none;
  position: absolute;
  z-index: 10;

  background-color: RGB(135, 185, 240);
}

.factorizations_content a,
.properties_content a,
.operations_content a {
  padding: 10px;

  display: block;

  color: white;
}

.factorizations_content a:hover,
.properties_content a:hover,
.operations_content a:hover {
  background-color: #bde2ff;
}

.factorizations_dropdown:hover .factorizations_content,
.properties_dropdown:hover .properties_content,
.operations_dropdown:hover .operations_content {
  display: block;
}

.factorizations_dropdown:hover .factorizations_dropbtn,
.properties_dropdown:hover .properties_dropbtn,
.operations_dropdown:hover .operations_dropbtn {
  background-color: white;
  color: RGB(150, 200, 255);
}

/*
*   Calcultion pages
*/
.minititle{
  height: 80px;
  width: 100vw;

  margin-top: -120px;
  margin-left: 0px;

  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  position: fixed;

  z-index: 10;

  background-color: white;
  border-bottom: 4px green solid;
}

.minititle img {
  margin: 0px;
  padding: 0px;

  position: fixed;
}

.minititle h1 {
  font-family: "Georgia", serif;
  font-weight: bold;
  font-size: 20px;
  text-align: left;

  margin-top: 10px;
  margin-left: 140px;
  white-space: nowrap;

  position: fixed;

  color: white;
  background-color: white;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.minititle .nav_menu {
  display: flex;

  width: 100%;

  margin: 42px 0px 0px 128px;
  position: fixed;
  z-index: 10;

  background-color: white;
}

.minititle .nav_menu .dropbtn {
  color: green;
}

.minititle .nav_menu .videos_button a{
  color: green;
}

.minititle .nav_menu .dropbtn:hover,
.minititle .nav_menu .videos_button:hover {
  background-color: RGB(186,240,197);
}

.minititle .nav_menu .dropdown_content a{
  color: green;
}

.minititle .nav_menu .dropdown_content a:hover{
  background-color: RGB(186,240,197);
}

.calculator{
  font-family: "Georgia", serif;
  font-weight: bold;

  width: 100%;

  margin-top: 120px;

  display: flex;
  align-items: center;

  white-space: nowrap;
}

.calculator input {
  width: 30px;

  padding: 5px;
  margin-left: 5px;

  z-index: 1;
}

.calculator label {
    margin-left: 20px;

    z-index: 1;
}

.calculator h5 {
  font-style: italic;
  text-align: center;

  width: 50%;
  white-space: wrap;

  justify-self: center;
}

.calculator button {
  font-family: "Georgia", serif;
  font-weight: bold;
  font-size: 16px;

  width: auto;

  margin-left: 40%;
  margin-right: 40%;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;

  display: flex;
  justify-content: center;

  cursor: pointer;

  color: white;
  background-color: RGB(150, 200, 255);
  border: RGB(135, 185, 240) 5px solid;
  border-radius: 10px;
}

#calculate_button {
  display: none;
}

.matrix_entries {
  display: flex;
  justify-content: center;

  flex-wrap: wrap;
}

.matrix_entries h3 {
  margin-left: -80px;
}

.matrix {
  width: 100%; 

  margin-left: 30%;

  padding: 10px 0px;
}

.calculator input,
.resultCell,
.cell {
  width: auto;

  margin: 5px 5px;
  padding: 5px;
}

.result {
  display: flex;
  justify-content: center;

  flex-wrap: wrap;
}

.result h3 {
  margin-left: -80px;
}

.visualization {
  display: flex;
  justify-content: center;

  z-index: 1;
}

.visualization video{
  width: 800px;
  height: auto;

  margin-top: 20px;
  margin-bottom: 100px;

  z-index: 1;

  position: relative;
}

footer {
  font-family: "Georgia", serif;
  font-size: 15px;
  text-align: center;

  width: 100%;
  height: 120px;
  bottom: 0px;
  left: 0px;

  position: relative;

  background-color: RGB(186,240,197);
  border-top: 5px green solid;

}