@import url('https://fonts.googleapis.com/css?family=Hind');

html {
  font-family: Hind;
}

body {
  margin: 0;
  padding-top: 60px;
  background: #606060 url(bg.webp);
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  width: 100%;
  padding: 50px 0px;
}

.card {
  width: 80%;
  position: relative;
  display: block;
  margin: 0px auto;
}

.box {
  width: 90%;
  padding: 20px;
  background: rgba(245, 245, 245, .96);
  border-radius: 10px;
  display: block;
  float: left;
  margin-bottom: 20px;
  overflow: auto;
}

.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
}

table {
  table-layout: fixed;
  width: 100%;
}

table tr {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.subbox {
  width: 250px;
  min-height: 330px;
  margin-top: 30px;
  margin-bottom: 20px;
  margin-left: 15px;
  margin-right: 15px;
  float: left;
  border: 2px solid black;
  background-color: white;
  border-radius: 5px;
  text-align: center;
}

.content {
  margin-top: 15px;
  margin-bottom: 0px;
  color: black;
  font-size: 17px;
}

#navbar {
  background-color: #333;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar-links li {
  padding: 0 20px;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: #ddd;
}

.toggle-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.toggle-button span {
  height: 2px;
  width: 25px;
  background-color: white;
}

@media (max-width: 600px) {
  .navbar-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .navbar-links ul {
    flex-direction: column;
  }

  .navbar-links li {
    padding: 10px 0;
  }

  .toggle-button {
    display: flex;
  }
}

.solid {
  border-top: 2px solid #000;
}

.preview {
  outline: 1px solid #000000;
}

canvas {
  display: block;
  margin: 0 auto;
  outline: 1px solid #000000;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: #f1f1f1;
  color: black;
  font-size: 16px;
  padding: 16px 30px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
}

.btn:hover {
  background-color: black;
  color: white;
}