* {
    box-sizing: border-box;
  }
  input:focus,
  select:focus,
  textarea:focus,
  button:focus {
      outline: none;
  }
body {
    background-color: #f0f7c8;
    overflow-x: hidden;
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    height: 100%;
}
.ball {
  position: absolute;
  border-radius: 100%;
  opacity: 0.3;
  z-index: -100;
}
nav {
    position: fixed;
    
    width: 100%;
    top: 0;
    left: 0;
    padding: 0.25em 0 0;
    z-index: 1000;
}
nav a, nav div{
    text-decoration: none;
    font-size: 1.3em;
    margin-left: 0.5em;
    color: #4a1a88;
}
nav div {
    display: inline;
    margin-left: 0.75em;
}
.fliper {
    width: 100%;
    height: 100%;
    transition: all 0.75s ease;
    transform-style: preserve-3d;
    position: relative;
}
.fliper.is-flipped {
    transform: rotateY(180deg);
}
.front, 
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.back {
    transform: rotateY(180deg);
    display: none;
}
header {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}
.header {
    max-width: 480px;
    text-align: center;
    text-shadow: 0 0 5px #0099ff;
}
.header h1 {
    font-weight: bold;
    font-size: 4em;
    margin-top: 0.3em;
    margin-bottom: 0;
}
.header h2 {
    font-size: 1.3em;
    font-weight: bold;
}
@media only screen and (max-width: 600px) {
    nav {
        text-align: center;
    }
    nav div {
		margin-left: 0;
    }
    .header h1 {
        margin-top: 0.5em;
    }
}
.grid-container {
    width: 100%;
    margin: 1em auto;
}
.grid {
    display: grid;
    grid-gap: 1.5em;
    grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
    grid-auto-rows: 20px;
    padding-bottom: 0.5em;
  }  
.item {
    background-color: #ffffff;
    text-decoration: none;
    color: black;
    box-shadow: 5px 5px 20px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 30%);
    border-radius: 0.75em;
}
.title {
    padding: 20px;
    border-radius: 0.5em 0.5em 0 0;
}
.title h3{
    font-size: 1.4em;
    line-height: 1.2em;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    cursor: pointer;
}
.desc{
    padding: 0 1.2em;
}
.desc p{
    margin-bottom: 10px;
}
.front section {
    width: 100%;
    max-width: 1200px;
    margin: 2em auto 0 auto;
    display: flex;
    gap: 1.5em;
}
.front section .toc-btn {
    position: fixed;
    background-color:white;
    top: 2em;
    right: 0;
    border: none;
    border-radius: 0.25em 0 0 0.25em;
    font-size: 1.5em;
    display: none;
}
.front section .toc {
    width: 30%;
}
.front section .toc nav {
    position: sticky;
    background-color: white;
    top: 2.5em;
    border-radius: 0.75em;
    padding: 0.1em 0.5em;
}
.front section .toc nav a {
    margin-left: 0;
    font-size: 1.2em;
}
.front section .content {
    width:70%;
    background-color: white;
    border-radius: 0.75em;
    padding: 2em 1.5em;
}
.content-title {
    font-size: 2.5em;
    font-weight: bold;
}
.term{
	background-color: white;
	border-radius: 0.75em;
	padding: 2em 1.5em;
}
@media only screen and (max-width: 768px) {
	body {
		padding: 0 0.5em;
	}
    .front section {
        display: block;
    }
    .front section .toc {
        display: none;
    }
    .front section .content {
        width: auto;
        padding: 2em 1em;
    }
    .term {
		padding: 1em 1em;
    }
}
.back section {
    width: 100%;
    max-width: 1200px;
    margin: 0.5em auto;
    display: flex;
    gap: 1.5em;
}
.back section .about {
    width:60%;
    background-color: white;
    padding: 2em 1.5em;
    border-radius: 0.75em;
}
.back section .side {
    width:40%;
}
.back section .side .sidebar {
	padding: 2em 1.5em;
    background-color: white;
    border-radius: 0.75em;
    height: fit-content;
}
.about-title {
    font-size: 2em;
    font-weight: bold;
    text-decoration: underline;
}
.label {
    text-align: center;
    font-weight: bold;
    color: white;
    padding: 6px 12px;
    border-radius: 0.25em;
    line-height: 2em;
    text-shadow: none;
}
.pagination {
    text-align: center;
    padding: 0;
    margin: 0;
}
.pagination li{
    display: inline-block;
    padding: 0 8px;
    background-color: teal;
    border-radius: 0.25em;
    margin: 0 0.2em;
}
.pagination .disabled {
	background-color: gray;
}
.pagination .active {
	background-color: rebeccapurple;
}
.pagination li a {
    color: white;
    font-weight: bold;
    line-height: 0;
}
input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 4px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  font-size: 1.25em;
}

input[type=submit]:hover {
  background-color: #45a049;
}
@media only screen and (max-width: 768px) {
	.back section {
		display: block;
	}
    .back section .about,
    .back section .side {
        width: 100%;
        margin-bottom: 1em;
    }
}
.share {
    margin-top: -0.5em;
}
.share a {
    text-decoration: none;
    margin-right: 0.3em;
    font-size: 1em;
}
footer {
    position: relative;
    bottom: 0px;
    z-index: 10000;
    text-align: center;
    padding-bottom: 5px;
}
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 2em auto; /* 15% from the top and centered */
    padding: 15px;
    border: 1px solid #888;
    width: 100%; /* Could be more or less, depending on screen size */
    max-width: 320px;
    border-radius: 0.75em;
  }
  
  .modal-content input[type=text] {
    width: 80%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid grey;
    float: left;
    border-radius: 0.25em 0 0 0.25em;
  }

  .modal-content button {
      float: left;
      width: 20%;
      padding: 10px;
      font-size: 1em;
      border: 1px solid grey;
      border-left: none; /* Prevent double borders */
      cursor: pointer;
      border-radius: 0 0.25em 0.25em 0;
  }
  .modal-content::after {
    content: "";
    clear: both;
    display: table;
  }
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
