@font-face {
    font-family: 'CustomFont';
    src: url('font/LifeCraft_Font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/wallpaper.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Place it behind the content */
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.onclick a {
    color: inherit;
    text-decoration: none;
    padding-left: 5px;
}

.onclick a:hover {
    text-decoration: none; /* Nincs aláhúzás hover állapotban sem */
    padding-left: 5px;
    color: #9C1D23;
}

.content-container {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 1;
    margin: 20px;
    color: #e5a93a;
}

.EULA-container {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 1;
    margin: 20px;
    color: #e5a93a;
}

.EULA-container p{
    color: white;
    font-size: 14px;
    font-family: Arial;
}



/* Additional Styles */
ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

#price {
    color: gold;
    font-style: italic;
}

.highlight {
    color: goldenrod;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
}


.serverlist {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.serverlist > div {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
}

.serverlist h2 {
    margin: 0 0 10px 0;
}

.serverlist ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

    /* Header */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.2s, padding 0.2s;

}

.logo-container {
    display: flex;
    align-items: center;
    width: 50%;
}

.logo {
    height: 40px;
    transition: height 0.2s;
    max-width: 100%;
}

/* Shrink header on scroll */
body.scrolled .fixed-header {
    width: 100%;
    height: 30px; /* Adjust the height as needed */
    padding: 5px 0; /* Adjust padding if needed */
    background-color: black;
}

body.scrolled .logo {
    height: 30px; /* Adjust the logo height as needed */
}


/* Navbar */
.navbar {
    justify-content: center;
    width: 20%;
    display: flex; /* Ensure navbar itself is a flex container */
}

.navbar ul {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Distribute space evenly */
    width: 50%; /* Ensure ul takes the full width of navbar */
}

.navbar li {
    text-align: center; /* Center align text within li */
    position: relative;
}

.navbar a {
    display: inline-block;
    font-family: 'CustomFont', Arial, sans-serif;
    color: #ffd75e;
    text-decoration: none;
    justify-content: center;
    width: 100%; /* Ensure a tags take full width of li */
    transition: transform 0.2s;
}

.navbar a:hover {
    background: black;
    transform: scale(1.2);
}

/* Section */
#fulfill {
    margin: 20px;
    color: #e5a93a;
}

.picture {
    max-height: 30px;
}


.icon {
    max-height: 20px;
}

.server-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.server-links a {
    display: inline-block;
    transition: transform 0.3s;
    width: calc(25% - 40px);
}

.server-links img {
    width: 100%; 
    height: auto;
    transition: transform 0.3s;
}

.server-links a:hover img {
    transform: scale(1.1); /* Make images bigger on hover */
}


/* Footer */
.fixed-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: black;
    color: #e5a93a;
    text-align: center;
    padding: 5px 0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content p {
    margin: 0;
}

.footer-content span {
    margin: 0 5px;
}

.footer-link, .footer-text {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    color: chocolate;
}

.footer-content a, .footer-content p, .footer-content span {
    margin: 5px 0;
    padding: 5px; /* Add padding for better spacing */
}

.footer-content {
    gap: 5px; /* Reduce gap between items */
}

.fixed-footer {
    padding: 5px 0; /* Reduce padding for smaller screens */
}

/* Extra things */
#logo {
    width: 300px;
}

.terms-container {
    margin: 20px 0;
}

.terms-container label {
    display: block;
    margin-bottom: 10px;
}

.terms-container input {
    margin-right: 10px;
}

.button-custom {
    background-color: black;
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: white;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

.button-custom:hover {
    background-color: #333; /* Darker shade on hover */
}

.question {
    border: 2px solid rgba(255, 215, 0, 0.3);
    background-color: rgba(0, 0, 0, 1);
    color: rgba(255, 215, 0, 1);
    padding: 2px;
    border-radius: 2px;
    box-sizing: border-box;
}



/* Large devices (desktops, 769px and up) */
@media (min-width: 769px) {
    .fixed-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
        padding-top: 5px;
    }

    .logo-container {
        justify-content: flex-start;
        padding-left: 10px;
    }

    .navbar {
        width: 100%;
    }

    .navbar ul {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    .navbar li {
        padding-left: 10px;
        padding-right: 10px;
    }

    .question {
        width: 250px;
        box-sizing: border-box;
    }

    #paypal-button-container {
        max-width: 250px;
    }

    .paypal-button {
        width: 100% !important;
    }


    .content-container {
        flex: 1;
        padding-top: 125px;
        padding-bottom: 40px;
        padding-left: 40px;
        padding-right: 40px;
        z-index: 1;
        margin: 20px;
        color: #e5a93a;
    }

    .logo {
        height: 40px;
        transition: height 0.2s;
        max-width: 100%;
    }

    h1 {
        font-size: 26px;
        padding-left: 10px; /* Headline padding */
        color: gold;
    }

    h2 {
        font-size: 20px;
        padding-left: 8px; /* Subheadings padding */
        color: gold;
    }

    h3 {
        font-size: 22px;
        padding-left: 8px; /* Subheadings padding */
        color: gold;
    }

    .navbar a, button {
        font-size: 24px;
        margin: 10px;
        padding: 8px 12px;
    }

    .navbar a:hover {
        background: black;
        transform: scale(1.2);
    }

    .serverlist li {
        font-size: 16px;
        color: saddlebrown;
    }

    .tutorial_picture {
        width: 30%;
        border: 2px solid red;
        border-radius: 5px;
        padding: 0px;
        box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5);
    }
}


