/* The Modal (background) */
.modal {
  display: none;
  position: fixed; /* Stay in place */
  padding-top: 30px;
  z-index: 999; /* 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: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  height: 90vh;
  border-radius: 10px;
}

/* 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;
}

/* Modal Header */
.modal-header {
  padding: 2px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: rgba(0, 0, 0, 0.1) solid 1px;
  box-shadow: 0px 8px 15px -5px rgba(0, 0, 0, 0.067);
}

/* Modal Body */
.modal-body {
  padding: 2px 16px;
  height: 85%;
  display: flex;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.templates-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow-y: auto;
}

.select-template {
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px 10px 15px;
  margin-top: 5px;
  font-size: 16px;
  cursor: pointer;
  background-color: #3883fa;
  width: 100%;
}

.template-card {
  box-shadow: 0px 0px 15px -3px rgba(0, 0, 0, 0.1);
  border: rgba(0, 0, 0, 0.1) solid 1px;
  border-radius: 10px;
  width: 120px;
  padding: 10px;
  margin-top: 20px;
  margin-left: 10px;
}

.template-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Add Animation */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
