@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=New+Tegomin&display=swap');

/* Clear any browser-specific formatting */
* {
	margin: 0;
	border: none;
	padding: 0;
}

body,
html {
    height: 100%;
    margin: 0;
}

/* CSS rules for Navigation */

#navigation {
    background-color: #542c23;
    color: #fefefe;
}

#navigation h1 a:hover {
    text-decoration: none;
}

.navbar-brand {
    color: #fefefe;
    font-family: 'New Tegomin', serif;
    text-transform: uppercase;
}

.navbar a:hover {
    text-decoration: none;
    color: #fefefe;
}

.nav-link {
    color: #fefefe; 
    font-family: 'Montserrat', sans-serif;
}

.active-link {
    text-decoration: underline;
}

.fa-bars {
    color: #fefefe; 
  }

/* Underline From Left: from Hover.css: https://ianlunn.github.io/Hover/. Used on nav links */
.hvr-underline-from-left {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
  }
  .hvr-underline-from-left:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 0;
    background: #5A94B8;
    height: 4px;
    -webkit-transition-property: right;
    transition-property: right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
  }
  .hvr-underline-from-left:hover:before, .hvr-underline-from-left:focus:before, .hvr-underline-from-left:active:before {
    right: 0;
  }
/* End of Underline From Left: from Hover.css */

  /* Curl Bottom Right: from Hover.css: https://ianlunn.github.io/Hover/. Used on buttons. */
.hvr-curl-bottom-right {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
  }
  .hvr-curl-bottom-right:before {
    pointer-events: none;
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    bottom: 0;
    right: 0;
    background: white;
    /* IE9 */
    background: linear-gradient(315deg, white 45%, #aaa 50%, #ccc 56%, white 80%);
    box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.4);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: width, height;
    transition-property: width, height;
  }
  .hvr-curl-bottom-right:hover:before, .hvr-curl-bottom-right:focus:before, .hvr-curl-bottom-right:active:before {
    width: 25px;
    height: 25px;
  }  
/* End of Curl Bottom Right: from Hover.css */

/* Main */
.body-main {
    padding-top: 56px;
    background-color: #fefefe;
    font-family: 'Montserrat', sans-serif;
    min-height: 48em;
}

.page-header {
    font-family: 'New Tegomin', serif;
    text-transform: uppercase;
    padding-top: 40px;
    padding-bottom: 40px;
}

img {
    border-color: #542c23;
    border-width: 1px;
    border-style: solid;
}

.margin-bottom {
    margin-bottom: 20px;
}

/* CSS rules for index.html */
/* The CSS rules for creating a full-width background image came from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_half_page */
.background {
    background-image: url("/roleplay-cafe/assets/images/home/bar.jpg");
    height: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* End of code from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_half_page */

#homepage-main {
    padding-top: 40px;
}

#homepage-header {
    padding-top: 0;
}

.margin-bottom-0 {
    margin-bottom: 0;
}

.margin-top {
    margin-top: 20px;
}

/* CSS rules for visit.html */

#nav-tab {
    padding-top: 20px;
} 

.nav-link {
    padding: 0.5rem 0.5rem;
}

.nav-tabs a.nav-link {
    color: black;
}

#nav-players, #nav-gamemasters, #nav-newbies { 
    text-decoration: none;
}

.tab-header {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    padding-top: 20px;
    margin-bottom: 20px;
}

.tab-pane {
    padding-bottom: 20px;
}

.tab-pane ul {
    padding-left: 15px;
    padding-right: 15px;
} 

.alert-primary {
    color: #fefefe;
    background-color: #5A94B8;
    border-color: #5A94B8;
    margin-bottom: 20px;
    margin-top: 20px;
}

#why-dnd, #highlight {
    width:100%;
    height:15em;
}

#minis-2-in-col {
    height: 340px;
    width: 570px;
    object-fit: cover;
}

#gm-form {
    border-color: #542c23;
    border-width: 1px;
    border-style: solid;
}

/* CSS rules for menu.html */

.food-list, .food-pics, .drink-list, .drink-pics {
    padding-bottom: 40px;
}

.food-list h2, .drink-list h2 {
    text-transform: uppercase;
    padding-bottom: 20px;
}

.food-list h2 span, .drink-list h2 span {
    text-decoration: underline;
}

.food-list ul, .drink-list ul {
    list-style: none;
}

