/* Reset and base styles */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	color: rgb(3, 61, 100);
    background-image: url('images/bg.png'), linear-gradient(260deg, #d1f6ff, #9dd6f7);
    background-repeat: repeat; 
    background-size: 150px 150px, cover; /* width height */
	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: #ff0099;
	font-size: 30pt;
	border-bottom: none;
	max-width: 700px;
	margin: 0.7em auto;
}

a {
    color: #ff0099;
}

a:hover {
    color: #f154b3;
}

/* Layout utilities */
.center {
	text-align: center;
}

.logo {
    max-width: 45%;
    height: auto;
    border-radius: 50%;
      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: 5px;
    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 {
    margin-top: 0.5em;
}

/* Content blocks */
.content-block {
    background-color: rgb(255, 253, 240);
    font-family: 'Ubuntu', sans-serif;
    color: #141414;
    padding: 1em 1.5em; 
    margin: 0.5em auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    max-width: 700px;
    width: 100%;
    transition: all 0.3s ease;
}

.content-block img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 1em;
    flex-shrink: 0;
    border-radius: 6px;
}

.content-block span {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
}

.content-block a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

/* Image blocks */
.image-block {
    background-color: rgb(255, 253, 240);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    width: 100%;
    transition: all 0.3s ease;
}

.image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background: #fff;
}

.image-block-memes {
    background-color: rgb(255, 253, 240);
    color: #141414;
    padding: 0.5em;
    margin: 0.5em auto;
    border-radius: 8px;
    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: rgb(254, 240, 255);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4);
}

.image-block-memes img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.75em;
}
.image-block-memes span {
    margin-top: auto;
    margin-bottom: 0; /* Optional: removes any default margin */
}
/* Grid layouts */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 1.5em;
    row-gap: 0.1em;
    margin: 0 auto;
    width: 100%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 2em;
    row-gap: 1em;
    margin: 0 auto;
    width: 100%;
}

.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: #e3f2fc; 
	border-radius: 10px; 
}

::-webkit-scrollbar-thumb {
	background: rgb(255, 195, 240); 
	border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover {
	background: rgb(214, 156, 200); 
}

::-webkit-scrollbar-corner {
	background: #ddd;
}

/* Other elements */
hr { 
    height: 2px; 
    background-color: rgb(138, 62, 236); 
    border: none; 
} 

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
    color: rgb(139, 208, 235);
}

/* Responsive styles */
@media (max-width: 30em) {
    body {
        padding: 0 1em;
        text-align: center;
        background-size: 150px 150px, cover; /* width height */
    }

    .logo {
        max-width: 80%;
    }

    .content-block {
        font-size: 1rem;
        margin: 0.5em 0;
        
    }

    .image-block {
        margin: 0.2em 0;
    }

    .content-block:hover,
    .image-block:hover {
        transform: translateY(-4px);
        background-color: rgb(254, 240, 255);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4);
    }

    h1, h2, h3, h4, h5, h6, p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 30.01em) {
    body { 
        max-width: 850px;
        margin: 0 auto;
        padding: 0 2em;
    }

    .content-block {
        font-size: 1.1rem;
    }

    .content-block:hover,
    .image-block:hover {
        transform: translateY(-4px);
        background-color: rgb(254, 240, 255);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4);
    }

    .content-grid {
        max-width: 850px;
    }
}