@font-face {
    font-family: "Space Grotesk";
    src: url(./assets/SpaceGrotesk.ttf);
}

html {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;

    touch-action: manipulation;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: sans-serif;
    background-color: hsl(217, 37%, 6.5%);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: hsl(0, 0%, 11%);
    padding: 5px;
    border-radius: 8px;
    width: 60%;
    min-width: 100px;
    height: 60%;
    min-height: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

.modal-inner-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    height: 100%;
    width: 100%;
    padding-top: 4%;
}

.info-text {
    color: white;
    font-family: "Space Grotesk";
}

.modal-input {
    padding: 5px 10px;
    margin: 0;
    background-color: hsl(217, 15%, 15%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 12.5px;
    width: 50%;
    height: 30px;
}

.modal-prename-input-div, .modal-name-input-div {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: red;
    margin-top: 0px;
}

h2 {
    color: white;
    font-family: "Space Grotesk";
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 35px;
    font-size: 32.5px;
}

.main-input {
    padding: 10px 15px;
    margin: 0;
    background-color: hsl(217, 15%, 15%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 12.5px;
    width: 50%;
    height: 30px;
}

.main-input:focus, .modal-input:focus {
    outline: 2px solid hsl(0, 0%, 30%);
    border: none;
}

.main-input:disabled {
    filter: grayscale(0.2) brightness(0.75);
}

#prename-aufsicht-1,
#prename-aufsicht-2 {
    margin-right: 10px;
}

.datum-container {
    color: white;
    font-family: "Space Grotesk";
    font-size: 25px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.aufsicht-anmelden {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    width: 90%;
    height: 75%;
    padding: 0.5% 0.5% 10% 0.5%;
    margin-top: 10%;
    border-radius: 25px;
    background-color: rgb(20, 20, 20);
}

.aufsicht {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    margin-top: 15px;
    margin-bottom: 5px;
}

#aufsicht-1 {
    margin-top: 50px;
}

#aufsicht-2 {
    margin-top: 125px;
}

.aufsicht-input {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.aufsicht-controls {
    width: 100%;
    margin-top: 35px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
}

.save-button {
    background-color: hsl(80, 100%, 37.5%);
    color: hsl(0, 0%, 5%);
    font-family: "Space Grotesk";
    border: none;
    padding: 7.5px 20px;
    border-radius: 3px;
    width: 100px;
    transition: 0.25s;
}

.save-button:hover:not(:disabled) {
    background-color: hsl(80, 100%, 50%);
    cursor: pointer;
}

.view-button {
    background-color: hsl(218, 32%, 15%);
    font-family: "Space Grotesk";
    color: hsl(218, 32%, 45%);
    border: none;
    margin-left: 25px;
    padding: 7.5px 20px;
    border-radius: 3px;
    width: 100px;
    transition: 0.25s;
}

.view-button:hover:not(:disabled) {
    background-color: hsl(218, 32%, 20%);
    cursor: pointer;
}

.view-button:disabled, .save-button:disabled {
    filter: grayscale(0.35) brightness(0.75);
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    max-width: 80%;
    height: 25px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    left: 50%;
    bottom: 50px;
    font-size: 17px;
    z-index: 1001;
    transition: opacity 0.5s, bottom 0.5s;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#snackbar.show {
    visibility: visible;
    bottom: 75px;
    opacity: 1;
}

.label {
    color: hsl(0, 0%, 80%);
    font-family: "Space Grotesk";
    font-size: 19px;
    margin-left: 5px;
    margin-bottom: 25px;
}

/* --- Tablet/Mittlere Screens --- */
@media (min-width: 700px) {
    .aufsicht {
        width: 80%;
    }

    .modal-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 35%;
        color: red;
    }

    #prename-aufsicht-1, #prename-aufsicht-2 {
        margin-right: 20px;
    }

    .modal-controls {
        margin-top: 0;
    }

    .modal-content {
        height: 50%;
    }
}

/* --- Große Screens --- */
@media (min-width: 2000px) {
    input {
        font-size: 19px;
    }

    .aufsicht-anmelden {
        padding: 0.5% 0.5% 5% 0.5%;
        margin-top: 5%;
    }

    .modal-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 35%;
        color: red;
    }

    #prename-aufsicht-1, #prename-aufsicht-2 {
        margin-right: 30px;
    }

    .modal-controls {
        margin-top: 0;
    }

    .modal-content {
        height: 50%;
    }
}