@import url('https://fonts.googleapis.com/css?family=Berkshire+Swash');
/* First Page */
*{
    background-color: ivory;
}
body{
    background-color: ivory !important;
}
.wrapper{
    background-color: ivory;
}
.opener{
    background-color: ivory;
    text-align: center;
}
.hvr-wobble-skew{
    padding-top: 150px;
    margin: auto;
}
.hvr-wobble-skew h1 a{
    text-decoration: none;
    color: #ff6600;
    font-family: 'Berkshire Swash', cursive;
    font-size: 200px;
    text-align: center;
}
.hvr-wobble-skew h1 a:hover{
    color: red;
}
.hvr-wobble-skew:hover, .hvr-wobble-skew:focus, .hvr-wobble-skew:active {
    -webkit-animation-name: hvr-wobble-skew;
    animation-name: hvr-wobble-skew;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
  }

/* Template */
  .wrapper{
      width: 85%;
      margin: auto;
      background-color: ivory;
  }
  .wrapper header h1 a{
      font-family: 'Berkshire Swash', cursive;
      font-size: 50px;
      color: #ff6600;
      text-decoration: none;
      float: top;
}
.wrapper header h1 a:hover{
      color: red;
}

/* Nav bar */
nav ul {
    list-style-type: none;
    padding: 0;
    /* background-color: #ff6600; */
    margin: 0;
    /* opacity: 0.7; */
}

nav ul li{
    display: inline-block;
    position: relative;  
    padding: 0;          
}
nav ul li a {
    display: block;
    padding: 10px 40px 10px 40px;
    background-color: #ff6600;
    font-family: 'Berkshire Swash', cursive;
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition-property: opacity;
    transition-duration: 0.3s;
}
nav ul li ul{
    min-width: 100%;
    opacity: 0.7;
    display: none;
    position: absolute;
    z-index: 10;
    transition-property: opacity;
    transition-duration: 0.3s;
}
nav ul li:hover ul {
    display: block;
    opacity: 1;
}
nav ul li ul li {
    display: block;
}
nav ul li ul li a{
    padding: 8px;
    text-align: center;
}
nav ul li a:hover{
    
    text-decoration: none;
    color: #ffffff;
    opacity: 1;

}
nav ul ul{
    position:absolute;
    padding:0;
    opacity:.9;
    z-index:999;       
}
nav ul li a:before{
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    visibility: hidden;
    transform: scaleX(0);
}
nav ul li a:hover:before{
    transform: scaleX(1);
}
.text{
    margin: 0 10% 0 10%;
    text-align: center;
}
.text p{
    font-family: sans-serif;

}
/* Home page slider */
.banner{
    width: 100%;
    height: 538px;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#slider img{
    width: 100%;
    height: 538px;
    position: absolute;
    overflow: hidden;   
}
#next{
    text-align: center;
    line-height: 50px;
    color: #ffffff;
    width: 50px;
    height: 50px;
    background-color: #ff6600;
    position: absolute;
    top: 205px;
    right: 0;
    z-index: 99;
    cursor: pointer;
    opacity: .3;
}
#prev{
    text-align: center;
    line-height: 50px;
    color: #ffffff;
    width: 50px;
    height: 50px;
    background-color: #ff6600;
    position: absolute;
    top: 205px;
    left: 0;
    z-index: 99;
    cursor: pointer;
    opacity: .3;
}
.banner:hover #next{
    opacity: 1;
    transition: all .5s ease-out;
    -webkit-transition: all .5s ease-out;
    -ms-transition: all .5s ease-out;
}
.banner:hover #prev{
    opacity: 1;
    transition: all .5s ease-out;
    -webkit-transition: all .5s ease-out;
    -ms-transition: all .5s ease-out;
}
/* Contact Page */
#suggest{
    width: 85%;
    margin-right: auto;
    margin-left: auto;
}
#contact{
    text-align: center;
}
.contact{
    font-family: sans-serif;
}
h2{
    font-family: sans-serif;
}
#suggest p{
    font-family: sans-serif;
    text-align: center;
}
.submit{
    background: red;
    color: white;
    border-style: none;
    border-radius: 10px;
    height: 40px;
    width: 70px;
    font-family: sans-serif;
    opacity: 0.7;
}
.submit:hover{
    cursor: pointer;
    opacity: 1;
}
/* Registration form */
.form *{
    font-family: sans-serif;
    text-align: center;

}
.form input{
    display: block;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}
