@font-face {
    font-family: 'ShakyHand';
    src: url(../img/shakyhandsomecomic.otf) format('truetype');
    font-style: normal;
    font-weight: normal;
  }
@font-face{
    font-family: 'ShakyHandL';
    src: url(../img/shakyhandsomecomicligth.otf) format(truetype);
    font-style: normal;
    font-weight: normal;
}


  :root{
    --rosa: #ed028c;
    --cafe: #231f20;
    --morado: #5b2e91;
    --verde: #a6ce39;
    --FF: 'ShakyHand';
  }
.cont-venta{
    display: grid;
    grid-template-areas: 
    "url"
    "nombre"
    "foto"
    "form"
    "form"
    "des";
    background-color: white;
    width: 90%;
    margin: 0 auto;
    padding: 10px;
    margin-bottom: 15px;
    margin-top: calc(151px + 30px);
}

.url{
    grid-area: url;
    font-family: var(--FF);
    text-decoration: none;
    color: var(--verde);
    font-size: 17px;
}
.url a:hover{
    color: #7c9c25;
}
.url a{
    text-decoration: none;
    color: var(--verde);
    transition: 150ms;
}

.img-product{
    grid-area: foto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.img-cont img{
    max-width: 100%;
    object-fit: contain;
    max-height: 100%;
    justify-content: center;
    overflow: hidden;
}
.img-cont img:hover{
    transform: scale(2);
    cursor: zoom-in;
}
.img-cont img:active{
    transform: scale(5);
}
.img-cont{
    border: 2px;
    border-color: #231f20;
    border-style: solid;
    display: flex;
    justify-content: center;
    width:260px ;
    height: 300px;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 5px;
    overflow: hidden;
}
.form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-area: form;
}



.description{
    grid-area: des;
    border-top: #231f2049 1px solid;
    text-align: justify;
}
.description h4{
    letter-spacing: 0.7px;
    margin-top: 0;
    color: #6a6a6a;
    font-size: 15px;
    font-family: 'ShakyHandL';
    font-weight: lighter;
}
.description h3{
    font-family: var(--FF);
    margin: 1em 0;
}



.cant{
    border-top: #231f2049 1px solid;
    font-family: var(--FF);
    margin-bottom: 20px;
    transition:  150ms;
}
.cant div{
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    transition:  150ms;
}
.cant input{
    width: 70px;
    margin: 0 20px 0 0;
    height: 30px;
    border:#231f2049 1px solid ;
    text-align: center;
    font-family: 'ShakyHandL';
    font-size: 20px;
}
.btn-alq{
    padding: 5px 20px 5px 20px;
    border-style: none;
    background-color: var(--morado);
    font-family: var(--FF);
    color: white;
    letter-spacing: 1px;
    margin-right: 5px;
    transition:  150ms;
}
.btn-comp{
    padding: 5px 20px 5px 20px;
    border-style: none;
    background-color: var(--rosa);
    font-family: var(--FF);
    color: white;
    letter-spacing: 1px;
    transition:  150ms;
}

.btn-comp:hover, .btn-alq:hover{
    transform: scale(1.1);
    rotate: 10deg;
    transition: ease-in-out 150ms;
    transition:  150ms;
    border-radius: 10px;
}

.select{
    border-top: #231f2049 1px solid;
    font-family: var(--FF);
    margin-bottom: 20px;
    padding-top: 20px;
}
.select select{
    width: 250px;
    margin: 0 20px 0 0;
    border:#231f2049 1px solid ;
    font-family: 'ShakyHandL';
    letter-spacing: 1px;
    padding-left: 5px;
    padding: 15px 0 15px 5px;
}

.select select option{
    width: 250px;
    height:200px;
    margin: 0 20px 0 0;
    border:#231f2049 1px solid ;
    font-family: 'ShakyHandL';
    letter-spacing: 1px;
    padding-left: 5px;
    padding: 10px 0 10px 5px;
}
.name-product{
    grid-area: nombre;
    font-family: var(--FF);
    letter-spacing: 0.5px;
    word-wrap: break-word;
}

@media (min-width: 650px){
    .cont-venta{
        margin-top: 30px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "url url"
        "foto nombre"
        "foto form"
        "foto form"
        "foto des";
        gap: 20px;
        padding: 20px;
        padding-top: 20px;
    }
    .url{
        margin-left: 2%;
    }
    .description{
        height: fit-content;
    }
    .select{
        margin: 0;
        height: fit-content;
        padding-bottom: 10px;
    }
    .cant{
        margin: 0;
    }
    .img-cont{
        height: 350px;
    }
    .name-product h2{
        margin: 0;
    }
    .img-product{
         justify-self: center;
         width: fit-content;
    }
    .description, .cant, .select, .name-product{
        max-width: 350px;
    }
    .btn-alq, .btn-comp{
        padding: 5px 16px;
        font-size: 17px;
    }
    .cant input{
        width:80px;
        height: 40px;
    }
}

@media (min-width:1100px){
    .cont-venta{
        margin-top: calc(174px + 30px);
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 53px max-content;
        grid-template-areas: 
        "url url"
        "foto nombre"
        "foto form"
        "foto form"
        "foto des";
        width: 80%;
        column-gap: 50px;
    }
    .url{
        grid-area: url;
    }
    .img-cont{
        width: 400px;
        height: 540px;
    }
    .img-cont img{
        width: 100%;
        height: auto;
    }
    .img-product{
        width: 400px;
        justify-self: center;
    }
    .description, .form, .select,.cant, .name-product{
        max-width: 450px;
    }
    .btn-alq, .btn-comp{
        padding: 15px 30px;
        font-size: 17px;
    }
    .select{
        
        padding-top: 0;
        border: none;
        padding-bottom: 20px;
    }
    .cant input{
        width:80px;
    }
    .name-product{
        border-bottom:#231f2049 1px solid ;
        height: fit-content;
        padding-bottom: 20px;
    }
    .form{
        justify-content: space-evenly;
    }
}
