* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100vh;
}

.head-container {
    margin-top: 20px;
    width: 300px;
    margin-left: auto;
    margin-right: auto
}

body{
    display: flex;
    flex-direction: column;
}

main{
    flex: 1;
}

.login-container {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.login-container input {
    padding: 12px 15px;
    border-radius: 20px;
    border: 1px solid gray;
    background-color: var(--input-background);
    color: var(--text-color);
    outline: none;
    position: relative;
    z-index: 1;
}

.login-container input::placeholder {
    color: color-mix(in srgb, var(--text-color) 50%, var(--input-background));
}

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

.project-header {
    text-align: center;
    padding: 20px 0;
    color: var(--text-color);
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.7s;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.7s;
}

#username {
    -webkit-animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both 0.4s;
    animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both 0.4s;
}

#password {
    -webkit-animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both 0.3s;
    animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both 0.3s;
}

.login-button {
    position: relative;
    z-index: 0 !important;
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.5s;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.5s;
}

.class-select {
    padding: 7px 5px;
    border-radius: 16px;
    outline: none;
    background-color: var(--body-background);
    color: var(--text-color);
    -webkit-animation: slide-in-left var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-left var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both 0.5s;
}

.project-view-button {
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.6s;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.6s;
}

.project-over-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.all-project-container {
    width: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 20px 0;
    position: relative;
    z-index: 2;
    background-color: color-mix(in srgb, var(--body-background) 90%, var(--text-color));
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 1s;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 1s;
}

.triangle-container {
    width: 100%;
    height: 100px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: color-mix(in srgb, var(--body-background) 90%, var(--text-color));
    align-self: center;
    position: relative;
    margin-top: 10px;
    margin-bottom: -1px;
    -webkit-animation: slide-in-bottom var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-bottom var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both 1.4s;
}

.triangle-circle {
    position: absolute;
    width: 40%;
    height: 100px;
    background-color: color-mix(in srgb, var(--body-background) 80%, var(--text-color));
    justify-self: center;
    top: -10px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    -webkit-animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both 1.8s;
}

.triangle-circle span {
    margin-top: 20px;
    font-weight: 600;
    font-size: 18px;
    overflow: hidden;
    padding: 10px;
    text-align: center;
}

.projekt {
    position: relative;
    background-color: var(--project-background);
    display: inline-block;
    justify-content: center;
    border-width: 1px;
    border-color: color-mix(in srgb, var(--border-color) 65%, var(--body-background));
    border-style: solid;
    padding: 5px;
    min-height: 400px;
    width: 80%;
    justify-self: center;
    vertical-align: top;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--box-shadow);
    transition: box-shadow 0.4s ease, opacity 1.5s ease;
    opacity: 0;
}

.projekt.view {
    opacity: 1;
}

.projekt:hover {
    box-shadow: 0 0 35px color-mix(in srgb, var(--box-shadow) 90%, var(--text-color));
}

.project-title {
    position: relative;
    text-align: center;
    font-size: 23px;
    margin: 10px 0 0 0;
    color: white;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.741) !important;
    padding: 5px 8px;
    width: 100%;
    justify-self: center;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: auto;
    margin-top: -5px;
    transform: translateY(-20px);
    transition: transform var(--speed-animation) ease;
}

.project-title.view {
    transform: translateY(0px);
}

.betreuer {
    position: absolute;
    bottom: 0;
    left: -1px;
    z-index: 1;
    justify-self: center;
    align-self: center;
    text-align: center;
    font-size: 14px;
    color: white;
    background-color: rgba(0, 0, 0, 0.907) !important;
    border-top: 1px solid white;
    border-right: 1px solid white;
    border-top-right-radius: 7px;
    box-sizing: border-box;
    padding: 5px 8px;
    max-width: 99%;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: auto;
    transform: translateY(20px);
    transition: transform var(--speed-animation) ease;
}

.betreuer.view {
    transform: translateY(0px);
}

.full-project {
    padding: 6px 10px;
    background-color: rgb(51, 122, 0);
    font-style: italic;
    color: white;
    border-radius: 6px;
    font-size: 23px;
    background-color: rgb(156, 0, 0);
    z-index: 1;
    justify-self: center;
    position: absolute;
    opacity: 0;
    align-self: anchor-center;
    transition: opacity 1.5s ease;
    text-align: center;
}

.full-project.view {
    opacity: 1;
}

.project-image-container {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.project-image,
.project-image-selected {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    filter: brightness(0.7);
}

.project-image-selected {
    filter: brightness(0.3) blur(2px);
}

.space {
    text-align: center;
    padding: 8px 0;
}

.space-free {
    color: green
}

.space-full {
    color: red
}

footer {
    background-color: color-mix(in srgb, var(--body-background) 95%, var(--text-color));
    padding: 15px 10px;
    display: flex;
    position: relative;
}

footer button {
    padding: 5px 10px;
    font-size: 14px;
    background-color: inherit;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

footer button:hover {
    cursor: pointer;
    background-color: color-mix(in srgb, var(--body-background) 85%, var(--text-color));
}

.credit{
    color: color-mix(in srgb, var(--text-color) 60%, var(--body-background));
    width: fit-content;
    font-size: 11px;
    position: absolute;
    right: 5px;
    bottom: 8px;
    user-select: none;
}

@media only screen and (max-width: 780px) {
    .triangle-circle {
        width: 50%;
    }

    .triangle-circle span {
        margin-top: 30px;
    }
}