
.container {
  display: flex;
}

.box {
  position: relative;
  width: auto;
  height: 50px;
  padding:1%;
  display: flex;
  justify-content: center;
  text-align:center;
  align-items: center;
  margin: 15px;
  color: rgba(140,198,62,1);
  
}

.item {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 80%;
  z-index: 99;
  font-family: 'Fjalla One', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s all ease;
}

.one:before, .one:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 2px;
  background:rgba(140,198,62,1);
  transition: 0.4s all ease;
}
.one:before {
  top: 0;
}
.one:after {
  bottom: 0;
}
.one .item:before, .one .item:after {
  position: absolute;
  top: 0;
  content: '';
  height: 100%;
  width: 2px;
  background: rgba(140,198,62,1);
  transition: 0.4s all ease;
  z-index: -1;
}
.one .item:before {
  left: 0;
}
.one .item:after {
  right: 0;
}
.one:hover:before, .one:hover:after {
  transition: 0.4s all ease;
}
.one:hover:before {
  transform: translateY(-10px);
}
.one:hover:after {
  transform: translateY(10px);
}
.one:hover .item {
  color: white;
}
.one:hover .item:before, .one:hover .item:after {
  width: 100%;
  transition: 0.4s all ease;
}

.two {
  box-sizing: border-box;
  border: 2px solid rgba(140,198,62,1);
  position: relative;
}
.two:before {
  position: absolute;
  content: '';
  width: 0;
  height: 50px;
  transition: 0.4s all ease;
  background: ;
  left: 0;
  z-index: -1;
}rgba(140,198,62,1)
.two:hover {
  color: white;
}
.two:hover:before {
  width: 100%;
  transition: 0.4s all ease;
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
	.container {
  display: block;
}
}
@media only screen and (min-width: 768px) {
	.container {
  display: block;
}
.box {
  position: relative;
  width: 600px;
  height: 50px;
  padding:1%;
  display: flex;
  justify-content: center;
  text-align:center;
  align-items: center;
  margin: 15px;
  color: rgba(140,198,62,1);
  
}
}
@media only screen and (min-width: 1200px) {
	.container {
  display: flex;
}

	.box {
  position: relative;
  width: auto;
  height: 50px;
  padding:1%;
  display: flex;
  justify-content: center;
  text-align:center;
  align-items: center;
  margin: 15px;
  color: rgba(140,198,62,1);
  
}

.item {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 80%;
  z-index: 99;
  font-family: 'Fjalla One', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s all ease;
}
}
@media only screen and (min-width: 1440px) {
	.container {
  display: flex;
}

	.box {
  position: relative;
  width: auto;
  height: 50px;
  padding:1%;
  display: flex;
  justify-content: center;
  text-align:center;
  align-items: center;
  margin: 15px;
  color: rgba(140,198,62,1);
  
}

.item {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 80%;
  z-index: 99;
  font-family: 'Fjalla One', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s all ease;
}
}