html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background: url('../IMAGES/main.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

header {
    background-image: url('../IMAGES/header-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4em 0;
    display: flex;
    align-items: center;
    gap: 1em;
    height: 0px;
}


.logo img {
    max-width: 100%;
    max-height: 100%;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #333;
    width: 100%; 
}

nav ul li {
    margin: 0 1em;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1em;
    display: block;
}

nav ul li a:hover {
    color: #ffcc00;
}
main {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center; 
    background-color: rgba(255, 255, 255, 0.85); 
    border-radius: 10px;   
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    box-sizing: border-box;
}
main a {
    color: #0088cc; /* Telegram blue */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

main a:hover {
    color: #005f99;
}

main h2, main h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #222;
}

main p {
    margin-bottom: 1.2em;
    line-height: 1.6;
    color: #333;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 120px;
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
    padding: 20px;
    text-align: left;
    flex: 1; 
    width: 100%;
    box-sizing: border-box;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
    bottom: 0;
    box-sizing: border-box;
}
		/* Media query for smaller screens */
		@media (max-width: 768px) {

			header {
				padding: 2em 0; /* Further reduce padding on smaller screens */
			}

			.logo img {
				max-width: 50%; /* Further reduce logo size for very small screens */
				max-height: 50%; /* Further reduce logo size for very small screens */
			}
			nav ul li a {
				padding: 0.8em; /* Adjust padding */
				font-size: 0.8em; /* Adjust font size for smaller screens */
				text-decoration: none; /* Remove underline from links */
			}
		}
/* Mobile devices */
@media (max-width: 480px) {
    header {
        padding: 1em 0;
    }
    .logo img {
        max-width: 40%;
        max-height: 40%;
    }

    nav ul {
        flex-direction: row;
        justify-content: center; 
        align-items: center;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 0 0.5em;
    }

    nav ul li a {
        padding: 0.8em;
        font-size: 0.6em;
    }

    main {
        padding: 10px;
        font-size: 0.8em; 
        text-align: center; 
    }
	footer {
        font-size: 12px;
        padding: 10px; 
    }
}
