@charset "utf-8";

/* css reset */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    background-color: none;
}

 
ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  vertical-align: top;
  border: none;
}

.slide {
  position: relative;
  padding-top: 0px;
  overflow: hidden;
}

.panel {
  width: 500%;
}

.panel:after {
  content: "";
  display: block;
  clear: both;
}

.panel>li {
  width: 20%;
  height: 500px;
  float: left;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
    height: auto;
}

.panel>li:nth-of-type(1) {
  background-color: red;
}

.panel>li:nth-of-type(2) {
  background-color: blue;
}

.panel>li:nth-of-type(3) {
  background-color: green;
}
.panel>li:nth-of-type(4) {
  background-color: gold;
    background-image: url(../img/1-4.jpg);
    background-repeat: no-repeat;
    background-position: center;
}
 

.dot:after {
  content: "";
  display: block;
  clear: both;
}

.dot {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
}

.dot>li {
  float: left;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: lightgray;
  margin-left: 10px;
  margin-right: 10px;
  text-indent: -9999px;
  cursor: pointer;
}

.dot>li.on {
  background-color: #342f2f;
}

.prev {
  position: absolute;
  width: 140px;
  height: 140px;
  background-color: rgba(0,0,0,0.4);
  top: 50%;
  transform: translateY(-50%);
  left: 2%;
  cursor: pointer;
    border-radius: 111px;
}

.next {
  position: absolute;
  width: 140px;
  height: 140px;
  background-color: rgba(0,0,0,0.4);
  top: 50%;
  transform: translateY(-50%);
  right: 2%;
  cursor: pointer;
        border-radius: 111px;
}





@media all and (max-width:500px) {

    .slide .next,.prev {
        display: none;
    }
    
}