:root {
    --main-font: 'inconsolata', monospace;  /* Default Font */
}

/* backgrounds https://tylify.app/ */

/* Root font-size scaling based on viewport width */
html {
    font-size: calc(1vw + 1vh + 0.5vmin); /* Adjusts base font size based on the viewport */
    margin: 0;
    padding: 0;
}

.dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    z-index: -100; /* Ensure it stays behind other elements */
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    padding-bottom: 5%;
    height: auto;
    min-height: 100vh;
    z-index: -2;
    font-family: var(--main-font);  /* Use variable globally */
    text-align: center;
    top: 0;
    background-color: #272727;
    color: #efefef;
    background-size: auto;
    background-attachment: fixed;
    background-repeat: repeat;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    white-space: normal; /* Allows wrapping of text */
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox: hide the scrollbar */
    }

p {
    font-family: var(--main-font);
    font-size: 1rem;
    text-align: left;
    width: 100%;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-family: var(--main-font);
    font-size: 3rem;
    color: #efefef;
}

h3 {
    font-family: var(--main-font);
    font-size: 3rem;
}


h4 {
    font-family: var(--main-font);
    font-size: 2rem;
    color: #efefef;
}

#subTitle h4 {
margin-left: 50px;
margin-right: auto;
}

/* h5 {
    word-wrap: break-word;
    white-space: pre-wrap;
    color: #00ff55;
    font-size: 2em;
} */

a {
    color: #00ff55;
    text-decoration: none;
}

input:disabled, textarea:disabled {
    background-color: #b9b2b2; /* Change to your desired background color */
    color: #000000; /* Change to your desired text color */
    cursor: not-allowed; /* Optional: change the cursor to indicate the input is disabled */
}

input[type="text"]:disabled, input[type="number"]:disabled, textarea:disabled {
    border-color: #fe0000; /* Optional: change the border color if desired */
    width: 15px;
    border-radius: 10px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* index.html */

/* Password Modal Styles */
#passwordModal {
    display: none; /* Ensure it is hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
    color: #333;
}

#passwordModal.active {
    display: flex; /* Show modal when active */
}

#passwordModal h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

#passwordModal input {
    font-size: 16px;
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#passwordModal button {
    font-size: 1rem;
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#passwordModal button:hover {
    background-color: #2c2c2c;
}

#passwordModal p#errorText {
    color: red;
    margin-top: 10px;
    display: none; /* Hidden by default */
}

#passwordModal div {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

/* Notification Banner */
#passwordNotification {
    display: none;
    background: #fffbcc;
    color: #333;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Notification Button */
#passwordNotification button {
    padding: 5px 10px;
    background: #ff5555;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#passwordNotification button:hover {
    background: #d11a1a;
}


.avatar-icon { /* avatar */
    position: relative;
    top: 30px;
    /* left: 15px; */
    width: 160px;  /* Adjust size as needed */
    height: 160px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.7s ease;
}

.avatar-icon:hover {
    transform: scale(1.1);  /* Slight zoom on hover */
}

.nostr-name {
    position: relative;
    display: block;
    max-width: fit-content;
    background-color: #0202025a;
    font-size: 0.8rem;
    color: #bdbdbd;
    text-align: center;
    margin-top: 1em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.729);
    z-index: 2;
    transition: 1s ease-in; 
}

#paragraphContainer {
    font-size: 0.6rem;
    margin-bottom: 2rem;  /* Space below the paragraph and link */
}

#customParagraph {
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensure wrapping in all modern browsers */
    white-space: normal; /* Allow line wrapping */
    max-width: 85vw;
}

/* for embeded note1 nnostr events */
.note-box {
    border: 1px solid #ccc;
    padding: 15px;
    margin: 20px auto;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
    max-width: 700px;
    position: relative;
    word-wrap: break-word; /* Forces wrapping */
    overflow-wrap: break-word; /* Fallback for better compatibility */
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.like-icon {
    margin-right: auto; /* Pushes the like icon to the left */
}

.details-icon {
    margin-left: auto; /* Pushes the details icon to the right */
}

.note-details {
    display: none;
    font-size: 0.5em;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: transparent;
    margin-top: 10px;
} 

.note-details.visible {
    display: block;
}

.icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.like-icon {
    margin-right: auto;
}

.details-icon {
    margin-left: auto;
}
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#readMoreLink {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

#readMoreLink:hover {
    color: #51dc10;
    text-decoration: underline;
}

