
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
}


.page-wrapper {
    width: 100%;
    max-width: 1080px; 
    margin: 0 auto; 
    flex: 1 0 auto; 
    display: flex;
    flex-direction: column;
}


header {
    background-color: #333;
    padding: 1rem 2rem;
    width: 100%;
}


.logo-link,
.logo-link:visited {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

header .logo img {
    height: 50px;
    margin-right: 15px;
}

header h1 {
    font-size: 1.8rem;
}


.main-container {
    flex-grow: 1; 
    display: flex;
    flex-direction: column; 
}

/* --- Nawigacja --- */
nav {
    width: 100%;
    background: #444;
}

nav ul {
    list-style-type: none;
}


nav ul li a,
nav ul li a:visited {
    display: block;
    padding: 15px 30px; 
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #575757;
}


nav ul li.discord-link a,
nav ul li.discord-link a:visited { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px 30px;
    font-weight: bold;
}

nav ul li.discord-link a span {
    font-size: 0.9rem;
}

nav ul li.discord-link a:hover {
    background-color: #3a3a3a;
}

/* --- Główna treść --- */
main {
    padding: 20px;
    background-color: #fff;
    flex-grow: 1; 
}

main h2 {
    margin-bottom: 15px;
    color: #333;
}

a.coffee:link {
		color:#000000;text-decoration:none;
		}
a.coffee:visited {
		color:#000000;text-decoration:none;
		}
a.coffee:hover {
		text-decoration:underline;
		}
		
a.other:link {
		color:#000000;text-decoration:none;
		}
a.other:visited {
		color:#000000;text-decoration:none;
		}
a.other:hover {
		text-decoration:underline;
		}


footer {
    max-width: 1080px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #333;
    color: #fff;
    text-align: center;
    flex-shrink: 0;
    border-radius: 5px;
}


@media (min-width: 768px) {
    .main-container {
        flex-direction: row; 
    }

    nav {
        width: 200px;
        flex-shrink: 0; 
        border-right: 1px solid #ddd;
    }

    nav ul li a,
    nav ul li a:visited { 
        text-align: left;
        border-bottom: none;
        border-top: 1px solid #555;
    }

    nav ul li:first-child a {
        border-top: none;
    }

    
    nav ul li.discord-link a,
    nav ul li.discord-link a:visited { 
        align-items: flex-start;
    }
    
    main {
        padding: 30px;
    }
}
