body{
    font-family: 'Open Sans', sans-serif;
}
.container{
    margin-top: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack:center;
        -ms-flex-pack:center;
            justify-content:center;
    -webkit-box-orient:horizontal;
    -webkit-box-direction:normal;
        -ms-flex-direction:row;
            flex-direction:row;

}
.photos{
    max-width: 650px;
    -webkit-box-flex:1;
        -ms-flex:1;
            flex:1;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    
    
}
.container > .item_name{
    display: none;
}
.container .item_description .item_name{
        display: block;
        padding-bottom: 15px;
        font-weight: bold;
        font-size: 18px;
        margin:auto;
        width:350px;
    }
.photos img{
    width: 70%;
   
}

/*.photos img:not(:first-child){*/
/*    display: none;*/
/*}*/

.photos .visible_photo2:target
  {
    display: block !important;
    z-index: 1;
    position: absolute;
    top:0px;
    margin-left: 15%
  }

.item_description{
    -webkit-box-flex:1;
        -ms-flex:1;
            flex:1;
    max-width: 350px;
    margin-bottom: 20px;
}
.mini_photos{
    text-align: left;
    margin-left: 15%;
    margin-top: 10px;
    
}
.photos .mini_photos img{
    width: 20%;
    margin-right: 10px;
    
}
.photos .mini_photos img:hover{
    cursor: pointer;
}
.material{
    padding-left: 15%;
    text-align: left;
}
.material div:first-child{
    padding-top: 15px;
    font-weight: bold;
}
.material ul{
    list-style-type: none;
}
.item_name{
    font-family: Arial, sans-serif;
    color:#303030;
}
/*.wrapper_form_item{*/
/*    margin-top: 30px;*/
/*}*/
form[name="item_characteristic"] label{
    font-size: 13px;
    color: gray;
}
form[name="item_characteristic"] select[name="size"], form select[name="quantity"]{
    width: 11em;
    height: 2em;
    margin-top: 5px;
    
}
form[name="item_characteristic"] select[name="size"]:required:invalid{
    color: gray;
}
form[name="item_characteristic"] select[name="size"] option:first-child{
    
    display: none;
}
form[name="item_characteristic"] select[name="size"] option{
    color:black;
}

form[name="item_characteristic"] select:focus{
     outline-color: gray;
     outline-style:none;
   }
.wrapper_form_item button{
    margin:20px 0; 
}
.item_instruction{
    width: 230px;
    border-top:1px solid gray;
}
.header_instruction{
    padding: 15px 0;
}
.item_instruction:last-child{
    border-bottom: 1px solid gray;
}
.item_instruction label i{
    float: right;
    padding-top: 15px;
}
.item_instruction .instruction{
    color:gray;
    line-height: 1.5;
    font-size: smaller;
}
 input.viewbox{
        display: none;
}
input.viewbox + label{
         cursor: pointer;
}
    /* большой текст обычно скрыт */
input.viewbox + label + div{
        display: none;
        -webkit-transition: 2s;
        transition:2s;
}
    /* и отображается только если выбран первый чекбокс */
input.viewbox:checked + label + div{
        display: block;
        -webkit-transition: 2s;
        transition:2s;
}

@media only screen and (max-width:800px){
    .container{
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .item_description{
        width:100%;
        margin:auto;
        margin-top: 0;
    }
    .wrapper_form_item{
        width: 250px;
        margin: auto;
    }
    .container .item_description .item_name{
        display: block;
        color:#303030;
        font-weight: bold;
        width:250px;
    }
}
@media only screen and (max-width:500px){
    .container{
        -webkit-box-orient:vertical;
        -webkit-box-direction:normal;
            -ms-flex-direction:column;
                flex-direction:column;
    }
    .container > .item_name{
        display: block;
        text-align: center;
        padding-bottom: 15px;
        font-weight: bold;
        font-size: 18px
    }
    .item_description{
        border-top:1px solid gray;
        padding-top: 10px;
        padding-left: 0;
    }
    .item_description .item_name{
        display: none;
    }
    .wrapper_item form{
        padding-left: 5px
    }
    .item_instruction{
        width: 100%;
    }
}