
/* Cool font from Google Fonts! */
@import url('https://fonts.googleapis.com/css2?family=East+Sea+Dokdo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;1,300&display=swap');

body {
	background-color: var(--page-bg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: auto;
	margin: 0;
}

#container {
	/* Center the text in the viewport. */
	position: absolute;
	margin: auto;
	width: 100vw;
	height: 50%;
	top: 0;
	bottom: 0;
	
	/* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
	/* filter: url(#threshold) blur(0.6px); */
}

/* Your average text styling */
#text1, #text2 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	display: inline-block;
	color: #f2a900;
	font-family: 'East Sea Dokdo', cursive;
	font-size: 150px;
	
	text-align: center;
	
	user-select: none;
}


/* Burger menu */

/* Important styles */
#toggle {
	position: absolute;
	top: calc(24px + env(safe-area-inset-top));
	left: max(24px, env(safe-area-inset-left));
	display: block;
	width: 28px;
	height: 30px;
	margin: 0;
	z-index: 2000; /* Increase z-index to be on top of all content */
	}

#toggle span:after,
#toggle span:before {
	content: "";
	position: absolute;
	left: 0;
	top: -9px;
	}
#toggle span:after{
	top: 9px;
	}
#toggle span {
	position: relative;
	top: 12px;
	display: block;
	}

#toggle span,
#toggle span:after,
#toggle span:before {
	width: 100%;
	height: 5px;
	background-color: #888;
	transition: all 0.3s;
	backface-visibility: hidden;
	border-radius: 2px;
	}

	/* on activation */
#toggle.on span {
	background-color: transparent;
	}
#toggle.on span:before {
	transform: rotate(45deg) translate(5px, 5px);
	}
#toggle.on span:after {
	transform: rotate(-45deg) translate(7px, -8px);
	}
#toggle.on ~ #menu {
	opacity: 1;
	visibility: visible;
	}

	/* menu appearance*/
#menu {
	position: absolute;
	top: calc(4.9rem + env(safe-area-inset-top));
	left: 1.3rem;
	color: #333131;
	width: 200px;
	padding: 10px;
	margin: auto;
	font-family: "Roboto Mono", monospace;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	text-align: center;
	border-radius: 4px;
	background: var(--surface);
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
	/* just for this demo */
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s;
	z-index: 2000; /* Increase z-index to be on top of all content */
	}
#menu:after {
	position: absolute;
	top: -0.5rem;
	left: 0.45rem;
	content: "";
	display: block;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 15px solid rgb(59, 52, 30);
	z-index: 2000; /* Increase z-index to be on top of all content */
	}
ul, li, li a {
	list-style: none;
	display: block;
	margin: 0;
	padding: 0;
	}
li a {
	padding: 5px;
	color: #888;
	text-decoration: none;
	transition: all .2s;
	}
li a:hover,
li a:focus {
	background: #f2a900;
	color: #fff;
}

/* SUBMENU STYLES*/
.has-submenu {
    position: relative; /* Needed for absolute positioning of submenu */
}

/* Style for menu items that have submenus */
.has-submenu > a {
    position: relative;
    padding-right: 20px; /* Make space for the arrow */
}

/* Add a small arrow to indicate submenu */
.has-submenu > a::after {
    content: "▼";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #888;
    transition: transform 0.3s ease;
}

/* Rotate arrow when submenu is active */
.has-submenu.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Submenu styles */
.submenu {
    position: absolute;
    top: 100%; /* Position below the parent menu item */
    left: 0;
    min-width: 200px; /* Minimum width to prevent too narrow menus */
    max-height: 0; /* Start collapsed */
    overflow: hidden; /* Hide overflow when collapsed */
    transition: max-height 0.3s ease; /* Smooth expand/collapse */
    background: var(--surface-raised); /* Slightly different background */
    margin: 0;
    border-radius: 3px;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* When submenu is active */
.has-submenu.active .submenu {
    max-height: 500px; /* Adjust based on your content height */
    overflow-y: auto; /* Add scroll if content is too long */
    width: 300px;

}

/* Submenu items */
.submenu li a {
    display: block; /* Ensure links take full width */
    padding: 8px 15px;
    font-size: 0.9em;
    color: #aaa;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

/* Hover effects for submenu items */
.submenu li a:hover {
    background: var(--surface-raised);
    color: #f2a900;
    border-left: 3px solid #f2a900;
}

/* Add media query for very small screens */
@media (max-width: 768px) {
    .submenu {
        position: fixed; /* On small screens, use fixed positioning */
        top: auto;
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px); /* Ensure it doesn't exceed viewport */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow for overlay effect */
    }
    
    .has-submenu.active .submenu {
        max-height: 70vh; /* Limit to 70% of viewport height */
        overflow-y: auto; /* Make it scrollable if needed */
    }
}

/* quotes */
p, #text {
	color: #c5ba9e;
	line-height: 1.4em;
}

