@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+SC:wght@500;700&display=swap');

* {
    box-sizing: border-box;
    font-family: "Alumni Sans SC", sans-serif;
    color: white;
}

body {
    background: url('img/Background.png') fixed no-repeat;
    background-size: 100%;
    margin: 0;
    padding: 80px;
    background-color: rgb(0, 0, 0);
}

#navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid rgba(255, 170, 51, 0.7);
    box-shadow: 0 4px 12px rgba(255, 174, 66, 0.4);
    margin: 0;
    padding: 0;
}

#navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 21px 0;
}

#navbar li {
    margin: 0 1.875rem;
}

#navbar a {
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffaa33;
    transition: 0.3s ease;
    padding: 0.625rem 1.125rem;
    border-radius: 0.75rem;
}

#navbar a:hover {
    background-color: rgba(255, 170, 51, 0.15);
    color: #ffae42;
    box-shadow: 0 0 0.75rem #ffaa33;
}

.navbar-link {
    margin-top: -11px;
    margin-bottom: -11px;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.nav-profile-picture {
    margin-top: -5px;
    margin-bottom: -5px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ffaa33;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(255, 174, 66, 0.6);
    margin-left: 10px;
}

#HomeLogo {
    display: block;
    margin: 5% auto;
    width: 700px;
    border-radius: 25px;
    transition: transform 0.3s ease-in-out, box-shadow 0.5s ease-in-out;
    box-shadow: 0 0 0 rgba(255, 165, 0, 0);
}

#HomeLogo:hover {
    animation: pulse 1s infinite;
    box-shadow: 0 0 40px 10px rgba(255, 165, 0, 0.8);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


#Lock-selection {
    margin: 30px auto;
    padding: 40px 50px;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid rgba(255, 170, 51, 0.7);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 174, 66, 0.6);
    text-align: center;
}

#Lock-selection p {
    font-weight: 700;
    font-size: 50px;
    color: #fff;
    margin-bottom: 25px;
}

.login-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.login-buttons button {
    background-color: transparent;
    color: #ffaa33;
    font-size: 38px;
    /* A navbar linkek stílusához igazítva */
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    border: 2px solid #ffaa33;
    border-radius: 12px;
    transition: 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 170, 51, 0.4);
}

.login-buttons button:hover {
    background-color: rgba(255, 170, 51, 0.15);
    color: #ffae42;
    box-shadow: 0 0 12px #ffaa33;
}


section {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid rgba(255, 170, 51, 0.7);
    border-radius: 20px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px 50px;
    box-shadow: 0 0 20px rgba(255, 174, 66, 0.6);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

section:hover {
    opacity: 1;
}

#leiras,
#fojatekmodok,
#jellemzok {
    font-size: 26px;
    line-height: 1.6;
}

#fojatekmodok,
#jellemzok {
    font-size: 36px;
    font-weight: 600;
    color: #ffae42;
}

#felsorolas {
    margin-top: 20px;
    padding-left: 30px;
    font-size: 24px;
}

#jatekmodok {
    margin-bottom: 18px;
}

#download {
    width: 35%;
    text-align: center;
}

#letoltes {
    margin-top: -10px;
    font-size: 80px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.bx {
    width: 70%;
    font-size: 400%;
    color: white;
    padding: 12px;
    border-radius: 30px;
    border: 3px solid #ffaa33;
    background: linear-gradient(to right, #ffaa33, #ff7b00);
    box-shadow: 0 0 20px #ff7b00;
    transition: 0.3s ease-in-out;
}

.bx:hover {
    transform: scale(1.15);
    background: linear-gradient(to right, #ff9900, #ff6600);
    box-shadow: 0 0 25px #ffae42;
}

textarea#patchContent {
    width: 90%;
    height: 300px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 8px;
    resize: vertical;
}

input#patchTitle {
    width: 70%;
    font-size: 1.3em;
    padding: 10px;
    margin-bottom: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
}

button {
    color: #000000;
    background-color: #ffaa33;
    font-size: 1.3em;
    padding: 16px 40px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
}

#patch-notes {
    max-width: 900px;
    margin: 40px auto;
    padding: 50px 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 170, 51, 0.7);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 174, 66, 0.6);
}

#patch-notes label {
    font-size: 2em;
    color: white;
    margin-bottom: 18px;
    display: block;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

#patchNotesDropdown {
    width: 70%;
    font-size: 1.2em;
    padding: 14px;
    background: #111;
    color: white;
    border: 2px solid rgba(255, 170, 51, 0.7);
    border-radius: 8px;
    margin-bottom: 24px;
    outline: none;
    transition: border 0.2s;
}

#patchNotesDropdown:focus {
    border-color: #ff7b00;
}

#patchNoteTitle {
    color: #ff7b00;
    font-size: 2em;
    margin-top: 18px;
    margin-bottom: 10px;
}

#patchNoteContent {
    font-size: 1.2em;
    color: #fff;
    background: #222;
    border-radius: 10px;
    padding: 18px 22px;
    min-height: 120px;
    border: 1px solid #444;
}

/* --- Responsive Design with Media Queries --- */

