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

:root{
    --main-color: #2c2c2c;
    --secondary-color: #6b6b6b;
    --form-bg-color: #ccc5b9;
    --background-color: #fffcf2;
}

body{
    background-color: var(--background-color);
    font-family: 'Montserrat', sans-serif;
    color: #2c2c2c;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

h1{
    font-weight: 500;
    font-size: 1.7rem;
    margin: 0 0 20px;
}

.container{
    background-color: var(--form-bg-color);
    width: 350px;
    min-height: 100vh;
    transition: transform 0.3s ease;
    border-right: solid 3px rgba(44, 44, 44, 0.85);
    position: relative;
    transform: translateX(0);
}

.form-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 2rem;
    width: 300px;
}

#lista-peliculas {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    align-content: flex-start;
    overflow-y: auto;
}

.pelicula-card {
    border-radius: 8px;
    padding: 1rem;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.25s;
    height: 370px;
    cursor: pointer;
}

.pelicula-card:hover {
    box-shadow: 0 0 0 3.5px rgba(63, 63, 63, 0.5);
    scale: 0.98;
}

.pelicula-card img {
    width: 200px !important;
    height: 112.5px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.pelicula-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    text-align: center;
}

.pelicula-card p {
    margin: 0.2rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-align: center;
}

input{
    max-width: 179px;
    margin: 5px;
    border: none;
    outline: none;
    padding: 5px;
    border-radius: 4px;
    background-color: var(--background-color);
    transition: all 0.25s ease;
}

input::placeholder{
    color: #6b6b6b;
}

input:hover{
    box-shadow: 0 0 0 3.5px rgba(63, 63, 63, 0.5);
}

input:focus{
    box-shadow: 0 0 0 2px rgba(63, 63, 63, 0.75);
}

.btn{
    margin: 5px;
    margin-top: 15px;
    width: 179px;
    padding: 5px;
    max-height: 25px;
    border: none;
    background-color: var(--background-color);
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover{
    box-shadow: 0 0 0 3.5px rgba(63, 63, 63, 0.5);
}

.btn:active{
    box-shadow: 0 0 0 2px rgba(63, 63, 63, 0.75);
    scale: 0.98;
}

.container svg {
    position: absolute;
    right: -42px;
    top: 1.5rem;
    color: var(--main-color);
    cursor: pointer;
    background: var(--form-bg-color);
    padding: 0.5rem;
    border-radius: 14px;
    z-index: 1000;
    width: 42px;
    height: 42px;
    transition: 0.25s;
}

.container svg:hover {
    box-shadow: 0 0 0 3.5px rgba(63, 63, 63, 0.5);
}

.container svg:active {
    box-shadow: 0 0 0 2px rgba(63, 63, 63, 0.75);
    scale: 0.98;
}

#lista-peliculas {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--background-color);
    min-height: 100vh;
    overflow-y: auto;
}

.card-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
    gap: 0.5rem;
}

.borrar-btn {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: 0.15;
}

.card-actions:hover .borrar-btn {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.borrar-btn{
    margin: 5px;
    margin-top: 15px;
    width: 30px;
    height: 30px;
    padding: 5px;
    border: none;
    background-color: var(--background-color);
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
}

.borrar-btn:hover{
    box-shadow: 0 0 0 3.5px rgba(63, 63, 63, 0.5);
    background-color: rgba(156, 77, 77, 0.12);
    color: var(--main-color);
}

.borrar-btn:active{
    box-shadow: 0 0 0 2px rgba(63, 63, 63, 0.75);
    scale: 0.98;

}