/* CSS for left side selector */
.center{
    width:100%;
    display: inline-flex;
    text-align: center;
    text-decoration: none !important;
}
#menu1,#menu2,#menu3,#menu4,#menu5{
    margin: auto;
    text-align: center !important;
    width:30%;
    font-weight: bold;
}


.center a{
    position: relative;
    color: black;
    text-decoration: none;
    margin-left:5%;
}

.center a:hover{
    color: gray;
}

.center a::before{
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 3px;
    bottom: -5.5px;
    left: 0;
    background-color: black;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.center a:hover::before{
    transform: scaleX(1);
}

.bottom-active{
    border-bottom: 4px solid currentColor;
    display: inline-block;
    line-height: 1.5;
}

.nav{
    animation: fade 1s ease-in;
  }
/*CSS FOR ITEMS*/
.items{
    display:flex;
    margin-top:5%;
    width: 80%;
    margin-left: 10%;
}

.card{
    width:18rem;
    margin-left:5%;
    border:gray solid 4px !important;
    animation: flyin2 1s,fade 2s ease-in;
}

.card-title{
    font-size: 1vw;
}
.card-img-top{
    width:100%;
    height:25vh;
    cursor: pointer;
}

.card-text{
    width:100%;
    font-size: 0.8vw;
}

.btn-txt{
    font-size: 0.8vw;
    width: 50%;
}

.btn{
    width:70%;
}


/*SCROLL UP BTN*/
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: yellow;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
  }
  
  #myBtn:hover {
    background-color: red;
  }


  /* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (Image) */
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
  }
  
  /* Caption of Modal Image (Image Text) - Same Width as the Image */
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  /* Add Animation - Zoom in the Modal */
  .modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }
/* CSS FOR PHONE */
@media screen and (max-width: 600px) {
    .center{
        width:100%;
    }
    .center {
        font-size: 1.5vh;
        border-spacing: 0px 20px !important;
    }
    .items{
        display:block;
        margin-left:25%;
        width: 70%;
    }
    .card-title{
        font-size: 16px;
    }
    .card{
        width:15rem;
        margin-bottom:2%;
    }
    .card-text{
        font-size: 12.5px;
    }
    
    .btn-txt{
        font-size: 14px;
        font-weight: bold;
        width: 70%;
    }
    .btn{
        width:70%;
    }
    .bottom-active{
        border-bottom:none;
    }
}

@keyframes fade{
    0%{opacity:0;}
    100%{opacity:1}
  }
  
@keyframes flyin1{
    0%{transform:translateX(-1000px)}
    100%{transform:translateX(0px)}
}
@keyframes flyin2{
    0%{transform:translateY(1000px)}
    100%{transform:translateY(0px)}
}