html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
    height: 100%;
    font-size: 1.625rem;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    background-color: #ffffff;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

}

.header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 2.5rem;
    background: url('../images/header-bg.jpg') no-repeat center 0;
}
.logo-search {
    display: flex;
    gap: 2.75rem;
    width: 188px;
}
.logo a {
    display: block;
    width: 188px;
    height: 50px;
    background: url('../images/logo.svg') no-repeat;
    text-indent: -9999px;
    overflow: hidden;
}

/* SEARCHBOX */
.gsc-control-cse {
    /*justify-content: center;*/
    background-color: #fff !important;
    border: 0 !important;
    padding: 6px 8px 6px 8px !important;
    margin: 0 !important;
    width: 40rem !important;
    border-radius: 0.625rem;
    overflow: hidden;
}
form.gsc-search-box, table.gsc-search-box {
    margin-bottom: 0 !important;
}
#gs_tti50 {
    padding: 6px 6px !important;
}
#gsc-i-id1 {
    color: #666 !important;
    text-indent: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
}
.gsc-search-button-v2 {
    padding: 12px !important;
    margin-left: 0 !important;
    outline: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer;
}
.searchbox {
    display: flex;
    width: 40rem;
    max-height: 55px;
}
/* SEARCHBOX */

.buttons {
    display: flex;
    gap: 1rem;
    width: 188px;
    max-height: 55px
}
.buttons a {
    min-width: 240px;
    border-radius: 0.625rem;
    border: 0.25rem solid;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    line-height: 3rem;
    font-weight: bold;
    text-decoration: none;
}
.buttons a:hover {
    opacity: 0.8;
}
.add-model {
    background: #8ecdf6;
    border-color: #6ac0f3;
}

.content {
    flex: 1 1 auto;
    display: flex;
    padding: 2rem 2.5rem 2.5rem;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
}
.advert-1 {
    margin: 0 0 2rem;
    width: 100%;
}
.advert-2 {
    margin: 2.5rem 0;
    width: 100%;
}
.models {
    width: 100%;
}
.models-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0 0;
}
.models-grid a {
    width: calc(16.667% - .835rem);
}
.models-grid img {
    border: 1px solid #ccc;
    border-radius: 1px;
    width: 100%;
    display: block;
}
/* ZOOM */
.preview-container {
    position: relative;
    display: inline-list-item;
    cursor: pointer;
}
.icon {
    cursor: pointer;
    position: absolute;
    content: url("../images/zoom.svg");
    background-size: cover;
    background-color: #ffffff00;
    transition: opacity 0.3s;
    top: 2%;
    right: 1.5%;
    display: none;
    color: #ccc;
    border-radius: 5px;
    padding: 8px;
}

.model-name-tooltip {
    cursor: pointer;
    position: absolute;
    background-size: cover;
    background-color: #000;
    opacity: 0.6;
    transition: opacity 0.3s;
    bottom: 0;
    left: 0;
    display: none;
    /*border-radius: 5px;*/
    padding: 6%;
    font-size: 1rem;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    width: 88.5%;
    height: auto;
}
.preview-container:hover .icon {
    display: block;
}
.preview-container:hover .model-name-tooltip {
    display: block;
}
.preview-popup {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 99;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 512px;
    height: 512px;
}
.small-image:hover {
    opacity: 0.7;
}
.large-image {
    width: 512px;
    height: 512px;
}
/* ZOOM */

/* POPUP */
#openPopup {
    cursor: pointer;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: start;
}
.overlay .popup {
    background-color: #fff;
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 50%;
    position: relative;
    top: 5rem;
}
.overlay .popup .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
}
.popup p {
    padding: 0 2rem 1rem;
    color: #666;
    font-size: 1rem;
    line-height: 1rem;
}
.popup strong {
    font-weight: bold;
}
/* POPUP */

/* PAGINATOR */
.next-back {
    display: flex;
}
.navigation {
    margin-top: 2rem;
}
.navigation a {
    color: grey;
    text-decoration: none;
}
.navigation a:hover {
    color: #345c97;
}
.selection {
    color: grey;
    font-weight: bold;
    font-size: 2.5rem;
}
.next-back {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: bold;
}
.paginator {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    line-height: 1.5rem;
    margin: 2.25rem 0;
}
/* PAGINATOR */

/* SIDEBAR MENU */
.sidebar-menu {
    line-height: 2rem;
    width: 20rem;
    flex: none;
    padding-top: 0.5rem;
}
.sidebar-menu h2 {
    font-weight: bold;
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
}
.sidebar-menu ul {
    margin-bottom: 2rem;
}
.sidebar-menu li {
    margin-top: 0.12rem;
}
.sidebar-menu ul a {
    color: #666;
}
.sidebar-menu ul .selected a {
    color: #345c97;
    text-decoration: none;
}
.sidebar-menu ul a:hover {
    text-decoration: none;
    color: #345c97;
}
/* SIDEBAR MENU */

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 2.5rem;
    background: #4870c2;
    font-size: 1.6rem;
    color: #fff;
}
.copyright {
    font-weight: bold;
    text-decoration: underline;
    padding-top: 0.325rem;
}
.footer__menu {
    padding-bottom: 1.25rem;
    width: 20rem;
    text-align: left;
}
.footer__menu li + li {
    margin-top: 0.25rem;
}
.footer__menu a {
    color: #fff;
}
.footer__menu a:hover {
    text-decoration: none;
}
/* FOOTER */

/* MODEL PAGE */
.model-wrapper {
    width: 100%;
}
.model {
    width: 100%;
    display: flex;
    column-gap: 3rem;
}
.model-img img {
    width: 512px;
    height: 512px;
    border: 1px solid #ccc;
    border-radius: 1px;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.model-desc {
    color: #666;
    font-size: 1.875rem;
    line-height: 2.2rem;
}
.model-desc h1 {
    color: #666;
    font-size: 1.875rem;
    font-weight: bold;
}
.hsh {
    color: #c0c0c0;
}
.model-desc p + p {
    margin-top: 3.5rem;
}
.model-desc strong {
    font-weight: bold;
}
.model-desc a {
    text-decoration: underline;
    color: #5c79a8;
}
.model-desc a:hover {
    text-decoration: none;
}
.popup a {
    text-decoration: underline;
    color: #5c79a8;
}
.popup a:hover {
    text-decoration: none;
}
.model-desc .download-btn {
    display: inline-block;
    background: #66cc66;
    font-weight: bold;
    color: #fff;
    border: 0.25rem solid #6ac0f3;
    border-radius: 0.625rem;
    padding: 0.875rem 1rem 1.125rem;
    text-decoration: none;
}
.model-desc .pinterest-btn {
    display: inline-block;
    background: #d42d30;
    font-weight: bold;
    color: #fff;
    border: 0.25rem solid #6ac0f3;
    border-radius: 0.625rem;
    padding: 0.875rem 1rem 1.125rem;
    text-decoration: none;
}
.model-desc .download-btn:hover {
    opacity: 0.8;
}
/* MODEL PAGE */

@media (min-width: 2560px) {
    .header {
        background-size: cover;
    }

    .models-grid {
        gap: 2.5rem;
    }
    .models-grid a {
        width: calc(16.667% - 2.0834rem);
    }

    .sidebar-menu {
        width: 32rem;
    }
}