/* ===================================== 
   Public API Request
======================================== */

@import url("https://fonts.googleapis.com/css?family=Nunito");
@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    background: url(https://treehouseproject.s3.amazonaws.com/Project+5+images/background2.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: "Nunito", sans-serif;
    text-align: center;

}

header {
    padding: 25px 5px 20px 5px;
    background-color: #22D1EE;
    margin-bottom: 40px;
}

.header-inner-container {
    max-width: 1180px;
    margin: auto;
}

header h1 {
    display: inline-block;
    font-family: 'Press Start 2P';
    letter-spacing: 1px;
    font-size: .9em;
    color: #0E153A;
    margin-top: 35px;
}

.coffee {
    height: 100px;
    width: 150px;
}

.noEmployees,
.badServer {
    font-family: 'Press Start 2P';
    font-size: 1em;
    line-height: 30px;
}

.noEmployees p:nth-child(1) {
    font-size: 1.5em;
}

.noEmployees p:nth-child(2),
.noEmployees ul {
    text-align: left;
}

.search-input {
    font-family: 'Press Start 2P';
    font-size: .8em;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(200, 200, 200, 0.9);
    border-radius: 0.25rem 0 0 0.25rem;
    max-width: 20rem;
    transition: 0.4s ease-out;
    outline: none;
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
}

.search-input:active,
.search-input:hover,
.search-input:focus {
    border: 1px solid rgba(50, 50, 50, 0.9);
}

.search-submit {
    cursor: pointer;
    height: 33px;
    background: rgba(245, 245, 245, 0.9);
    border-radius: 0 0.25rem 0.25rem 0;
    border: 1px solid rgba(200, 200, 200, 0.9);
    transition: 0.4s ease-out;
    outline: none;
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
}

.search-submit:active,
.search-submit:hover,
.search-submit:focus {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(50, 50, 50, 0.9);
}

/* ===================================== 
   Gallery
======================================== */

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    cursor: pointer;
    width: 100%;
    max-width: 360px;
    margin: 10px 10px 20px;
    padding: 20px;
    background: #E2F3F5;
    border-radius: 0.25em;
    border: 1px solid rgba(50, 50, 50, 0.3);
    transition: 0.4s ease-out;
    overflow: hidden;
    box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
}

.card-img {
    width: 95px;
    margin: 10px 15px auto 10px;
    border-radius: 50%;
}

.card-info-container {
    text-align: left;
}

.card-name {
    margin: 20px auto 0;
}

.card-text {
    font-size: 0.9em;
    color: rgba(50, 50, 50, 0.7);
    margin: 7px auto;
    transition: 0.4s ease-out;
}

.cap {
    text-transform: capitalize;
}

.gallery:hover .card:not(:hover) {
    filter: opacity(50%);
}

/* ===================================== 
   Modal
======================================== */

.modal-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);

}

.modal {
    position: relative;
    width: 95%;
    max-width: 420px;
    min-height: 415px;
    margin: 10px auto auto;
    padding-bottom: 15px;
    background: #E2F3F5;
    border-radius: 0.25em;
    border: 1px solid rgba(100, 100, 100, 0.3);
    transition: 0.4s ease-out;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    background: #0E153A;
    outline: none;
    border-radius: 0.25em;
    border: 1px solid rgba(50, 50, 50, 0.3);
}

.modal-img {
    width: 150px;
    margin-top: 35px;
    border-radius: 50%;
}

.modal-name {
    margin-bottom: 5px;
}

.modal-text {
    color: rgba(50, 50, 50, 0.7);
    margin: 10px;
}

.modal hr {
    width: 75%;
    margin: 25px auto 30px;
    border-color: rgba(200, 200, 200, 0.2);
}

.modal-btn-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    width: 95%;
    max-width: 420px;
    padding: 10px 15px 15px;
    margin: 10px auto auto;
    background: #E2F3F5;
    border-radius: 0.25em;
    border: 1px solid rgba(100, 100, 100, 0.3);
}

.modal-btn-container .btn {
    display: inline-block;
    cursor: pointer;
    font-size: 0.85em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75em 1.5em;
    background: #0E153A;
    border-radius: 0.35em;
    transition: 0.4s ease-out;
    outline: none;
}



/* ===================================== 
   Media Queries
======================================== */

/* ===================================== 
   Tablet
======================================== */

@media (min-width: 768px) {
    .header-inner-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding-right: 25px;
        padding-left: 25px;
    }

    .header-text-container {
        text-align: left;
    }

    .search-container {
        margin-top: 25px;

    }


    .modal {
        margin-top: 100px;
    }
}

/* ===================================== 
   Desktop
   Hover styles on desktop 
======================================== */

@media (min-width: 1024px) {
    .card:hover {
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(50, 50, 50, 0.9);
        transform: translatey(0px);
        animation: float 6s ease-in-out infinite
    }

    .card:hover .card-text {
        color: rgba(25, 25, 25, 1);
    }

    .btn:hover {
        background: rgba(255, 255, 255, 1);
        color: rgba(25, 25, 25, 1);
    }
}

/* Key Frames */

@keyframes float {
    0% {
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
        transform: translatey(0px);
    }

    50% {
        box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2);
        transform: translatey(-20px);
    }

    100% {
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
        transform: translatey(0px);
    }
}

.fade-in {
    animation: fadeIn ease 2s;
    -webkit-animation: fadeIn ease 2s;
    -moz-animation: fadeIn ease 2s;
    -o-animation: fadeIn ease 2s;
    -ms-animation: fadeIn ease 2s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-ms-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut ease 2s;
    -webkit-animation: fadeOut ease 2s;
    -moz-animation: fadeOut ease 2s;
    -o-animation: fadeOut ease 2s;
    -ms-animation: fadeOut ease 2s;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-moz-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-o-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-ms-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* next slide in animation keyframes */

.nextSlideIn {
    -webkit-animation: nextSlideIn 2s forwards;
    -moz-animation: nextSlideIn 2s forwards;
    animation: nextSlideIn 2s forwards;
}

@-webkit-keyframes nextSlideIn {
    0% {
        transform: translateX(-900px);
    }

    100% {
        transform: translateX(0);
    }
}

@-moz-keyframes nextSlideIn {
    0% {
        transform: translateX(-900px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes nextSlideIn {
    0% {
        transform: translateX(-900px);
    }

    100% {
        transform: translateX(0);
    }
}


/* next slide out animation keyframes */

.nextSlideOut {
    -webkit-animation: nextSlideOut 2s forwards;
    -moz-animation: nextSlideOut 2s forwards;
    animation: nextSlideOut 2s forwards;
}

@-webkit-keyframes nextSlideOut {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(900px);
    }
}

@-moz-keyframes nextSlideOut {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(900px);
    }
}

@keyframes nextSlideOut {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(900px);
    }
}




/* slide in from left animation keyframes */
.prevSlideOut {
    -webkit-animation: prevSlideOut 2s forwards;
    -moz-animation: prevSlideOut 2s forwards;
    animation: prevSlideOut 2s forwards;
}

@-webkit-keyframes prevSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-900px);
    }
}

@-moz-keyframes prevSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-900px);
    }
}

@keyframes prevSlideOut {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-900px);
    }
}