body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background-color: #f7f7f77a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

#registerContainer {
    display: flex;
    background-color: white;
    align-self: center;
    border-radius: 10px;
    box-shadow: 0px 0px 8px 0px gray;
    width: 40%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

#data-block {
    display: flex;
    margin-bottom: 5px;
    user-select: none;
}

#login_btn {
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: 10px;
    border-radius: 10px;
    user-select: none;
    background-color: rgb(248, 140, 0);
    color: white;
}

#login_btn:hover {
    background-color: rgb(205, 117, 1);
    text-decoration: none; 
    font-style: bold;
}

#cancel {
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: 10px;
    border-radius: 10px;
    user-select: none;
    background-color: rgb(248, 140, 0);
    color: white;
}

#cancel:hover {
    background-color: rgb(205, 117, 1);
    text-decoration: none; 
    font-style: bold;
}

#register_btn {
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: 10px;
    border-radius: 10px;
    user-select: none;
    background-color: rgb(248, 140, 0);
    color: white;
}

#register_btn:hover {
    background-color: rgb(205, 117, 1);
    text-decoration: none; 
    font-style: bold;
}

p5 {
    font-size: 15px;
    margin: auto;
    white-space: nowrap;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: rgba(128, 128, 128, 0.336);
    width: fit-content;
    padding: 10px;
    padding-right: 20px;
    align-self: center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
    color: #3d3d3dc7;
    text-align-last: left;
    width: -webkit-fill-available;
    justify-self: center;
}


.logo {
    width: 60px;
    height: 50px;
    margin-left: 20px;
}

.bloque_ajuste {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.toggle {
    display: none;
}

.compra_titulo {
    width: auto;
    margin-top: 20px;
    font-size: 18px;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 10px;
    display: block;
    font-weight: 100;
    cursor: pointer;
    user-select: none;
}

.compra_titulo:hover {
    font-weight: bold;
}

.data-block {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toggle:checked+.compra_titulo+.data-block {
    max-height: max-content;

}

.data {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    display: inline-block;
}


nav {
    height: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-end;
    align-items: center;
}

p2 {
    white-space: nowrap;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background-color: white;
    box-shadow: 2px 2px 2px 0px gainsboro;
    padding: 8px;
    font-size: 15px;
    align-self: center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
    color: #3d3d3dc7;
    text-align-last: left;
    width: -webkit-fill-available;
    justify-self: center;
}

#data {
    background-color: #e5e5e580;
    box-shadow: 2px 2px 2px 0px gainsboro;
    width: 100px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    font-weight: bold;
    font-size: 15px;
    padding: 8px;
    padding-left: 10px;
    margin-bottom: 0px;
}


a {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

nav a {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-left: 1rem;
    text-decoration: none;
    color: #ffffff;
}

nav a:hover {
    color: orange;
    text-decoration: underline;
    text-underline-offset: 5px;
}

#name {
    display: none;
    background-color: #ffffff;
    height: 35px;
    width: 115px;
    margin-right: 5px;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 2px 1px rgb(219, 219, 219);
    margin-bottom: 10px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 8px center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

}

#surname {
    display: none;
    background-color: #ffffff;
    height: 35px;
    width: 115px;
    margin-left: 5px;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 2px 1px rgb(219, 219, 219);
    margin-bottom: 10px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 8px center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

}

#register_tip {
    cursor: pointer;
}

#register_tip:hover {
    color: black;
    text-decoration: underline;
}

button {
    background-color: darkslategrey;
    color: white;
    border: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
    width: 120px;
    height: 40px;
}

button:hover {
    background-color: rgb(25, 43, 43);
    cursor: pointer;
}

#DataContainer {
    border-radius: 16px;
    width: 500px;
    height: 400px;
    background-color: white;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-self: center;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
}

#comprasContainer {
    border-radius: 16px;
    width: 600px;
    height: auto;
    background-color: white;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-self: center;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
}

#titulo {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

#accountContainer {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-evenly;
}

.register {
    background-color: #ffffff;
    height: 35px;
    width: 250px;
    border-radius: 10px;
    border: none;
    box-shadow: 2px 2px 2px 1px rgb(217, 217, 217);
    margin-bottom: 10px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 8px center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

}

input.register {
    padding-left: 10px;
}

h1 {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #3d3d3dc7;
    text-align: center;
    width: 70%;
    justify-self: center;
}

input .register {
    background-color: rgb(219, 218, 214);
    height: 35px;
    border-radius: 4px;
    border: none;
    box-shadow: 0px 0px 0px 1px gray;
    padding-left: 30px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/622/622669.png');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 8px center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

}

.texto_p {
    width: 80%;
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    justify-self: center;
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

}

p {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-left: 1rem;
    text-decoration: none;
    color: #3d3d3dc7;
    text-align: center;
    width: 70%;
    justify-self: center;
}