#quotes{
	display: block;
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    text-align: center;
	font-size: 1em;
	font-family: "Roboto Mono", monospace;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;

}

/* copy text on clipboard */

.copy-notification {
    position: fixed; /* Fixed position to stay at the top */
    top: 0; /* Align to the top of the viewport */
    left: 0; /* Align to the left of the viewport */
    width: 100%; /* Stretch across the full width */
    padding: 10px; /* Padding for aesthetics */
    background-color: #f2a900; /* Semi-transparent background with your chosen color */
    border-radius: 0; /* No border radius for a full-width banner */
    text-align: center; /* Center the text inside the notification */
    color: #4d4d4e; /* White text color */
    display: none; /* Initially hidden */
    z-index: 1000000; /* Must beat every dialog layer: the support modal computes to
                         z-index 4000 and other pages go up to 100000, which left the
                         toast painted behind the modal, so the message could not be
                         read. A 3.5s copy confirmation belongs on top of everything. */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* Mobile styles */
@media only screen and (max-width: 600px) {
	#quotes {
		font-size: 0.7em;
	}

	.element {
		font-size: 0.7em;
	}

}

/* Footer styles */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--surface);
    color: #c5ba9e;
    text-align: center;
    padding: 7px 0;
    font-family: "Roboto Mono", monospace;
	font-size: 0.6em;
    z-index: 2000; /* Make sure it's above other content */
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
}

.footer a {
    color: #c5ba9e;
    text-decoration: none;
    margin-right: 15px;
}

.footer img.ico {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle; /* Aligns the image with the text */
}

/* Lightning icon styling */
.footer i.lni.lni-bolt-2 {
    color: #f2a900;
    cursor:pointer;
	margin-top: -20px;
	vertical-align: sub;
    font-size: 15px;
    margin-left: -10px;
}

.footer #fee-rate {
	font-size: 1em;
	position: absolute;
	right: 10px;
	cursor: pointer;
}

.footer #block-height {
	font-size: 1em;
	position: absolute;
	left: 10px;
	cursor: pointer;
}

/* Styles for modals */
.description-modal, #uploadModal, #infoModal, #qrCodeModal, #cookieConsentModal, #mempoolTinyDataModal, #game39Modal, #bip39Modal, #lotteryExplainerModal {
    display: none;
    position: fixed;
    word-break: keep-all;
    overflow-wrap: break-word;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background-color: var(--surface);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure modal is above everything */
	overflow: hidden;
    justify-content: center; /* Center modal content */
    align-items: center; /* Align content vertically */
}

/* Apply responsive styles to modal content */
.modal-content {
    max-width: 100%; /* Ensure content does not exceed modal width */
	max-height: 80vh; /* Maximum height to ensure it doesn't go out of view */
	overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal overflow */
    word-break: break-word; /* Break long words */
    overflow-wrap: break-word; /* Break words at appropriate points */
    width: 100%;
    box-sizing: border-box; /* Include padding and borders in width calculation */
	font-family: "Roboto Mono", monospace;
}

.description-modal.active, #uploadModal.active, #infoModal.active, #qrCodeModal.active, #cookieConsentModal.active, #mempoolTinyDataModal.active, #game39Modal.active, #bip39Modal.active, #lotteryExplainerModal.active {
    display: flex; /* Use flex to center content */
}

.description-modal a {
    color: #c5ba9e; /* Brighter color for better visibility */
    text-decoration: underline; /* Optional: Underline to indicate a link */
}

.description-modal a:hover {
    background-color: #f2a90089; /* Even brighter on hover for emphasis */
}

/* Close icon for modal */
.close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #fff; /* Make sure the close icon is visible */
    background: none;
    border: none;
    font-weight: bold;
    z-index: 1001; /* Higher than the modal content */
}

/* Hover effect for close icon */
.close-icon:hover {
    color: #f9af02; /* A brighter color on hover */
}

#gratitudeHeader {
    display: flex;
	text-align: center;
	font-size: 0.8em;
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Centers the content vertically if needed */
    max-width: 50%;
    margin: 0 auto; /* Centers the flex container in the middle of the parent element */
}