/* directions.html  */

.google-map-div, .directions-div {
    padding-bottom: 40px;
}

#google-map {
    border-color: #542c23;
    border-width: 1px;
    border-style: solid;
    width: 100%;
    height: 20em;
}

#public-transport-2 {
    padding-top: 20px;
}

#gvb-link {
    color: #003eff;
}

/* about.html */

.top-row-padding {
    padding-top: 40px;
}

.about-cafe, .about-cafe-image, .about-richard, .about-richard-image, .about-liz, .about-liz-image {
    padding-bottom: 40px;
}

.about-cafe h2, .about-richard h2, .about-liz h2 {
    font-family: 'New Tegomin', serif;
    padding-bottom: 20px;
}

/* Buttons */

.btn-success, .btn-primary {
    color: #fefefe;
    background-color: #5A94B8;
    border-color: #5A94B8;
}

.btn-success {
    padding: .5rem 2rem;
}

.btn-success:hover, .btn-success:active, .btn-primary:active, .btn-success:focus {
    color: #fefefe;
    background-color: #5A94B8;
    border-color: #5A94B8;
}

.btn-primary:hover {
    color: #5A94B8;
    background-color: #fefefe;

}

.btn-success:not(:disabled):not(.disabled).active, .btn-success:not(:disabled):not(.disabled):active, .show>.btn-success.dropdown-toggle {
    color: #fefefe;
    background-color: #5A94B8;
    border-color: #5A94B8;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fefefe;
    background-color: #5A94B8;
    border-color: #5A94B8;
}

/* Footer */

#footer {
    background-color: #542c23;
    color: #fefefe;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
    font-size: 0.8em;
}

.footer-title {
    font-family: 'New Tegomin', serif;
    text-transform: uppercase;
    padding-top: 20px;
    padding-bottom: 10px;
    font-size: 1.4em;
}

#footer p {
    margin: 0;
}

#footer a {
    color:#fefefe;
}

#opening-hours td {
    padding-right: 10px;
}

#social a {
    padding-right: 30px;
}

#social a:hover {
    text-decoration: none;
}


#social a i {
    width: 40px;
    height: 40px;
    background-color: #6B382D ;
    text-align: center;
    padding: 12px 0;
    font-size: large;
    border-style: solid;
    border-width: 1px;
    border-color: #fefefe;
    color: #fefefe; 
}

#social a i:hover {
    color: #fefefe;
    background-color: #5A94B8;
}

#newsletter input {
    display: block;
}

#newsletter .btn-primary {
    font-size: 1em;
}

#newsletter ::placeholder {
    font-size: 0.8em;
}

/* Media queries */
@media(max-width: 576px) {
    #minis, #minis-2, #people {
        height: 250px;
        width: 330px;
        object-fit: cover;
    }    
}

@media(max-width: 768px) {
    #minis {
        height: 360px;
        width: 100%;
        object-fit: cover;
    }
    /* Add some margin-bottom to push the two social media icons below them further down */
    .fa-facebook-f, .fa-twitter {
        margin-bottom: 30px;
    }
}

@media(min-width: 768px) {
    .margin-bottom {
        margin-bottom: 40px;
    }
    #minis-2, #dice {
        height: 360px;
        width: 640px;
        object-fit: cover;
        margin-top: 25px;
    }
    #agenda {
        margin-bottom: 40px;
    }
    #gm-form-header {
        margin-bottom: 20px;
    }
    #btn-agenda {
        margin-top: 24px;
    }
}

@media(max-width: 1200px) {
    /* At this breakpoint there are 3 icons in a row and 1 below them. Extra margin-bottom pushes that icon further down */
    .fa-facebook-f {
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    #minis {
        height: 360px;
        width: 80%;
        object-fit: cover;
    }
}

@media(min-width: 1200px) {
    .margin-xl-top {
        margin-top: 20px;
    }
    .about-cafe-image, .about-richard-image, .about-liz-image {
        padding-top: 60px;
    }
    #minis {
        height: 400px;
        width: 80%;
        object-fit: cover;
    }
    #people {
        height: 390px;
        width: 640px;
        object-fit: cover;
    }
    .xl-width {
        width: 330px;
    }
    #minis-2, #dice {
        height: 360px;
        width: 100%;
        object-fit: cover;
        margin-top: 25px;
    }
}