.form a{
    text-decoration: none;
}
.form a:hover{
    color: red;
}
/* Recipes page */
.text h2{
    font-family: sans-serif;
}
.recipes-container{
    display: grid;
    grid-template-columns: auto auto auto;
    background-color:#ff6600;
    padding: 10px;
}
.recipes-container p{
    display: inline-block;
}
#recipes-1{
    background-color: ivory;
    border: 0.5px solid ivory;
    font-size: 15px;
    text-align: center;
    font-family: sans-serif;
}
#recipes-2{
    background-color: ivory;
    border: 0.5px solid ivory;
    font-size: 15px;
    text-align: center;
    font-family: sans-serif;
}
#recipes-3{
    background-color: ivory;
    border: 0.5px solid ivory;
    font-size: 15px;
    text-align: center;
    font-family: sans-serif;
}
#recipes-4{
    background-color: ivory;
    border: 0.5px solid ivory;
    font-size: 15px;
    text-align: center;
    font-family: sans-serif;
}
#recipes-5{
    background-color: ivory;
    border: 0.5px solid ivory;
    font-size: 15px;
    text-align: center;
    font-family: sans-serif;
}
#recipes-6{
    background-color: ivory;
    border: 0.5px solid ivory;
    font-size: 15px;
    text-align: center;
    font-family: sans-serif;
}
#recipes-1 img{
    height: 200px;
    width: auto;
    opacity: .5;
    transition-property: opacity;
    transition-duration: 0.5s;
}
#recipes-2 img{
    height: 200px;
    width: auto;
    opacity: .5;
    transition-property: opacity;
    transition-duration: 0.5s;
}
#recipes-3 img{
    height: 200px;
    width: auto;
    opacity: .5;
    transition-property: opacity;
    transition-duration: 0.5s;
}
#recipes-4 img{
    height: 200px;
    width: auto;
    opacity: .5;
    transition-property: opacity;
    transition-duration: 0.5s;
}
#recipes-5 img{
    height: 200px;
    width: auto;
    opacity: .5;
    transition-property: opacity;
    transition-duration: 0.5s;
}
#recipes-6 img{
    height: 200px;
    width: auto;
    opacity: .5;
    transition-property: opacity;
    transition-duration: 0.5s;
}
#recipes-1 img:hover{
    opacity: 1;
    cursor: pointer;
}
#recipes-2 img:hover{
    opacity: 1;
    cursor: pointer;
}
#recipes-3 img:hover{
    opacity: 1;
    cursor: pointer;
}
#recipes-4 img:hover{
    opacity: 1;
    cursor: pointer;
}
#recipes-5 img:hover{
    opacity: 1;
    cursor: pointer;
}
#recipes-6 img:hover{
    opacity: 1;
    cursor: pointer;
}