/* Center alignment for embedded images and videos */
img[id^="embedded-image-"],
video[id^="embedded-video-"] {
    max-width: 400px;
    height: auto;
    background-color: #00000096;
    display: block;
    margin: 10px auto; /* Center-align using auto margins */
    padding: 15px;
    cursor: pointer; /* Indicate clickable items */
    transition: transform 0.3s ease; /* Smooth zoom effect */
    border: 2px solid #ccc;
    border-radius: 8px;
}

/* Hover effect for zoom indication */
img[id^="embedded-image-"]:hover,
video[id^="embedded-video-"]:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}

/* .iframe-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
} */


/* Full-screen modal styles */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

/* Show modal when active */
.fullscreen-modal.active {
    visibility: visible;
    opacity: 1;
}

/* Media inside modal */
.fullscreen-modal img,
.fullscreen-modal video {
    max-width: 90%;
    max-height: 90%;
}

/* Close button */
.fullscreen-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

.paragraph-qr-code-wrapper {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;    /* Center vertically */
    margin: 20px auto;      /* Add spacing and center the wrapper */
    text-align: center;     /* Ensure text is aligned */
}

.paragraph-qr-code {
    border: 2px solid #000; /* Optional: Add a border around the QR code */
    border-radius: 8px;     /* Optional: Add rounded corners */
    padding: 10px;          /* Add padding around the QR code */
    background-color: #fff; /* Ensure a clean background */
}

#messageArea {
    position: fixed;
    width: 85%;
    max-width: 920px;
    margin: 0 auto;
}

/* #imageUploadInput {
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    display: none;
}

#imageUploadLabel {
    display: none;
    position: absolute;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
    background-color: #00ff9d19;
    color: #efefef;
    padding: 10px;
    border-radius: 50%;
} */

#eventDetails {
    margin-top: 20px;
    text-align: left; /* Keep the text aligned to the left */
    display: none; /* Hide by default */
    background-color: #272727;
    color: #efefef;
    padding: 10px;
    border-radius: 5px;
    width: 80%;
    margin-bottom: 5%;
    max-width: 800px;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin-left: auto; /* Center the div horizontally */
    margin-right: auto; /* Center the div horizontally */
}


#sendMessageBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: var(--main-font);
    width: 200px;
    height: 70px;
    margin: 10px auto;
    margin-bottom: 20vh;
    padding: 10px;
    font-size: 1rem;
    background-color: #00000094;
    color: #efefef;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;

}

#sendMessageBtn img {
    position: absolute;
    opacity: 0.7;
    top: 50%;
    left: -300px; /* Start offscreen */
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    transition: transform 0.2s ease;

}

        /* Animation keyframes */
        @keyframes moveImage {
            0% {
                left: -1000px; /* Start offscreen on the left */
                transform: translateY(-50%) scaleX(1);
            }
            50% {
                left: 850px; /* Move to the right, slightly past the button */
                transform: translateY(-50%) scaleX(1);
            }
            50.01% {
                transform: translateY(-50%) scaleX(-1); /* Flip the image */
            }
            100% {
                left: -1000px; /* Move back to the left, offscreen */
                transform: translateY(-50%) scaleX(-1);
            }
        }

        #sendMessageBtn img.animate {
            animation: moveImage 39s linear infinite;
        }

textarea#userMessage {
    width: 75%;
    font-family:'Courier New', Courier, monospace;
    max-width: 920px;
    height: auto;
    min-height: 100px;
    font-size: 2rem;
    border: none;
    border-bottom: 5px solid #00ff55;
    outline: none;
    caret-color: black;
    resize: none;
    overflow: hidden;
    padding: 10px 10px 10px 10px;
    line-height: 1.5;
    border-radius: 5px;
}

pre {
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 2em;
}


#statusMessage {
    color:rgb(0, 255, 0);
    font-size: 2em;
    text-align: center;
    background-color: #00000094;
    border-radius: 5px 5px 0 0;
    margin-bottom: -20px;
}

#eventDetails {
    width: 95%;
    margin-bottom: 100px;
    font-size: 0.6rem;
}

#eventDetails h3 {
    font-size: 0.7rem;
    margin-right: 50px;
}


