body {
    flex-direction: column;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
}

.pw-container {
    background-color: rgba(255, 255, 255, 0.301);
    padding: 13px 20px;
    border-radius: var(--border-radius-m);
    box-shadow: 3px 3px 7px white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 40%;
    position: relative;
    overflow: hidden;
}

.pw-container .header {
    font-size: 23px;
    padding: 3px 0;
    border-bottom: 2px solid rgb(251, 251, 251);
}

.pw-container .main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pw-container .main input {
    padding: 0 10px;
    font-size: 18px;
    border-radius: var(--border-radius-s);
    border-top-right-radius: unset;
    border-bottom-right-radius: unset;
    border: 1px solid white;
    border-right: unset;
    background-color: transparent;
    outline: none;
    color: white;
    height: 40px;
    box-sizing: border-box;
    flex: 1;
}

.pw-container .main button {
    height: 40px;
    background-color: transparent;
    border: 1px solid white;
    border-left: unset;
    border-radius: var(--border-radius-s);
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
    padding: 0 10px;
    font-size: 16px;
    color: white;
    margin-left: -2px;
    transition: background-color 0.3s ease;
}

.pw-container .main button:hover,
.pw-container .footer button:hover {
    cursor: pointer;
    background-color: var(--hover-color);
}

.pw-container .main input::placeholder {
    color: rgb(224, 224, 224);
}

.pw-container .footer button {
    padding: 6px 8px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: var(--border-radius-s);
    color: white;
    font-size: 17px;
    transition: background-color 0.3s ease;
}

.pw-container .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pw-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.568);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.pw-loader-container.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

.pw-loader {
    width: 35px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(#ffffff 0 0);
    background:
        var(--c) 0% 50%,
        var(--c) 50% 50%,
        var(--c) 100% 50%;
    background-size: 20% 100%;
    animation: l1 1s infinite linear;
}

@keyframes l1 {
    0% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }

    33% {
        background-size: 20% 10%, 20% 100%, 20% 100%
    }

    50% {
        background-size: 20% 100%, 20% 10%, 20% 100%
    }

    66% {
        background-size: 20% 100%, 20% 100%, 20% 10%
    }

    100% {
        background-size: 20% 100%, 20% 100%, 20% 100%
    }
}

.message-div {
    margin-top: 30px;
    background-color: rgba(0, 0, 0, 0.419);
    padding: 10px;
    border-radius: var(--border-radius-m);
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    display: none;
    max-width: 60%;
    align-self: center;
    position: absolute;
}

.message-div span {
    font-size: 20px;
}

.message-div i {
    font-size: 40px;
    color: rgb(0, 184, 0);
}

footer{
    display: flex;
    justify-content: right;
}

footer button{
    padding: 5px 10px;
    border-top-left-radius: var(--border-radius-s);
    border: none;
    background-color: rgba(0, 0, 0, 0.505);
    color: white;
    transition: background-color 0.3s ease;
}

footer button:hover{
    cursor: pointer;
    background-color: var(--hover-color);
}

#pwOverlay.open {
    visibility: visible;
}

#pwPopup.open {
    visibility: visible;
}

#pwPopup {
    visibility: hidden;
}

#pwOverlay {
    visibility: hidden;
}

#pwPopup .header {
    border-bottom: 1px solid white;
    font-size: 23px;
    text-align: center;
    padding-bottom: 5px;
}

#pwPopup .main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#pwPopup .main input {
    padding: 0 10px;
    font-size: 18px;
    border-radius: var(--border-radius-s);
    border: 1px solid white;
    background-color: transparent;
    outline: none;
    color: white;
    height: 40px;
    box-sizing: border-box;
    width: 100%;
}

#pwPopup .main input::placeholder {
    color: rgb(224, 224, 224);
}

#pwPopup .footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#pwPopup .footer button {
    padding: 6px 8px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: var(--border-radius-s);
    color: white;
    font-size: 17px;
    transition: background-color 0.3s ease;
}

#pwPopup .footer button:hover {
    cursor: pointer;
    background-color: var(--hover-color);
}

@media only screen and (max-width: 780px) {
    .pw-container {
        width: 80%;
    }
}