@import "css/global.css";

/*Header*/
#header {
    background: url("../../images/header-background.jpg") no-repeat fixed center;
    min-width: 100%;
    min-height: 400px;
    height: 30vh;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
}

#header .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 150px;
    width: 100%;
}

#header .content .info {
    display: flex;
    flex-direction: column;
}

#header .content .info .minecraft-server-ip {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

#header .content .info .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
}

#header .content .info .title span {
    color: var(--main-color);
}

#header .content .description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

/*Application*/
#application .content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#application .content .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#application .content .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#application .content .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#application .content .columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 100px;
}

#application .content .columns .application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 2;
}

#application .content .columns .application-form .row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

#application .content .columns .application-form .row label {
    color: var(--description-color);
    font-size: 15px;
    line-height: 1.6;
}

.row input {
    background: var(--stats-background);
    border: none;
    padding: 20px 25px;
    font-size: 17px;
    color: var(--white-color);
    outline: none;
    border-radius: 5px;
    transition: 0.2s;
}

/* Custom Select (Dropdown) Styling */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--description-color);
    pointer-events: none;
    transition: 0.2s ease-in-out;
}

.row select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--stats-background);
    border: none;
    padding: 20px 25px;
    font-size: 17px;
    color: var(--white-color);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

/* Lesbarkeit der Dropdown-Optionen */
.row select option {
    background-color: #1b1c20;
    color: #ffffff !important;
    padding: 12px;
}

.row select option:disabled {
    color: #888888 !important;
}

.row input:focus, 
.row textarea:focus, 
.row select:focus, 
.row input:hover, 
.row textarea:hover, 
.row select:hover {
    background-color: var(--how-to-join-button-background);
}

.custom-select-wrapper:focus-within::after {
    color: var(--main-color);
    transform: translateY(-50%) rotate(180deg);
}

/* Minecraft Head Input Styling */
.input-with-head {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-head input {
    width: 100%;
    padding-right: 55px;
}

.player-head {
    position: absolute;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    image-rendering: pixelated;
}

.player-head.hidden {
    opacity: 0;
    transform: scale(0.8);
}

.username-status {
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.username-status.success {
    color: #2ecc71;
}

.username-status.error {
    color: #e74c3c;
}

.row textarea {
    background: var(--stats-background);
    padding: 15px 20px;
    font-size: 15px;
    outline: none;
    line-height: 1.6;
    border-radius: 5px;
    color: var(--white-color);
    font-family: var(--main-font);
    border: none;
    transition: 0.2s;
    resize: vertical;
    overflow-y: auto;
    min-height: 200px;
    max-height: 350px;
    min-width: 100px;
    justify-content: center;
}

#application .content .columns .application-form .form-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
}

#application .content .columns .application-form .form-footer button {
    background: var(--copy-ip-button-background);
    border: 2px solid var(--main-color);
    border-radius: 3px;
    padding: 10px 30px;
    color: var(--white-color);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    gap: 10px;
    align-items: center;
}

#application .content .columns .application-form .form-footer button:hover {
    opacity: 0.8;
}

#application .content .columns .application-form .form-footer .alert {
    color: var(--description-color);
    font-size: 15px;
}

#application .content .columns .url {
    text-decoration: none;
    height: fit-content;
}

#application .content .columns .url:hover .link .link-description .icon {
    transform: scale(1.1);
}

#application .content .columns .link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--stats-background);
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
}

#application .content .columns .link h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 700;
}

#application .content .columns .link .link-description {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 50px;
}

#application .content .columns .link .link-description .description {
    color: var(--description-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

#application .content .columns .link .link-description .description .discord-online-users {
    color: var(--green-color);
}

#application .content .columns .link .link-description .icon {
    border-radius: 5px;
    background: var(--stat-icon-background-2);
    padding: 10px;
    transition: 0.2s ease-in-out;
}

#application .content .columns .link .link-description .icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    position: relative;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 5px;
}

/*Footer*/
#footer {
    background: var(--stats-background);
}

/*Responsive*/
@media screen and (max-width: 1625px) {
    #header .content {
        padding: 150px 90px;
    }
}

@media screen and (max-width: 1361px) {
    #header .content {
        flex-direction: column;
        padding: 120px 90px;
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 150px 30px;
    }

    #header .content .info .minecraft-server-ip {
        font-size: 15px;
    }

    #header .content .info .title {
        font-size: 40px;
    }

    #header .content .info .description {
        font-size: 16px;
    }
}

@media screen and (max-width: 530px) {
    #header .content {
        justify-content: flex-start;
        align-items: flex-start;
    }

    #header .content .info .title {
        font-size: 30px;
    }
}

@media screen and (max-width: 1148px) {
    #application .content .columns {
        flex-direction: column;
    }

    #application .content .columns .url .link {
        max-width: 100%;
    }

    #application .content .columns .link .link-description {
        justify-content: space-between;
    }
}

@media screen and (max-width: 540px) {
    #application .content .columns .application-form .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    #application .content .columns .application-form .form-footer button {
        width: 100%;
        justify-content: center;
    }
}