*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes show {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes rAnim {
    0% { 
        opacity: 1; 
        transform: translateY(+50px); 
    }
    100% { 
        opacity: 0;
        transform: translateY(0);
    }
}

main .content{
    display: flex;
    justify-content: center;
    flex-direction: column;
}

main{
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.1);
    margin-top: 2vw;
    padding: 1em;
    min-height: 80vh;
}

.header{
    text-align: center;
    margin-bottom: 1vw;
}

th{
    width: 25%;
}

.header .content h2{
    text-align: center;
}

tbody{
    width: 100%;
    justify-content: center;
    flex-direction: column;
}

#tabela{
    width: 100%;
    animation: show 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

td{
    text-align: center;
    width: 100%;
    animation: show 0.5s ease;   
}

tr{
    display: flex;
    gap: 1em;
    padding: 1em;
    border: 1px solid red;
    width: 100%;
    align-items: center;
}

#modal {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    width: 55%;
    max-height: 95vh;
    overflow-y: auto;
    background-color: #07294c;
    color: white;
    gap: 1vw;
    border-radius: 20px;
    box-shadow: 0 0 100vw 100vh rgba(0, 0, 0, 0.29);
    z-index: 100;
    animation: show  0.4s linear;
}

#modal img {
    max-width: 100%;
    max-height: 50%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
}
#modal img.close_icon{
	width: 24px;
    align-self: end;
}
#modal button {
    padding: 1em;
    border-radius: 5px;
    border: none;
    background-color: #dc262b;
    color: white;
    width: 70%;
    cursor: pointer;
    font-size: 1em;
    margin-top: 1em;
    transition: 0.3s ease-out;
}

#modal button:hover {
    background-color: darkred;
}

.morebtn{
    background-color: #dc262b;
    padding: 1em;
    color: white;
    border: none;
    border-radius: 1em;
    transition: .3s ease-out;
}

.morebtn:hover{
    background-color: darkred;
}

.log_panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
}

.log_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5em;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.3); 
    border-radius: 1.5em;
    gap: 1.5em;
    width: 50%;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.log_input {
    padding: 0.7em;
    width: 75%;
    border-radius: 5px;
    background-color: silver;
    border: none;
    transition: 0.3s ease-out;
}

.log_input::placeholder {
    color: black;
}

.log_input:focus {
    background-color: rgb(209, 207, 207);
    outline: none;
}

.log_btn {
    padding: 1em;
    width: 50%;
    background-color: #dc262b;
    color: white;
    border: none;
    border-radius: 1em;
    transition: .3s ease-out;
}

.log_btn:hover {
    background-color: darkred;
}


.form_panel {
    position: absolute;
    z-index: 1000000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    margin: 0;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player_form {
    display: flex;
    gap: 1em;
    align-items: center;
    flex-direction: column;
    width: 100%; 
    background-color: #07294c;
    padding: 1em;
    border-radius: 30px;
    animation: show  0.3s linear;
}

.player_form input {
    padding: 0.7em;
    border-radius: 5px;
    background-color: silver;
    border: none;
    transition: 0.3s ease-out;
    width: 75%;
}

.player_form input:hover {
    background-color: rgb(209, 207, 207);
    outline: none;
}

.player_form input[type="submit"],
.player_form input[type="button"] {
    padding: 1em;
    width: 70%;
    background-color: #dc262b;
    color: white;
    border: none;
    border-radius: 1em;
    transition: 0.3s ease-out;
}

.player_form input[type="submit"]:hover,
.player_form input[type="button"]:hover {
    background-color: darkred;
}

main .content .header input#admin_btn{
    padding: 1em;
    background-color: #dc262b;
    color: white;
    border: none;
    border-radius: 1em;
    transition: .3s ease-out;
}

.add_btn{
    padding: 1em;
    background-color: #dc262b;
    color: white;
    border: none;
    border-radius: 1em;
    transition: .3s ease-out;
}

.add_btn:hover{
    background-color: darkred;
}

.edit_form{
    position: absolute;
    z-index: 10000;
    width: 75%;
    margin: 0 auto;
    top: 50%;
    box-shadow: 0 0 100vw 100vh rgba(0, 0, 0, 0.5);
    left: 50%;
    transform: translate(-50%, -50%);
    animation: show  0.3s linear;
}

@media (max-width: 768px) {
    .edit_form {
        top: 50%;
        width: 95%;
        max-width: 600px;
        padding: 16px;
    }
    #modal{
        width: 75%;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .edit_form {
        width: 98%;
        padding: 12px;
        top: 50%;
    }
    #modal{
        width: 95%;
        max-height: 90vh;
    }
}

#osiagnieciaInput{
    height: 15vh;
    padding: 0.7em;
    border-radius: 5px;
    background-color: silver;
    border: none;
    transition: 0.3s ease-out;
    width: 75%;
}
