/* CSS Variables - Change these values to update all border-radius at once */
:root {
	--border-radius-small: 15px;
	--border-radius-medium: 15px;
	--border-radius-large: 15px;
	--border-radius-xlarge: 10%;
}

/* Reset and base styles */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	color: rgb(255, 255, 255);
    background-image: url('images/bg.webp'), linear-gradient(260deg, #272727, #333333);
    background-repeat: repeat; 
    background-size: 150px 150px, cover;
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	font-size: 25px;
	overflow-x: hidden;
}

/* Typography */
@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu';
    src: url('fonts/Ubuntu-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Ubuntu, sans-serif;
    text-align: center;
    color: #b90003;
    font-size: 40pt;
    border-bottom: none;
    max-width: 700px;
    margin: 0.7em auto;
    -webkit-text-stroke: 8px #ffffff;
    paint-order: stroke fill;
}

a {
    color: #add14d;
}

a:hover {
    color: #9bcb4b;
}

/* Layout utilities */
.center {
	text-align: center;
}

.logo {
    max-width: 45%;
    height: auto;
    border-radius: var(--border-radius-xlarge);
    transition: all 0.3s ease;
}

.logo:hover {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);	 
}

/* Buttons */
.button {
    padding: 10px 15px;
    font-family: 'Ubuntu', sans-serif;
    color: #1b1b1b;
    background-color: rgb(255, 253, 240);
    border: none;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    display: inline-flex; 
    align-items: center; 
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);	
	margin-bottom: 10px; 
}

.button:hover {
    background-color: rgb(254, 240, 255);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4);
}

.button:active {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(3px);
}

.button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.topmenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1em;
    padding: 0;
    z-index: 1000;
    pointer-events: none;
}

.topmenu .button {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 200px;
    height: 65px;
    background-color: #8a1c1c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-10px);
    transition: transform 0.4s ease, background-color 0.3s ease;
    font-weight: 500;
    overflow: visible;
    padding-top: 0.7em;
}

.topmenu .button:hover {
    transform: translateY(0);
    background-color: #a52828;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.links a {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.links a:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.links img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-medium);
}

details {
    background-color: #333333;
    border: 2px solid #9bcb4b; /* Green outline */
    border-radius: var(--border-radius-medium);
    padding: 0.5em;
    margin: 1em 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

details[open] {
    background-color: #333333;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding: 0.5em;
    border-radius: 4px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: background-color 0.2s ease;
    user-select: none;
}

summary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

summary::before {
    content: '▶';
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

details[open] summary::before {
    transform: rotate(90deg);
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin-top: 1em;
    line-height: 1.6;
}

.image-block-memes {
    background-color: rgb(255, 253, 240);
    color: #141414;
    padding: 0.5em;
    margin: 0.5em auto;
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.image-block-memes:hover {
    transform: translateY(-4px);
    background-color: #e8fdaf;
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4);
}

.image-block-memes img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.75em;
    border-radius: var(--border-radius-large);
}

.image-block-memes span {
    margin-top: auto;
    margin-bottom: 0;
}

.image-grid-memes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 1em;
    row-gap: 0.5em;
    margin: 0 auto;
    width: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
	width: 12px; 
	height: 16px; 
}

::-webkit-scrollbar-track {
	background: #333333; 
	border-radius: var(--border-radius-medium); 
}

::-webkit-scrollbar-thumb {
	background: #8a1c1c; 
	border-radius: var(--border-radius-medium); 
}

::-webkit-scrollbar-thumb:hover {
	background: #a12121; 
}

::-webkit-scrollbar-corner {
	background: #000000;
}

footer a {
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .links {
        grid-template-columns: 1fr;
        gap: 1em;
        max-width: 400px;
    }
}

@media (max-width: 30em) {
    body {
        padding: 0 1em;
        background-size: 150px 150px, cover;
    }

    .logo {
        max-width: 80%;
    }

    h1, h2, h3, h4, h5, h6, p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 30.01em) {
    body { 
        max-width: 850px;
        margin: 0 auto;
        padding: 0 2em;
    }
}

@media (max-width: 600px) {
    .links img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .topmenu {
        gap: 1em;
    }
    
    .topmenu .button {
        width: 65px;
        height: 65px;
    }
    
    .button-text {
        display: none;
    }
    
    .button-icon {
        width: 28px;
        height: 28px;
    }
}