/* Medium devices (tablets, 601px to 900px) */
@media only screen and (min-width: 601px) and (max-width: 900px) {
    body {
        background-color: #000000;
        background-position: center;
        background-size: 120%;
        padding: 70px 20px 30px 20px;
    }

    #navbar li {
        margin: 0 20px;
    }

    #navbar a {
        font-size: 24px;
        padding: 10px 15px;
    }

    #HomeLogo {
        width: 450px;
    }

    section {
        max-width: 750px;
        padding: 30px 40px;
    }

    #leiras,
    #fojatekmodok,
    #jellemzok {
        font-size: 22px;
    }

    #fojatekmodok,
    #jellemzok {
        font-size: 32px;
    }

    #felsorolas {
        font-size: 20px;
    }


    #Lock-selection p {
        font-size: 30px;
    }

    .login-buttons {
        flex-direction: row;
    }

    .login-buttons button {
        font-size: 24px;
        padding: 10px 15px;
    }

    #letoltes {
        margin-bottom: 5px;
        font-size: 60px;
    }

    .bx {
        border-radius: 20px;
        font-size: 60px;
    }

    textarea#patchContent {
        width: 95%;
    }

    input#patchTitle {
        width: 80%;
    }

    #patch-notes {
        max-width: 700px;
        padding: 40px 40px;
    }

    #patchNotesDropdown {
        width: 80%;
    }
}

/* Small devices (phones, up to 600px) */
@media only screen and (max-width: 600px) {
    body {
        background-color: #000000;
        background-position: center;
        background-size: 180%;
        padding: 60px 10px 20px 10px;
    }

    #navbar ul {
        flex-wrap: wrap;
        padding: 8px 0;
        justify-content: space-around;
    }

    #navbar li {
        margin: 5px 5px;
        flex-basis: auto;
        text-align: center;
    }

    #navbar a {
        font-size: 18px;
        padding: 6px 10px;
    }

    #HomeLogo {
        width: 350px;
    }

    section {
        margin: 20px auto;
        padding: 20px 25px;
        border-radius: 15px;
    }

    #leiras,
    #fojatekmodok,
    #jellemzok {
        font-size: 18px;
        line-height: 1.5;
    }

    #fojatekmodok,
    #jellemzok {
        font-size: 26px;
    }

    #felsorolas {
        padding-left: 20px;
        font-size: 18px;
    }

    #jatekmodok {
        margin-bottom: 10px;
    }

    #Lock-selection p {
        font-size: 30px;
    }

    .login-buttons button {

        font-size: 24px;
    }

    #letoltes {
        margin-bottom: 5px;
        font-size: 50px;
    }

    .bx {
        border-radius: 20px;
        font-size: 40px;
    }

    textarea#patchContent {
        width: 100%;
        height: 200px;
        font-size: 1em;
    }

    input#patchTitle {
        width: 100%;
        font-size: 1.1em;
    }

    button {
        font-size: 1.1em;
        padding: 12px 30px;
    }

    #patch-notes {
        margin: 30px auto;
        padding: 30px 25px;
    }

    #patch-notes label {
        font-size: 1.5em;
    }

    #patchNotesDropdown {
        width: 90%;
        font-size: 1em;
        padding: 10px;
    }

    #patchNoteTitle {
        font-size: 1.5em;
    }

    #patchNoteContent {
        font-size: 1em;
        padding: 15px;
    }
}

/* Very small devices (extra small phones, up to 400px) */
@media only screen and (max-width: 400px) {
    #navbar ul {
        padding: 5px 0;
        justify-content: space-between;
    }

    #navbar li {
        margin: 3px 3px;
        flex-basis: auto;
    }

    #navbar a {
        font-size: 16px;
        padding: 4px 8px;
    }

    body {
        padding-top: 50px;
    }

    #HomeLogo {
        width: 250px;
    }

    #letoltes {
        margin-bottom: 10px;
        font-size: 35px;
    }

    .bx {
        border-radius: 13px;
        font-size: 25px;
        padding: 10px;
    }

    .login-buttons button {
        font-size: 17px;
    }

    #Lock-selection p {
        font-size: 23px;
    }
}

/* Friends dropdown styles */
.friends-menu { position: relative; }
.friends-menu > a { display: inline-flex; align-items: center; }

.dropdown-panel {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 320px;
    max-height: 70vh;
    overflow: auto;
    background: rgba(0,0,0,0.95);
    border: 2px solid rgba(255, 170, 51, 0.7);
    box-shadow: 0 0 20px rgba(255, 174, 66, 0.6);
    border-radius: 14px;
    padding: 12px;
    z-index: 1000;
}

.friends-menu.open > .dropdown-panel { display: block; }

.dropdown-section { border-bottom: 2px solid rgba(255, 170, 51, 0.3); padding: 8px 6px 12px; }
.dropdown-section:last-child { border-bottom: 0; }
.dropdown-section h3 { margin: 4px 4px 8px; font-size: 20px; color: #ffae42; }

.dd-list { list-style: none; margin: 0; padding: 0; }
.dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px; }
.dd-empty { color: #ccc; font-style: italic; padding: 4px; }

.dd-user { display: flex; align-items: center; gap: 8px; }
.dd-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #ffaa33; box-shadow: 0 0 10px rgba(255,174,66,0.6); }
.dd-user .name { font-size: 18px; color: #fff; }

#dd-add-form { display: flex; gap: 8px; }
#dd-add-form input { flex: 1; background: #111; color: #fff; border: 2px solid rgba(255,170,51,0.7); border-radius: 10px; padding: 8px 10px; }
#dd-add-form .btn { background: #ffaa33; color: #000; border: none; border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: 0 0 8px rgba(255, 170, 51, 0.4); }
#dd-add-form .btn:hover { background: #ff9900; box-shadow: 0 0 12px #ffaa33; }
.dd-actions .btn { background: transparent; color: #ffaa33; border: 2px solid #ffaa33; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.dd-actions .btn:hover { background: rgba(255,170,51,0.15); }
.dd-msg { color: #ffae42; margin-top: 6px; min-height: 18px; }

/* Responsive positioning for dropdown on small devices */
@media (max-width: 600px) {
  .dropdown-panel { left: 50%; transform: translateX(-50%); min-width: 90vw; }
}