.qr-code-container {
    display: flex;
	flex-wrap: wrap;
    justify-content: space-around; /* Space QR codes evenly */
    margin-top: 20px; /* Add some spacing above QR codes */
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer; /* Cursor pointer to indicate it's clickable */
}

.qr-code {
    width: 150px; /* Set a fixed width for the QR code images */
    height: 150px; /* Set a fixed height for the QR code images */
    margin-bottom: 10px; /* Add some space below the QR code image */
}

.qr-code-text {
    font-size: 0.5em;
	max-width: 40%;
    color: #fff;
    margin-top: 5px; /* Add some spacing above the text */
    text-align: center; /* Center align the text */
}

/* Container for the consent buttons */
.consent-button-container {
    display: flex; /* Enable Flexbox layout */
    justify-content: center; /* Center items horizontally */
    gap: 40px; /* Set gap between the buttons */
    margin-top: 20px; /* Optional: Add some margin above the button row */
}

/* Styles for icon-only buttons */
.consent-icon-button {
    background-color: transparent; /* No background */
    border: none; /* Remove border */
    font-size: 2rem; /* Make icons larger */
    cursor: pointer; /* Show pointer cursor on hover */
    transition: transform 0.2s ease; /* Smooth transform effect */
}

.consent-icon-button:focus {
    outline: none; /* Remove default focus outline */
}

.consent-icon-button:hover {
    transform: scale(1.2); /* Slightly enlarge the button on hover */
}

.green-check {
    color: green; /* Green color for checkmark */
}

.red-cross {
    color: red; /* Red color for cross */
}

#mempoolTinyDataModal .avg-fee-rate,
#mempoolTinyDataModal .fee-range,
#mempoolTinyDataModal .total-fees-btc,
#mempoolTinyDataModal .total-fees-sats,
#mempoolTinyDataModal .tx-count,
#mempoolTinyDataModal .time-passed,
#mempoolTinyDataModal .mined-by {
    margin-bottom: 5px;
    font-size: 1em;
}

.modal-title {
	position: relative;
	text-align: center;
}

#mempoolTinyDataModal .modal-navigation {
    display: flex;
    justify-content: space-between;
	padding: 0px 30px 0px 30px ;
    align-items: center;
    margin-bottom: 15px;
}

.modal-navigation h2 {
	color: #f2a900;
}

#mempoolTinyDataModal .left-arrow,
#mempoolTinyDataModal .right-arrow {
    position: relative;
	cursor: pointer;
    color: #d89c05;
    font-size: 1.9em;
    opacity: 0.7;
	margin-top: -10px;
    transition: opacity 0.3s;
}

#mempoolTinyDataModal .left-arrow:hover,
#mempoolTinyDataModal .right-arrow:hover {
    opacity: 1;
}

/* Styling for modal sections */
#mem-poolTinyDataModal .block-data,
#mem-poolTinyDataModal .fee-data {
    display: none; /* Hidden by default, shown conditionally */
}

/* Contact */

/* Use this specific ID for the wrapper to hide it on startup */
#contactModal {
    display: none;          /* Hidden by default */
    position: fixed;        /* Stay in place */
    z-index: 1000;          /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;            /* Full width */
    height: 100%;           /* Full height */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    backdrop-filter: blur(5px);
}

.contact-modal-wrapper {
    display: none; /* Hides it by default */
    position: fixed;
    z-index: 3000; /* Higher than burger menu and footer */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.contact-modal {
    background-color: var(--surface);
    margin: 10% auto;       /* 10% from top and centered */
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: white;
}

/* Ensure the close button is visible and clickable */
.close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #f2a900;
}

/* Modal Content Box */
.contact-modal-content {
    background-color: var(--surface);
    margin: 10% auto;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid #444;
}

/* Flex layout for options */
.contact-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f2a900; /* Darker background for dark theme */
    border-radius: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s;
}

.contact-option:hover {
    background: #c4c4c4;
    border-color: #f2a900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
    margin-right: 50px; /* This creates the space between icon and text */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;    /* Prevents the icon from squishing if text is long */
}

.contact-png {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
}

.contact-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #333;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details span {
    font-weight: bold;
    color: #555;
    margin-bottom: 3px;
}

.contact-details small {
    color: #777;
    font-size: 0.85em;
}

.contact-note {
    margin-top: 20px;
    padding: 10px;
    background: rgba(242, 169, 0, 0.1);
    border-radius: 5px;
    text-align: center;
}
