/* General styles */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;400&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    /* Updated background properties */
    background-color: #000000;
    opacity: 1;
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #000000 13px), repeating-linear-gradient(#7b00ff55, #7b00ff);
    /* End of updated background properties */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
h1 {
  text-align: center;
  color: #f2f2f2;
  text-shadow: 2px 2px #8224e3;
  background-color: #8424e33e;
  padding: 10px;
  box-shadow: 2px 2px 5px #8224e35f;
  margin-top: 0; /* Remove any space above the h1 element */
  width: 30%; /* Adjust to your preference */
  margin-left: auto; /* Center the h1 element horizontally */
  margin-right: auto; /* Center the h1 element horizontally */
  border-radius: 10px; /* Rounded corners, adjust as needed */
}
/* Template container styles */
#template-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.template:not(.expanded) {
  width: 250px;
  height: 300px;
  background-color: #1c1c1c; /* Solid dark background color */
  box-shadow: 4px 6px 14px #00000036;
  border-radius: 3px;
  color: #f2f2f2;
  padding: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  transition: all .3s;
  overflow: hidden;
  position: relative; /* Needed for absolute positioning of the pseudo-element */
}

.template:not(.expanded)::after {
  content: '...'; /* The ellipsis */
  color: #f2f2f2; /* Color of the ellipsis */
  font-size: 2em; /* Adjust the size as needed */
  position: absolute;
  bottom: 5px; /* Position at the bottom inside the template */
  left: 50%;
  transform: translateX(-50%); /* Center the ellipsis horizontally */
  width: 100%;
  text-align: center;
  pointer-events: none; /* Prevents the ellipsis from being clickable */
}

.template:not(.expanded)::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%; /* Height of the faded area */
  background: linear-gradient(to bottom, transparent, #1c1c1c); /* Fades to the template background color */
  pointer-events: none; /* Prevents the fade from being clickable */
}

/* Hover effect for template */
.template:hover {
  cursor: pointer;
  background: linear-gradient(45deg, rgba(130, 36, 227, 0.3), rgba(0, 255, 96, 0.3));
}

.template.expanded {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  z-index: 100;
  background: #191919;
  padding: 20px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: scroll;
  transition: all 0.3s ease;
  font-family: 'Manrope', sans-serif;
  color: #f2f2f2;
}

.template.expanded h2,
.template.expanded p {
  color: #f2f2f2;
  text-shadow: none;
}

.template h2 {
    margin: 0;
    color: #f2f2f2;
    text-shadow: 2px 2px #8224e3;
}

.template p {
    margin: 10px 0;
    color: #f2f2f2;
    white-space: pre-wrap;
}

/* Copy button styles */
.copy-btn {
    width: 130px;
    height: 40px;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #171717;
    color: #f2f2f2;
    border: none;
    border-radius: 5px;
    transition: all .4s;
    user-select: auto;
}

.copy-btn:hover {
    border-radius: 5px;
    transform: translateY(-10px);
    box-shadow: 0 7px 0 -2px #00ff60,
                0 15px 0 -4px #8224e3,
                0 16px 10px -3px #8224e3;
}

.copy-btn:active {
    transform: translateY(-5px);
    box-shadow: 0 2px 0 -2px #00ff60,
                0 8px 0 -4px #8224e3,
                0 12px 10px -3px #8224e3;
}

/* Header styles */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

/* Search container styles */
.search-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Search input styles */
.search {
  flex: 1;
  height: 40px;
  padding: 0 15px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

#template-popup.expanded {
    display: block;
}

.editable-text::before,
.editable-text::after {
    content: "{";
    display: none;
    text-shadow: 2px 2px black;
}

.editable-text {
    max-width: 190px;
    height: 30px;
    border: 2px solid transparent;
    outline: none;
    border-bottom: 2px solid #3f3f3f;
    caret-color: #00ff60;
    background-color: #212121;
    transition: .5s linear;
    font-family: monospace;
    letter-spacing: 1px;
    color: white;
}

.editable-text:focus,
.editable-text:hover {
    border: 2px solid #00ff60;
    caret-color: #00ff60;
    color: #00ff60;
    box-shadow: 4px 4px 10px #070707;
}

.editable-text:focus::placeholder {
    color: #00ff60;
}

.template::-webkit-scrollbar,
select::-webkit-scrollbar {
    width: 5px;
}

.template::-webkit-scrollbar-track,
select::-webkit-scrollbar-track {
    background-color: #000000;
    border-radius: 100px;
}

.template::-webkit-scrollbar-thumb,
select::-webkit-scrollbar-thumb {
    background-color: #8224e3;
    border-radius: 100px;
}

.menu-btn {
    appearance: none;
    background-color: #8224e3;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 20px;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 13px 19px;
    text-align: center;
    text-transform: uppercase;
    touch-action: manipulation;
    transform: translateZ(0);
    transition: filter .2s;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    margin-right: 5px;
    text-decoration: none;
}

.menu-btn:hover:not(:disabled) {
    filter: brightness(1.1);
}

.menu-btn:active {
    padding-bottom: 10px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

select {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

.ip-select,
.engagement-select {
    border: 1px solid #8224e3;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    background-color: #f9f9f9;
}

.shadow__btn {
    padding: 10px 20px;
    border: none;
    font-size: 17px;
    color: #f2f2f2;
    border-radius: 7px;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.5s;
    transition-property: box-shadow;
    background: #8224e3;
    box-shadow: 0 0 25px #8224e3;
    margin-left: 10px;
}

.shadow__btn:hover {
    box-shadow: 0 0 5px #8224e3,
                0 0 25px #8224e3,
                0 0 50px #8224e3,
                0 0 100px #8224e3;
}

input {
  writing-mode: horizontal-tb !important;
  text-rendering: auto;
  color: #383838;
  letter-spacing: normal;
  word-spacing: normal;
  line-height: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  appearance: auto;
  -webkit-rtl-ordering: logical;
  cursor: text;
  background-color: #f9f9f9;
  margin: 0em;
  padding: 1px 2px;
  border-width: 2px;
  border-style: inset;
  border-color: #8224e3;
  border-image: initial;
}

/* Webkit scrollbar styles */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: #000000;
  border-radius: 100px;
}

::-webkit-scrollbar-thumb {
  background-color: #8224e3;
  border-radius: 100px;
}
