@import url("reset.min.css");
@import url("animate.css");

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat.ttf') format('truetype');
}

body {
    font-family: Montserrat;
}

.container {
    margin: 0 auto;
    max-width: 80rem;
}

.bgi {
    background-image: url('../image/bg.gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

h2 {
    text-align: center;

    font-size: 2rem;
    margin: 2rem auto;
    margin-top: 0rem;
    padding-top: 1rem;
    color: #ffffff;
    text-shadow: 2px 0px 5px #000000;
}

.thumbnail {
    height: 180px;
    border: 1px solid black;
    position: relative;
    background-size: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 1rem;
    margin: 2rem;
    margin-bottom: 0rem;
    padding-bottom: 1rem;
}

.thumbnail img {
    height: 100%;
    width: inherit;
    -o-object-fit: cover;
    object-fit: cover;
}

.hide {
    display: none;
}

.thumbnail p {
    font-size: 1.25rem;
    color: #D1D1d1;
    font-family: Helvetica, Arial, sans-serif;
}


.thumbnail:after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    bottom: 100%;
    right: 100%;
    left: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.75);
    color: snow;
    padding: 0.5rem;
    opacity: 0;
    -webkit-transition: 1.5s;
    transition: 1.5s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    text-shadow: 2px 0px 20px #000000;
}

.thumbnail:hover:after {
    opacity: 1;
    top: 0;
    bottom: -0.5%;
    left: 0;
    right: 0;
}

.description {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 1;
}

.banner {
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.banner h1 {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 2px 3px 2px #000000;
}

footer {
    position: absolute;
    right: 0;
    left: 0;
    padding: 1rem;
    color: #efefef;
    text-align: center;
    background: rgb(43, 61, 103);
    background: -webkit-gradient(linear, left top, right top, from(rgba(43, 61, 103, 1)), to(rgba(11, 24, 78, 1)));
    background: linear-gradient(90deg, rgba(43, 61, 103, 1) 0%, rgba(11, 24, 78, 1) 100%);
}

.model {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.7);
}

.modelTitle {
    color: white;
    text-align: center;
    margin: 1rem;
    font-size: 2rem;
}

.modelImage {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 500px;
}

.modelDescription {
    margin: 1rem auto;
    display: block;
    text-align: center;
    color: #ccc;
    font-size: 1.25rem;
    line-height: 1.5;
    text-align: justify;
    width: 70%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

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

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    -webkit-transition: 0.6s ease;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.model a {
    text-align: center;
    display: block;
    padding: 0.5rem;
    margin: 0 auto;
    margin-top: 1rem;
    border-radius: 5px;
    color: #efefef;
    background-color: #14a24a;
    text-decoration: none;
    max-width: 10rem;
    -webkit-box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.2);
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.2);
}