:root {
	color-scheme: dark;
	font-family: system-ui, sans-serif;
	background-color: #333;
	background: linear-gradient(90deg, #aaa 0%, #fef102 100%);
	color: black;
	font-weight: 700;
}
* {

}
body {
	margin: 0px;
}

h1, h2, h3, p, .subtitle {
    text-align: center; 
}

.container {
    max-width: 1200px; 
    margin: 0 auto 0 auto; 
    padding: 1.1rem; 
    text-align: center; 
}

img {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
}

.container-sm {
	max-width: 800px;
	margin: auto;
	padding: 1rem;
}

h1 {
    color: black;
}

p {
    font-size: 1.2em;
    color: black;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    color: black;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    background-color: black;
	color: white;
}

button {
	border: 1px solid #808080;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
}


.forminput {
	display: block;
	width: 100%;
	padding: 6px;
	font-size: 1rem;
	margin-bottom: 10px;
	margin-top: 2px;
	color: black;
	font-weight: 700;
	cursor: pointer;
}

textarea {
	resize: none;
	height: 10rem;
}

input,textarea,button {
	border: 1px solid #808080;
	border-radius: 0.25rem;
	background-color: #fff2;
}
input:focus, textarea:focus, button:focus, input:active, textarea:active, button:active {
	border-color: black;
	outline: 2px solid #fef102;
}
#human-verification {
	font-size: 1.5rem;
	font-weight: 500;
	padding: 10px;
	background-color: #8882;
}

.subtitle {
	font-size: 1.3rem;
	position: relative;
	top: -1rem;
	word-wrap: break-word;
}


.menu-links {
	display: flex;
	background-color: black;
}
.menu-links>* {
	display: block;
	text-decoration: none;
	color: #fef102 !important;
	max-height: 3rem;
	line-height: 3rem;
	padding: 0px 1rem;
}
.menu-title {
	font-size: 2rem;
	flex: 2;
}

.memes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the memes horizontally */
    width: 100%; /* Ensure it takes full width */
    margin: 0 auto; /* Center the container */
}

.memes > * {
    width: calc(25% - 10px); /* Adjust width to account for margins */
    height: 666px; /* Fixed height for all memes */
    margin: 10px; /* Add margin for spacing */
    box-sizing: border-box; /* Include padding in width calculation */
    display: flex; /* Use flexbox to center content */
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center items horizontally */
    overflow: hidden; /* Hide overflow to maintain layout */
}

.meme img {
    width: 100%; /* Make the image fill the width of the meme */
    height: auto; /* Allow height to adjust based on aspect ratio */
    max-height: 100%; /* Ensure the image does not exceed the container height */
    object-fit: contain; /* Maintain aspect ratio without cropping */
    border-radius: 5px; /* Optional: add rounded corners */
}

.meme {
	overflow: hidden;
	background-color: #5558;
	border-radius: 5px;
}

.nav-buttons {
    display: flex;
    justify-content: center; /* Center the buttons */
    margin-top: 10px; /* Space above the buttons */
}

.nav-button {
    display: inline-block;
    padding: 10px 20px; /* Padding for the buttons */
    background-color: rgba(0, 0, 0, 0.1); /* Background color */
    color: black; /* Text color */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Rounded corners */
    margin: 0 10px; /* Space between buttons */
    font-size: 1.5em; /* Font size */
}

.nav-button:hover {
    background-color: black; /* Change background on hover */
    color: white; /* Change text color on hover */
}

.pad {
	padding: 0.8rem 1rem;
}

h3 {
	margin: 0px;
	margin-bottom: 0.25rem;
}

.meme img {
	max-height: 500px;
	display: block;
	margin: auto;
}

.author {
	font-size: 0.9em;
	margin-top: 0.5em;
}

.bigmeme {
	display: block;
	margin: 0 auto;
}
.addr {
	display: block;
	user-select: all;
	background-color: #fff2;
	padding: 0.4rem;
	border-radius: 0.2rem;
	font-family: monospace;
	font-size: 0.8rem;
	text-wrap:wrap;
	word-wrap: break-word;
}
.pagenav {
	background-color: #fff2;
	padding: 0.4rem;
	border-radius: 0.2rem;
	text-align: center;
	display: flex;
}
.pagenav>div {
	flex: 1;
}

.comments {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.comment {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
}

.comment:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.comment-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.comment-body {
    font-size: 1rem;
    color: #333;
}

.comment-body p {
    margin: 0;
}


.captchaimg {
	display: block;
	margin: auto;
	width: 100%;
	max-width: 400px;
}

.flash {
	background-color: #ff04;
	border: 1px solid #ff06;
	padding: 0.5rem;
	border-radius: 0.5rem;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
	width: 95%;
    padding: 1rem; 
    margin-top: 1rem; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    text-align: center; 
}

.wallet {
	margin: 0 auto 0 auto;
    padding: 5px 10px; 
    background-color: #f0f0f0;
    border-radius: 5px; 
    border: 1px solid #ccc; 
    margin-top: 5px; 
    word-wrap: break-word; 
    max-width: 150px; 
}

.captcha-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: auto;
    max-width: 600px;
    margin: 1rem auto;
    min-height: 350px;
}

.captcha-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 15px;
}

canvas {
    background-color: #fff;
    text-decoration: line-through;
    font-size: 20px;
    letter-spacing: 2px;
}

#captchaMessage {
    margin-top: 10px;
}

.captcha-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.captcha-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    width: 30px;
    height: 30px;
    background-color: #555;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

.captcha-actions button:hover {
    background-color: #666;
}

#captchaCanvas {
    border-radius: 5px;
}

#captchaInput {
    height: 30px;
}

#verifyCaptcha {
    width: 60%;
    padding: 15px;
    margin: 15px 0;
    background-color: #fef102;
    color: #0c0c0c;
    font-size: 15px;
    font-weight: bold;
    border: #0c0c0c 4px solid; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
}

#verifyCaptcha:hover {
    background-color: #0c0c0c;
    color: #fef102;
}

input[type="radio"],
input[type="text"],
textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #fef102;
  border-radius: 5px;
  background-color: rgba(135, 135, 135, 0.2);
  color: black;
  margin-bottom: 10px;
}

.meme {
	align-items: center;
	margin: 5px 0px 5px 0px;
	border: #0c0c0c 5px solid;
}

.memes {
	width: 99%;
	margin: 0 auto 0 auto;
}

@media screen and (max-width: 800px) {
	.memes>* {
		width: 300px;
		height: 750px;
    }
	
}

diesel::table! {
    memes (id) {
        id -> Nullable<Integer>,
        title -> Text,
        file_path -> Text,
        wallet -> Text,
        contact -> Nullable<Text>,
        created_at -> Nullable<Timestamp>,
    }
}