/* Recipe template */
.recipe h3{
    text-align: center;
}
.recipe img{
    width: auto;
    height: 400px;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* profile page */
.profile{
    text-align: center;
}
.profile h2{
    text-align: center;
}
.card{
    box-shadow: 0 4px 8px 0px rgba(0,0,0,0.4);
    max-width: 300px;
    margin: auto;
    text-align: center;
    font-family: sans-serif;
    background-color: ivory;
}
.title{
    color: gray;
    font-size: 15px;
}
.profbutton{
    border: none;
    outline: 0;
    display: inline-block;
    padding: 8px;
    color: white;
    background-color: #ff6600;
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
}
.card a{
    text-decoration: none;
    font-size: 22px;
    color: #000;
}
.profbutton:hover, .card a:hover{
    opacity: 0.7;
}
/* search */
.search{
    text-align: center;
}

/* Gallery page */
.gallery{
    text-align: center;
}
.gallery-container{
    width: 80%;
    margin: auto;
    background-color: ivory;
    display: block;
}
.food-img{
    width: 300px;
    float: left;
    padding: 0 10px 15px 0;
    display: block;
    opacity: 0.7;
    transition-property: opacity;
    transition-duration: 0.5s;
    
}
.food-img:hover{
    opacity: 1;
}
.foodtext{
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}
#curtain{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    background-color: rgba(0,0,0,0.4);
}
#close{
    height: 20px;
    width: 20px;
    top: 0;
    right: 0;
    position: absolute;
    z-index: 990;
}
#close:hover{
    cursor: pointer;
}
#light{
    max-width: 80%;
    max-height: 80%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    margin: auto;
}
.clear{
    clear: both;
}
/* chat app */
.chatbox{
    width: 500px;
    min-width: 390px;
    height: 600px;
    background-size: cover;
    padding: 25px;
    margin: 20px auto;
    background-image: url();
    box-shadow: 0 0 3px #ccc;
}
.chatlogs{
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    height: 450px;
    background-image: url();
    overflow: hidden;
    overflow-y: scroll;
}
.chat{
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
}
.chat .chat-message{
    width: 70%;
    padding:15px;
    margin: 5px 15px 0;
    background: #ff6600;
    border-radius: 10px;
    color:#fff;
    font-size: 18px;
}
.chatlogs::-webkit-scrollbar{
    width: 10px;
}
.chatlogs::-webkit-scrollbar-thumb{
    border-radius: 5px;
    background: #fff;
}
.chat-form{
    width: 500px;
    margin-top:20px;
    display: flex;
    align-items: flex-start;
}
.chat-form .text{
    background: wheat;
    border-radius: 10px;
    width: 150%;
    height: 65px;
    border: 2px solid #eee;
    resize: none;
    padding:10px;
    font-size: 18px;
    color:#333;
}
.chat-form .text:focus{
    background: #fff;
}
.chat-form .text::-webkit-scrollbar{
    width:10px;
}
.chat-form .text::-webkit-scrollbar-thumb{
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.1);
}
.send{
    position: relative;
    bottom: 68px;
    border-radius: 10px;
    left: 335px;
    width: 70px;
    height: 65px;
    background-color: greenyellow;
}
output{
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border-top: 10px solid green;
    border:10px solid rgba(255, 255, 255, 1);
    animation: animate 1.5 infinite linear;
}
.btn-warning{
    float: right;
    position: absolute;
    right: 0;
    top:0;
}#message{
    width:500px;
}
.row{
    position: relative;
}
@keyframes animate{
    0%{ transform: translate(-50%,-50%)}
    100%{ transform: translate(-50%,-50%) rotate(360deg)}
}


@media only screen and (max-width: 1024px){
        .hvr-wobble-skew h1 a{
            font-size: 5em;
        }
        body{
            margin: 0;
        }
        nav, section, main{
            width: 100%;
            float: none;
        }
        #wrapper{
            width: auto;
            min-width: 0;
            margin: 0;
            padding: 0;
            box-shadow: none;
        }
        header h1{
            font-size: 300%;
            text-align: center;
        }
        nav{
            float: none;
            width: auto;
        }
        nav li{
            display: inline-block;
            padding: 0.5em;
            width: 100%;
        }
        nav ul{
            text-align: center;
        }
        nav a{
            border-style: none;
        }
        h1{
            font-size: 120%;
            text-align: center;
        }
        h2{
            font-size: 120%;
            text-align: center;
        }
        p{
            font-size: 90%;
        }
        .slider img{
            display: none;
        }
        #next{
            display: none;
        }
        #prev{
            display: none;
        }
        .food-img img{
            display: inline-block;
        }
        .banner{
            display: none;
        }
        .recipes-container{
            display: inline-block;
            margin: auto;
        }
        .recipe img{
            width: 50%;
            height: auto;
        }
        .gallery-container{
            display: inline-block;
            margin: auto;
            padding: 0 30px 0 30px;
        }
       
    }