.close-event-btn {
    display: block;
    margin-left: 50px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.close-event-btn:hover {
    background-color: #d61111;
}

.copy-btn {
    font-family: monospace;
    display: block;
    font-size: 1.6em;
    margin: 10px auto;
    padding: 5px 10px;
    background-color: #00ff9d19;
    color: #efefef;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#charCount {
    margin-top: 10px;
    font-size: 1rem;
    color: #efefef;
    font-family: 'Courier New', Courier, monospace;
}


#changeIdBtn {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px 20px;
    background-color: #ff0000;
    color: #efefef;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}


/* Modal styles */
#privateKeyModal, #notesModal {
    display: none;
    position: fixed;
    font-family: monospace;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    text-align: center;
    z-index: 5;
}

#privateKeyModalParagraph {
    font-size: 0.9rem;
}

#notesModalContent {
    font-size:0.5rem;
    word-wrap: break-word;
    white-space: pre-wrap;
}
#notesModalContent h5{
    font-family: monospace;
    font-size:0.7rem;
}

#overlayBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

#countdownOverlay {
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: #ff0000; /* White text */
    font-size: 2em; /* Larger font size */
    padding: 20px 40px; /* Padding for the box */
    border-radius: 10px; /* Rounded edges */
    text-align: center;
    display: none; /* Initially hidden */
}

#downloadDataBtn {
    font-family: var(--main-font);
    font-size: 1rem;
}

.panic-container {
    margin-top: 20px;  /* Space from the dynamic content */
    display: flex;
    justify-content: center;
}

#wipeStorageBtn {
    background-color: #ff5555;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1rem;
    margin-bottom: 30px;
}

#privateKeyDisplay {
    font-family: monospace;
    font-size:0.5rem;
}

#modalContent, #notesModalContent {
    background-color: #272727;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #8e8e8e;
    width: 90%;
    max-width: 920px;
    color: #efefef;
    text-align: left;
    overflow-y: auto;
    max-height: none;
}

#modalContent button, #notesModalContent button {
    padding: 40px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#acceptBtn {
    font-size: 1rem;
    font-family: monospace;
    background-color: #00ff5599;
    color: #fff;
}

#declineBtn {
    font-size: 1em;
    font-family: monospace;
    background-color: #ff555599;
    color: #fff;
}

#relayWarning {

    padding: 10px;
    font-size: 1.5em;
    color:red;
    display:none;
}

#useDefaultRelaysBtn {
    font-size: 1em;
    background-color: #00ff5599;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#closeRelayWarning {
    font-size: 1em;
    background-color: #b2380099;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


footer, .footerStatic {
    font-family: var(--main-font);
    position: absolute;  /* Change from fixed to absolute */
    bottom: 0;
    padding: 10px;
    background-color: #272727c2;
    backdrop-filter: blur(10px);
    color: #efefef;
    width: 100vw;
    left: 0;
    font-size: 2rem;
    text-align: center;
    box-sizing: border-box; /* Ensures padding doesn't add extra width */
}

.footerDynamic {
    font-family: var(--main-font);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 10px;
    background-color: #272727c2;
    backdrop-filter: blur(10px);
    color: #efefef;
    font-size: 2rem;
    text-align: center;
    box-sizing: border-box;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;  /* Initially hidden */
    pointer-events: none;  /* Disable interaction when hidden */
}

footer a {
    color: #ffffff;
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


#showHistoryBtn {
    font-family: monospace;
    background-color: #3b424000;
    color: #00ff553b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.55em;
}

#showHistoryBtn:hover {
    color: #b7ed22;
}
    /* Mobile specific styling for index.html */
@media (max-width: 768px) {
    body {
        font-size: 26px;
    }

    h1 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    textarea#userMessage {
        width: 90vw;
        font-size: 1.3rem;
        padding: 10px;
    }

    #eventDetails {
        width: 90%;
        font-size: 1rem;
    }

    .copy-btn {
        font-size: 1rem;
        padding: 10px 15px;
    }

    #charCount {
        font-size: 1rem;
    }
/* 
    #sendMessageBtn {
        margin-bottom: 30%;
    } */



    /* footer {
        padding: 10px 5px;
    } */
}

/* urlmkr*/

/* agreementModal */
.agreement-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.agreement-modal-content {
    background-color: #453820;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90vw;
    height: 90%;
    border-radius: 8px;
    text-align: center;
}

