/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    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.4); /* Black w/ opacity */
    
    font-family: 'Source Sans Pro',sans-serif;
}

/* Modal Content/Box */
.modal-content {
    background-color: beige;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0,0,0,.2);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 40%;
    -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    text-align: center;
}
.modal-content h1 {
    padding: 0;
    color: #241a10;
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Source Sans Pro',sans-serif;
}
.modal-content h1 span {
    color: #8f6637;
}
.modal-content h2 {
    margin: 0;
    padding: 0;
    color: #241a10;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    font-family: 'Source Sans Pro',sans-serif;
    text-decoration: none;
}
.modal-content h2 span {
    color: #8f6637;
    font-weight: bold;
}
.modal-content h2 a {
    color: #8f6637;
    font-weight: bold;
    text-decoration: none;
}

.modal-content div.fullwidth {
    background: #8f6637;
    padding: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
}
.modal-content div.fullwidth a{
    color: white;
    text-decoration: none;
    font-family: 'Source Sans Pro',sans-serif;
    font-variant: small-caps; 
}

.modal a.button {
    color: white;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    font-family: 'Source Sans Pro',sans-serif;
    background: #8f6637;
    display: inline-block;
    height: 100%;
    width: 100%;
    cursor: grab;
    padding-top: 15px;
    padding-bottom: 15px;
}
.modal a.closemodalbutton {
    background: grey;
}

.modal-content div.fullwidth.confirmation {
    background: green;
}
.modal-content div.fullwidth.confirmation h2 {
    color: white;
}

.modal-content div.nospacing {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    width: 15px;
    height: 15px;
    text-decoration: none;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    text-decoration: none;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .modal-content {
        width: 60%;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px)  {
    .modal-content {
        width: 60%;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px)  {

    .modal-content {
        width: 75%;
        font-size:18px;
    }   

    .modal-content h1 {
        font-size: 30px;
    }

    .close {
        font-size: 35px;
    }

    .modal a.button {
        font-size: 20px;
    }
    
    input#modalProductQuantity {
        font-size: 18px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px)  {
    .modal-content {
        width: 50%;
    }
}

.closemodalbutton2 {
    border: 1px solid #8f6637;
    padding: 5px;
    background: none;
    text-decoration: none;
}