.container, .containerTorqueFB, .containerTorqueDB{
  text-align: center;
}
@media screen and (min-width: 780px) {
.content{
margin: auto;
width: 80%;
}}

.content{
min-height: 1000px;
padding-top: 10px;
}

.box2{
display: inline-table;
margin-top: 10px;
margin-bottom: 10px;
}
.box2 input{width: 150px;}
.box2 select{width: 130px;}
.box3{
  display: inline-table;
  }

th {
  top: 0;
  position: -webkit-sticky; /* Safari */  
   position: sticky;
   background: #fff;
 }

.btn1 {
    text-align: center;
    color: #fff;
    margin-left: 20px;
    margin-right: 20px;

    height: 40px;
    width: 150px;
    border: none;
    border-radius: 10px;
    background-color: rgba(39, 43, 44, 0.87);
    display:table-cell;
    vertical-align:middle;
}
.btn1 a:visited{color: #fff;}
.btn1 a:link{color: #fff;}
.btn1 a:hover{color: #9b9b9b;}

.btn2 {
  text-align: center;
  color: #fff;
  top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  height: 30px;
  width: 150px;
  border: none;
  border-radius: 10px;
  background-color: rgba(39, 43, 44, 0.87);
  display:table-cell;
  vertical-align:middle;
}

th, td {
  padding-left: 4px;
  padding-right: 4px;
  border: 1px solid black;
}

.javascriptNotEnabled{
  color: red;
  font-size: large;
  font-weight: bold;
}
/* UTILITIES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, serif, sans-serif;
}

a {
  text-decoration: none;
}
h1{
  margin-top: 10px;
  margin-bottom: 10px;
}

li {
  list-style: none;
}

output{
  border: black;
  min-width: 100px;
}


/* NAVBAR STYLING STARTS  */
.navbar {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: rgba(39, 43, 44, 0.87);
  color: #fff;
  box-shadow: 3px 0 13px rgba(30, 30, 30, 0.90);
}

.nav-links a {
  color: #fff;
}

/* LOGO */
.logo {
  font-size: 32px;
}

/* NAVBAR MENU */
.menu {
  display: -webkit-box;   /* OLD - iOS 6-, Safari 3.1-6, BB7 */
  display: -ms-flexbox;  /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
  display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */
  gap: 1em;
  font-size: 18px;
}

.menu li:hover {
  background-color: #616161;
  border-radius: 5px;
  transition: 0.3s ease;
}

.menu li {
  padding: 5px 14px;
}

/* DROPDOWN MENU */
.calculatorsNav {
  position: relative; 
}
.tablesNav {
  position: relative; 
}
.dropdown {
  background-color: #616161;
  padding:  10px 0;
  position: absolute; /*WITH RESPECT TO PARENT*/
  transition: opacity 1s ease-out;
  opacity: 0;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  top: 35px;

}

.dropdown li + li {
  margin-top: 10px;
}

.dropdown li {
  padding: 0.5em 1em;
  width: 8em;
  text-align: center;
}

.dropdown li:hover {
  background-color: #474747;
}

.calculatorsNav:hover .dropdown {
  opacity: 1;
  height: auto;
}
.tablesNav:hover .dropdown {
  opacity: 1;
  height: auto;
}

/* RESPONSIVE NAVBAR MENU STARTS */

/* CHECKBOX HACK */

input[type=checkbox] {
  display: none;
} 

/* HAMBURGER MENU */
.hamburger {
  display: none;
  font-size: 24px;
  user-select: none;
}

/* APPLYING MEDIA QUERIES (max-width was 768px*/
@media (max-width: 650px) {
  .box2{
    margin-top: 5px;
    margin-bottom: 5px;
    }
  .box3{
    font-size:x-small;
  }

  .btn1 {
    margin-left: 5px;
    margin-right: 5px;
    height: 30px;
    width: 120px;
    border-radius: 5px;
    font-size: smaller;
  }

 .menu {
    display:none;
    position: absolute;
    background-color:#474747;
    right: 0;
    left: 0;
    text-align: center;
    padding: 16px 0;
  }

  .menu li:hover {
    display: inline-block;
    background-color: #474747;
    transition: 0.3s ease;
  }

  .menu li + li {
    margin-top: 12px;
  }

  input[type=checkbox]:checked ~ .menu {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .dropdown {
    visibility: hidden;
    left: 50%;
    top: 30px;
    transform: translateX(35%);
  }

  .dropdown li:hover {
    background-color: #616161;
  }
}