.agreement-modal-text {
    max-height: 95vh;
    overflow-y: auto;
    height: 50vh;
    margin: 10px 0;
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-buttons {
    display: flex; /* Use Flexbox for alignment */
    justify-content: space-between; /* Push buttons to opposite ends */
    margin-top: 20px;
    padding: 0 20px; /* Add some spacing on the sides */
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    max-width: 300px;
    width: 45%; /* Optional: Consistent button width */
    
}

.modal-buttons #acceptAgreement {
    background-color: #4CAF50;
    color: white;
}

.modal-buttons #declineAgreement {
    background-color: #f44336;
    color: white;
}

.modal-buttons button:disabled {
    background-color: #cccccc; /* Light gray for disabled buttons */
    color: #666666; /* Darker text for contrast */
    cursor: not-allowed; /* Show a "not allowed" cursor */
    border: 1px solid #ff0000; /* Optional: subtle border */
}
/* agreementModalEnd */

input[type="checkbox"], input[type="radio"] {
    filter: hue-rotate(180deg); /* Retains your hue-rotate style */
  }

.url-output-container {
    position: sticky;
    top: 0; 
    margin: 0;
    height: 150px;
    max-height: 30vw;
    background-color: #272727c2;
    backdrop-filter: blur(10px);
    font-family: monospace;
    padding: 10px;
    z-index: 2222;
    overflow-y: auto; /* Adds vertical scrolling if content overflows */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    word-wrap: break-word; /* Breaks long words */
    word-break: break-word; /* Ensures long words break */
    white-space: normal; /* Allows wrapping of text */
    border-bottom: #75756e 1px dashed /* Add a dashed border */;
    overflow-y: scroll; /* Enable vertical scrolling */
    scrollbar-width: none; /* For Firefox: hide the scrollbar */


    
    /* --mask:
    radial-gradient(44.6px at 50% calc(100% - 63px),#000 99%,#0000 101%) calc(50% - 60px) 0/120px 100%,
    radial-gradient(44.6px at 50% calc(100% + 33px),#0000 99%,#000 101%) 50% calc(100% - 30px)/120px 100% repeat-x;
  -webkit-mask: var(--mask);
          mask: var(--mask); */
}

.hrLine {
    width: 50vw;
    border: none;
    
    --s: 0.3rem;    /* control the size */
    --c: #888888; /* the color */
    
    height: var(--s);
    --_g: var(--s) top 50%,var(--c) calc(100% - 1px),#0000;
    background: 0/calc(4*var(--s)) space no-repeat;
    background-image: 
     radial-gradient(circle closest-side at left  var(--_g)),   
     radial-gradient(circle closest-side at right var(--_g)),   
     linear-gradient(90deg,#0000 25%,var(--c) 0 75%,#0000 0);

}

.url-output {
    font-family: monospace;
    color: rgb(0, 255, 0);
    font-weight: bold;
    font-size: 1.2em;
    word-wrap: break-word;
}

.copy-button {
    font-family: monospace;
    margin: 20px 20px px 30px;
    padding: 10px 10px;
    font-size: 1.5rem;
    background-color: white;
    cursor: pointer;
    border-radius: 10px;
}

.error-message {
    color: red;
    margin-top: 10px;
}

.warning-message {
    color: yellow;
    margin-top: 10px;
}

.info-message {
    color: white;
    margin-top: 10px;
}

.qr-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-content {
    background: #272727;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #efefef;
}

#qr-code canvas {
    margin: 10px 0;
}

#qr-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

button {
    margin-top: 10px;
}

.hidden {
    display: none;
}

#toggle-description {
    text-decoration: underline;
    cursor: pointer;
}

.error-message{
    font-size: 2em;
}
.warning-message{
    font-size: 2em;
}
.info-message{
    font-size: 2em;
}
.avatar-modal {
    display: none;
    position: fixed;
    left: 10vw;
    top: 5vh;
    width: 80vw;
    height: 90vh;
    overflow: hidden;
    background-color: rgba(80, 80, 80, 0.882);
    border-radius: 10px;
    padding: 20px;
    z-index: 9995;
}

.avatar-container {
    text-align: center;
    margin: 10px;
    cursor: pointer;
}

.avatars-attribute, a{

    text-decoration: dashed;
}

.avatar-modal-content {
    background: #242424b1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: auto;
    overflow-y: auto;
    max-height: 90vh;
}

.avatar-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.avatar-preview {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 9995;
}

.avatar-preview:hover {
    transform: scale(1.1);
}

.avatar-label {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #ffffff;
}

/* In the selection not in modal */
.avatar-label-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#avatar-preview-container img {
    width: 150px;  /* Adjust width */
    height: 150px; /* Adjust height */
    border-radius: 5px;
}