/* Medium devices (tablets, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .fixed-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 20px;
        width: 100%;
    }

    .logo-container {
        justify-content: flex-start;
    }

    .navbar {
        justify-content: center;
        width: 60%; /* 60%-os szélesség alaphelyzetben */
        transition: width 0.3s; /* Smooth transition for width change */
        padding-right: 20px;
    }

    .navbar ul {
        list-style: none;
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-around; /* Distribute space evenly */
        width: 100%; /* Ensure ul takes the full width of navbar */
    }

    .navbar li {
        flex: 1; /* Ensure each li takes equal space */
        text-align: center; /* Center align text within li */
    }

    .navbar a {
        display: inline-block;
        font-family: 'CustomFont', Arial, sans-serif;
        font-size: 16px;
        color: #ffd75e;
        text-decoration: none;
        width: 100%;
        transition: transform 0.2s;
    }

    .navbar a:hover {
        background: black;
        transform: scale(1.2);
    }
    .server-links a {
        width: calc(50% - 20px); /* Two images per row on medium screens */
    }
    /* Shrink header on scroll */
    body.scrolled .fixed-header {
        width: 100%;
        height: 30px;
        padding: 5px 20px;
        background-color: black;
    }

    body.scrolled .logo {
        height: 25px; /* Adjust the logo height as needed */
    }

    body.scrolled .navbar {
        width: 70%; /* 70%-os szélesség görgetéskor */
    }

    body.scrolled .navbar a {
        font-size: 20px; /* Adjust the font size as needed */
    }

    h1 {
        font-size: 28px;
        margin: 25px 0; /* Headline margin */
        padding: 8px 0; /* Headline padding */
        color: gold;
    }

    h2, h3 {
        font-size: 20px;
        margin: 20px 0; /* Subheadings margin */
        padding: 6px 0; /* Subheadings padding */
        color: gold;
    }

    .serverlist li {
        font-size: 12px;
        color: saddlebrown;
    }

    .question {
        width: 80%;
        box-sizing: border-box;
    }

    #paypal-button-container {
        max-width: 80%;
    }

    .paypal-button {
        width: 100% !important;
    }


    .tutorial_picture {
        max-width: 40%;
        border: 2px solid red; /* Vékony piros keret */
        border-radius: 5px; /* Lekerekített sarkok (opcionális) */
        padding: 0px; /* Távolság a kép és a keret között */
        box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5); /* Halványodó piros keret kifelé */
    }
}


/* Small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .fixed-header {
        flex-direction: column;
        align-items: center;
        padding-top: 5px;
    }

    .logo-container {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .navbar {
        display: flex;
        justify-content: center;
        width: 100%;
        transition: width 0.1s; /* Smooth transition for width change */
        padding: 0;
    }

    .navbar ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .navbar li {
        flex: 1; /* Ensure each li takes equal space */
        text-align: center; /* Center align text within li */
        padding: 0 5px; /* Padding between buttons */
        font-size: 28px;
    }

    .navbar a {
        display: inline-block;
        font-family: 'CustomFont', Arial, sans-serif;
        font-size: 14px; /* Adjust the font size as needed */
        color: #ffd75e;
        text-decoration: none;
        transition: background-color 0.3s, font-size 0.3s; /* Add transitions for background color, border, and font size */
        width: 100%; /* Ensure a tags take full width of li */
        white-space: nowrap; /* Prevent line breaks within buttons */
    }

    .navbar a:hover {
        background: black;
        transform: scale(1.2); /* Increase size on hover */
    }

    .server-links a {
        width: 90%; /* Full width (90%) images on small screens */
    }

    /* Shrink header on scroll */
    body.scrolled .fixed-header {
        width: 100%; /* Full width on scroll */
        height: 50px; /* Adjust the height as needed */
        padding: 5px 0; /* Adjust padding if needed */
        background-color: black;
    }

    body.scrolled .navbar {
        width: 100%;
    }

    body.scrolled .logo {
        height: 20px; /* Adjust the logo height as needed */
    }

    body.scrolled .navbar a {
        font-size: 20px; /* Adjust the font size as needed */
    }

    h1 {
        font-size: 24px;
        color: gold;
    }

    h2, h3 {
        font-size: 18px;
        color: gold;
    }

    .serverlist li {
        font-size: 12px;
        color: saddlebrown;
    }

    .question {
        width: 90%;
        box-sizing: border-box;
    }

    #paypal-button-container {
        max-width: 90%;
    }

    .paypal-button {
        width: 100% !important;
    }


    .tutorial_picture {
        max-width: 100%;
        border: 2px solid red; /* Vékony piros keret */
        border-radius: 5px; /* Lekerekített sarkok (opcionális) */
        padding: 0px; /* Távolság a kép és a keret között */
        box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5); /* Halványodó piros keret kifelé */
    }

    .serverlist > div {
        flex: 1 1 100%;
    }
}
