/* Reset some defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("IMG_0895.png") center/cover no-repeat;
    background-attachment: fixed;
}

/* Base styles */
body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    color: whitesmoke;
}


/* Header */
header {
    background-color: black;
    color: white;
    padding: 20px;
}

/* Navigation */
nav {
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

/* Navigation links */
nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    background-color: black;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: 
        background-color 0.3s ease, 
        color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul li:nth-child(even) a{
    background-color: #444;
    color: white;
}

/* Special hover for even links */
nav ul li:nth-child(even) a:hover,
nav ul li:nth-child(even) a:focus {
    background-color: white;
    color: black;
    border: 2px solid #111;
}

/* Hover and focus styles */
nav a:hover,
nav a:focus {
    background-color: white;
    color: black;
    border: 2px solid #111;
    transform: translateY(3px);
}

/* Invite link */
nav ul li.inviteLink {
    margin-left: auto;
}

nav ul li.inviteLink a {
    background-color: #5865F2;
    color: white;
    border: 2px solid transparent;
}

/* Invite hover/focus */
nav ul li.inviteLink a:hover,
nav ul li.inviteLink a:focus {
    background-color: #414bb7;
    transform: translateY(3px);
    text-decoration: none;
    color: white;
}

/* GitHub button */
nav ul li.git a {
    background-color: #e06a00;
    color: white;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav ul li.git a:hover,
nav ul li.git a:focus {
    background-color: #cc6200;
    transform: translateY(3px);
    color: white;
}

/* Main content */
main {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
}

/* Main headings */
h1{
    text-align: center;
    font-size: 10em;
    margin: 0;
    color: black;
    -webkit-text-stroke: 2px white;
}

h3{
    color: black;
    -webkit-text-stroke: 0.25px white;
}

/* Footer */
footer {
    background-color: black;
    padding: 20px;
    text-align: center;
    color: white;
    border-top: 2px solid #444;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.6);
}

footer a{
    color: whitesmoke;
    text-decoration: none;
    font-style: italic;
    font-size: 1.1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --- Tablets & small laptops (481px to 1366px) --- */
@media (min-width: 481px) and (max-width: 1366px) {

    body::before {
        background-image: url(dog-phone.png);
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
    }

    h1 {
        font-size: 6em;
    }

    nav ul {
        justify-content: center;
        gap: 15px;
    }

    nav a {
        font-size: 1em;
        padding: 10px;
    }

    main {
        padding: 15px;
    }
}

/* --- Mobile first (small phones up to ~480px) --- */
@media (max-width: 480px) {

    body::before {
        background-image: url(dog-phone.png);
        background-size: cover;
        background-position: 50% 15%;
    }

    h1 {
        font-size: 3em;
    }

    nav ul {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }

    nav a {
        font-size: 0.9em;
        padding: 8px;
    }

    main {
        padding: 10px;
    }
}