.background-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 10vw;
    top: 5vh;
    width: 80vw;
    height: 90vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding: 20px;
    z-index: 9997;
}

.background-modal-content {
    height: 100%;
    overflow-y: scroll;
    text-align: center;
}

.background-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.background-thumbnail {
    width: 70vw;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.3s;
}

.background-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgb(0, 255, 0);
}

/* Container styling */
.color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9; /* Light background for visibility */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Label styling */
#color_picker_label{
    font-size: 1rem; /* Larger text */
    font-weight: bold; /* Emphasize label */
    background-color: #000000;
    max-width: fit-content;
    color: #a6a6a6; /* Darker text for contrast */
}

/* Color input styling */
#solid-color-picker {
    width: 70vw;
    height: 120px;
    max-height: 200px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.3s;
}

/* custom URL */
.custom-url-item {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Align items to the start */
    gap: 5px; /* Smaller gap between label and input */
    margin-bottom: 15px;
    padding: 10px;
    background-color: #00000000; /* Transparent background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    font-size: 2rem;
    margin-bottom: 30px;
}

/* img url Label styling */
#custom_url_label {
    font-size: 1rem; /* Larger text */
    font-weight: bold; /* Emphasize label */
    background-color: #000000; /* Black background */
    max-width: fit-content;
    color: #a6a6a6; /* Gray text */
    text-align: center; /* Center-align the text */
}

/* Color input styling */
#custom-background-url {
    font-size: 1rem; /* Larger text */
    width: 70vw;
    height: 120px;
    max-height: 200px;
    object-fit: cover;
    word-break: break-all;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.3s;
}

.close-modal {
    color: #ff0000;
    font-size: 5rem;
    font-weight: bold;
    position: absolute;
    top: -30px;
    left: 2px;
    cursor: pointer;
    z-index: 9998;
}

.font-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 90vh;
    overflow-y: auto;
    background-color: #333;
    border: 2px solid #666;
    border-radius: 8px;
    z-index: 9999;
}

.font-modal-content {
    padding: 20px;
}

.font-preview {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #555;
    cursor: pointer;
}

.font-preview:hover {
    background-color: #444;
}

.maker-what-text {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
    margin: 5%;
}

.maker-what-text p{
    width: auto;
    font-size: 1.5em;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.7rem;
    margin: 5%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
}

textarea {
    width: 70%;
    height: 100px;
    padding: 10px;
    font-size: 1rem;
    resize: vertical;  /* Allow only vertical resizing */
    box-sizing: border-box;  /* Ensure padding doesn't affect size */
    vertical-align: top;  /* Ensure text starts from the top */
    line-height: 1.5;  /* Improve readability */
}

.form-group input[type="text"]{
    font-family: monospace;
    font-size: 1.6rem;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 85%;
    max-width: 60vw;
    border-radius: 10px;
    /* margin-right: 20; */
}

.form-group textarea {
    font-family: monospace;
    font-size: 1.6rem;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 85%;
    max-width: 75vw;
    /* margin-right: 20; */
}

#message_input {
    height: 150px;
    padding: 20px;
    font-family: monospace;
}

.form-group input[type="number"] {
    font-family: var(--main-font);
    padding: 10px;
    font-size: 1.3rem;
    text-align: center;
    margin-top: 10px;
    height: 60px;
    width: 300px;
}

.form-group input[type="radio"] {
    transform: scale(2.5); /* Adjust the scale value as needed */
    margin-right: 25px;
    z-index: -1;
}
.form-group input[type="checkbox"] {
    transform: scale(2.5); /* Adjust the scale value as needed */
    margin-left: 25px;
    z-index: -1;
}

#include_message {
margin-right: 60px;
}

#custom_characters {
margin-right: 60px;
}



/* .form-group label,
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    margin: 10px;
} */

.form-group label {
    display: flex;
    align-items: center;
    margin: 10px;
}

.ntag-group {
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ntag-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Add some space between labels */
}

.ntag-group label input[type="radio"] {
    margin-left: 28px; /* Add margin to the left of radio buttons */
    z-index: 0; /* Ensure radio buttons are not clickable */
}



.relay-group {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.7em;
    width: 90%;
    max-width: 90%;
}

.relay-group input[type="text"] {
    flex: 1;
}

.relay-group input[type="radio"] {
    margin-left: 30px;
    z-index: 0;
}


