.update-product {
    padding-top: 60px;
    padding-left: 150px;

    .cancel {
        height: 50px;
        width: 50px;
        border-radius: 25px;
        position: fixed;
        top: 70px;
        right: 50px;
        z-index: 5;
        background-color: #4694fc;
        box-shadow: 0px 2px 10px lightgray;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 25px;
        animation: icon 0.7s ease-in-out;
        transition: 0.5s;
        color: white;
    }

    .cancel:hover {
        transform: scale(1.2);
        box-shadow: 0 10px 20px lightgray;
    }


    @keyframes icon {
        0%{
            transform: scale(0.2);
       
        }
        50%{
            transform:  scale(1.5);
        }
        100%{
            transform: scale(1);
        }
    }

    .add-product {
        background-color: white;
        color: gray;
        margin: 50px;
        padding: 20px 50px 50px 50px;
        box-shadow: 0px 2px 10px lightgray;
        display: flex;
        flex-direction: column;
        border-radius: 5px;

        h1 {
            color: #4694fc;
            margin-top: 0px;
            text-align: center;
            font-weight: 500;
        }

        .success {
            position: fixed;
            height: 100%;
            width: 100%;
            left: 0;
            top: 0;

            div {
                margin: 150px auto;
                height:80px;
                width: 250px;
                background-color: #4694fc;
                color: white;
                font-size: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 5px;
                animation: success 1s ease-in-out;            
            }
        }


        @keyframes success {
            0%{
                transform: scale(0.2);
           
            }
            50%{
                transform:  scale(1.3);
            }
            100%{
                transform: scale(1);
            }
        }

        .photo {
            .image {
                display: flex;
                justify-content: center;
        
                img {
                    width: 60%;
                    height: 60%;
                }
            }

            label {
                margin-bottom: 2px;
                font-weight: 520;
                color: #4694fc;
                font-size: 17px;
            }
            
            input {
                margin-bottom: 15px;
            }
        
        }

        form {
            display: flex;
            flex-direction: column;
            
            label {
                margin-bottom: 2px;
                font-weight: 520;
                color: #4694fc;
            }

            input {
                margin-bottom: 15px;
            
                border: 1px solid lightblue;
                padding: 5px 8px;
                font-size: 16px;
            }

            select {
                margin-bottom: 10px;
                font-size: 16px;
                padding: 2px 5px;
                border: 1px solid lightblue;
                background-color: white;
            }

            .size-stock {
                display: grid;
                grid-template-columns: 1fr 1fr;
                
                input {
                    border-radius: 5px;
                    width: 50%;
                    margin-bottom: 2px;
                }

                hr {
                    margin-top: 1px;
                    border: none;
                    height: 2px;
                    background-color: #4694fc;
                    border-radius: 2px;
                    opacity: 0.5;
                }

                .size {
                    font-size: 20px;
                    color: black;
                    font-weight: 500;
                }

                .stock {
                    font-size: 20px;
                    color: #4694fc;
                    font-weight: 500;
                }

                .stock span {
                    padding: 3px 0;
                    border-radius: 50%;
                    margin-left: 10px;
                    color: white;
                    background-color: #ED515E;
                    cursor: pointer;
                }

            }

            .description {
                height: 300px;
                margin-bottom: 100px;
            }

            .message {
                color: red;
                margin: 0 auto;
                margin-bottom: 5px;
            }

            .add {
                border: 1px solid #4694fc;
                background: #4694fc;
                text-align: center;
                color: white;
                padding: 3px 0;
                margin-bottom: 15px;
                border-radius: 20px;
                cursor: pointer;
            }

            .add:hover {
                background-color: white;
                color: #4694fc;
            }

            button {
                border: 1px solid #4694fc;
                background-color: #4694fc;
                color: white;
                font-size: 20px;
                font-weight: 520;
                cursor: pointer;
                padding: 5px 0;
                box-shadow: 0px 8px 20px lightgray;

            }

            button:hover {
                background-color: white;
                color: #4694fc;
            }
        }
    }
}

@media (max-width: 700px){
    .update-product {
        padding-left: 0px;
        padding-bottom: 50px;

        .cancel {
            right: 10px;
        }

        .add-product {
            margin: 15px;
            padding: 20px;

            .photo {
                .image {
                    img {
                        width: 100%;
                    }
                }
            }
        }

    }
}