/*######################################################################
# BUTTON.CSS 
# ----------------------------------------------------------------------
# WEBASMEDIA | Andreas Schoene
# 
# KONFIGURATION
# -----------------------------------
# * Buttons
# 
# AENDERUNGEN
# -----------------------------------
# * 26.05.2021 - Erstellung
# 
#
#######################################################################*/

/***********************************************************************
 ***                         Button 1                                ***
 ***********************************************************************/
 
/** <p><a href="baumschule/arboretum/" title="Baumschule" class="buttonone">mehr erfahren</a></p> **/

.bg a.buttonone, .bg span.buttonone a {
    bottom: 60px;
}

a.buttonone, span.buttonone a {
    padding: 5px 30px;
    padding-right: 80px;
    background: #79B31B;
    text-transform: uppercase;
    font-size: 0.64em;
    margin-top: 2em;
    display: inline-block;
    position: relative;
    z-index: 50;
    color: #fff !important;
    position: absolute;
    /*bottom: 0px;*/
    white-space: nowrap;
    line-height: 2.5em;
    cursor: pointer;
}

a.buttonone:hover:after, span.buttonone a:hover:after {
    width: 100%;
    -webkit-transition: width 500ms ease;
    -moz-transition: width 500ms ease;
    -ms-transition: width 500ms ease;
    -o-transition: width 500ms ease;
    transition: width 500ms ease;
}

a.buttonone:after, span.buttonone a:after {
    content: '';
    width: 60px;
    height: 100% !important;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url('../images/button/button.svg');
    z-index: -1;
    background-size: cover;
    -webkit-transition: width 500ms ease;
    -moz-transition: width 500ms ease;
    -ms-transition: width 500ms ease;
    -o-transition: width 500ms ease;
    transition: width 500ms ease;
}

/***********************************************************************
 ***                         Button 2                                ***
 ***********************************************************************/
 
/** <p><a href="baumschule/arboretum/" title="Baumschule" class="buttontwo">mehr erfahren</a></p> **/

.bg a.buttontwo, .bg span.buttontwo a {
    bottom: 60px;
}

a.buttontwo, span.buttontwo a {
    padding: 5px 30px;
    padding-right: 80px;
    background: #EAE7D6;
    text-transform: uppercase;
    font-size: 0.64em;
    margin-top: 2em;
    display: inline-block;
    position: relative;
    z-index: 50;
    color: #848459 !important;
    position: absolute;
    /*bottom: 0px;*/
    white-space: nowrap;
    line-height: 2.5em;
    cursor: pointer;
}

a.buttontwo:hover:after, span.buttontwo a:hover:after {
    width: 100%;
    -webkit-transition: width 500ms ease;
    -moz-transition: width 500ms ease;
    -ms-transition: width 500ms ease;
    -o-transition: width 500ms ease;
    transition: width 500ms ease;
}

a.buttontwo:after, span.buttontwo a:after {
    content: '';
    width: 60px;
    height: 100% !important;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url('../images/button/button.svg');
    z-index: -1;
    background-size: cover;
    -webkit-transition: width 500ms ease;
    -moz-transition: width 500ms ease;
    -ms-transition: width 500ms ease;
    -o-transition: width 500ms ease;
    transition: width 500ms ease;
}


/*box one    <div class="box one"><text>button</text></div>   */


.box{
        position:absolute;
        width: 180px;
        height:50px;
        text-align: center;
        background:#27f;
        z-index: 1;
        overflow: hidden;
        cursor:pointer;
    }
    .one{
        top:150px;
        left:100px; 
    }
    .one:before{
        content:"";
        width: 100%;
        height: 5px;
        background: #fff;
        display: block;
        transition:all 0.5s ease;
        position: absolute;
        top: 45px;
        left: -180px;
        z-index: 2;
    }
    text{
        position: relative;
        margin: 11px;
        font-size: 150%;
        text-transform:uppercase;
        letter-spacing:1.5;
        color:#fff;
        z-index: 3
    }
    .one:hover:before{left:0}

/* button effect                <div class="container"><button>learn more</button></div>*/
.container{
  margin: 0;
  padding: 10px;
  text-align: center;
}

button{
  margin: 10px;
  padding: 0;
  width: 150px;
  height: 40px;
  font-size: 110%;
  text-transform: capitalize;
  background-color: #27f;
  border: 0;
  border-radius: 5px;
  color: #fff;
  position: relative;
  cursor: pointer
}

button:before{
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -38px;
  height: 100%;
  width: 25px;
  background-color: rgba(255,255,255,0.8);
  transform: skew(-35deg);
  transition: all 0.6s linear;
}

button:hover:before{
  left:120%
}