/* .form-group input[type="password"] {
    font-family: var(--main-font);
    padding: 10px;
    font-size: 1.3rem;
    text-align: center;
    margin-top: 10px;
    width: 85%;
    max-width: 75vw;
} */

/* Password Container */
.password-container {
    position: relative;
    display: flex;
    align-items: center; /* Align input and icon vertically */
    justify-content: center; /* Center the password text */
    width: 85%;
    max-width: 75vw;
}

/* Password Input */
.password-container input[type="password"],
.password-container input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 1.3rem;
    text-align: center; /* Always center text */
    font-family: Arial, sans-serif;
    padding-right: 40px; /* Space for the eye icon */
    box-sizing: border-box; /* Include padding in width */
    border: 4px solid #ccc; /* Default border width increased */
    border-radius: 5px; /* Smooth edges */
    outline: none; /* Remove selection outline */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

/* Add focus effect for better visibility */
.password-container input[type="password"]:focus,
.password-container input[type="text"]:focus {
    border-width: 3px; /* Ensure consistent border width on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Optional glow effect */
}

/* Eye/Monkey Icon */
.toggle-password {
    position: absolute;
    right: 10px; /* Fixed position to avoid shifting */
    cursor: pointer;
    font-size: 1.3rem;
    user-select: none;
    color: #333;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.password-strength {
    background-color: #00000080;
    font-size: 0.9rem; /* Small font size */
    text-align: center;
    margin-top: 5px;
    padding: 7px ;
    max-width: fit-content;
    color: #666; /* Default gray color */
    transition: color 0.3s ease; /* Smooth color transition */
}
.password-strength.weak {
    color: red;
}
.password-strength.moderate {
    color: orange;
}
.password-strength.strong {
    color: green;
}

/* btn */
#toggle_encryption {
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
    width: 300px;
    height: 120px;
    margin-top: 40px;
    margin-bottom: 10%;
    border-radius: 10px;
}

#enable_hint {
    pointer-events: auto;
    opacity: 1; /* Ensure full visibility */
}

small {
    padding-left: 15px;
}


@media (max-width: 600px) {

    #textarea {
        max-width: 90vw;
    }

    .ntag-group {
        font-size: 3rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}


/*about*/

#main-content {
    max-width: 80vw;
    margin: 5% auto;
    padding: 40px;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 15%;
}

#about-header h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

#about-header h2 {
    font-size: 1.5rem;
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 40px;
}

#mission-section h3 {
    font-size: 2rem;
    margin-top: 40px;
    color: #603d75;
    text-align: center;
}

/* .content-paragraph {
    line-height: 1.8;
    text-align: justify;
    font-size: 1.2rem;
    margin: 20px auto;
    max-width: 800px;
} */

#about-p {
    margin-bottom: 30px;
    left: 20px;
}

/*FAQ*/

.FAQcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    word-wrap: break-word;
}

.FAQheader {
    margin-bottom: 20px;
}

.content {
    width: 100%;
}

.content-paragraph {
    text-align: left;
    width: 95%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-header-selection {
    font-family: 'Bodoni Moda SC', serif;
    font-size: 2rem;
    margin-top: 50px;

}

.faq-section {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    padding-bottom: 200px;
    text-align: left;
}

.faq-question {
    font-family: var(--main-font);
    font-size: 1.2rem;
    margin-top: 20px;
    cursor: pointer;
}

.faq-answer {
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
    margin-top: 10px;
    margin-left: 20px;
    display: none;
}

/* FAQ Question Colors */
.faq-question.uni a {
    color: rgb(230, 244, 119);
}

.faq-question.client a {
    color: rgb(0, 252, 4);
}

.faq-question.urlmkr a {
    color: rgb(152, 152, 247);
}

.faq-question.index a {
    color: orange;
}

.faq-question.showhistory a {
    color: rgb(253, 128, 149);
}

/* Hover Effect */
.faq-question.uni a:hover,
.faq-question.client a:hover,
.faq-question.urlmkr a:hover,
.faq-question.index a:hover,
.faq-question.showhistory a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.clickable-category {
    cursor: pointer;
    text-decoration: underline;
}

.clickable-category:hover {
    opacity: 0.8;
}

table {
    position: relative;
    font-size: 0.5rem;
    width: 85%;
    left: auto;
    text-align: center;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #7c7c7c;
    padding: 8px;
    text-align: center;
}
th {
    background-color: #f4f4f44b;
}
