* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #d9dde3;
  font-family: Arial, Helvetica, sans-serif;
  padding: 40px;
}

/* Tablet */
.tablet {
  max-width: 1400px;
  margin: auto;
  background: #111;
  border-radius: 40px;
  padding: 18px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .35);
}

/* Screen */
.screen {
  background: #f3f4f7;
  border-radius: 28px;
  overflow: hidden;
  min-height: 900px;
}

/* Header */
header {
  height: 70px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #2563eb;
}

.logo h1 {
    font-size: clamp(20px, 3vw, 36px);
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}


div#header_content {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.top-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 10px;
}

.glyphicon.glyphicon-home {
    margin-left: 10px;
}

.top-menu .glyphicon .menu-text {
    padding-left: 4px;
}


.header-right{
    display:flex;
    align-items:center;
    gap:20px;
}

.desktop-home{
    color:#333;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
}

.desktop-home:hover{
    color:#2563eb;
    text-decoration:none;
}

.mobile-home{
    display:none;
}

    margin-bottom:18px;
    border-bottom:1px solid rgba(255,255,255,.2);
    padding-bottom:18px;
}

.top-links a{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:600;
}

.top-links .glyphicon{
    font-size:15px;
    top:0;
}

/*==========================
    MAIN NAVIGATION
===========================*/

.main-nav{
    background:#2563eb;
    color:#fff;
    display:flex;
    justify-content:space-between;
    gap:40px;
    padding:18px 30px;
}

.nav-group{
    display:flex;
    flex-direction:column;
}

.nav-group h2{
    font-size:18px;
    color:#fff;
    text-transform:uppercase;
    letter-spacing:1px;
    /*margin:0 0 12px;*/
    font-weight:700;
}

.nav-links{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    font-size:15px;
    transition:.25s;
}

.nav-links a:hover{
    opacity:.8;
    text-decoration:underline;
}

/* Hamburger */

.nav-toggle{
    display:none;
    background:none;
    border:0;
    cursor:pointer;
}

.nav-toggle span{
    display:block;
    width:28px;
    height:3px;
    background:#2563eb;
    margin:5px 0;
    border-radius:2px;
}


/* Category */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

.categories a {
  text-decoration: none;
  color: #444;
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  transition: .3s;
}

.categories a:hover {
  background: #2563eb;
  color: white;
}

.categories a.active {
    background: #2763eb;
    color: #fff;
}
/* Gallery */

.details{
    padding:10px;
}

.details h3{
    font-size:15px;
    margin-bottom:5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.details p{
    font-size:13px;
    color:#666;
}

.favorited.glyphicon.glyphicon-star {
  margin-top: 5px;
  cursor: default;
}

/* languages*/
.languages {
    margin-top: 5px;
}

.lang-badge {
    display: inline-block;
    background: #f2f2f2;
    color: #333;
    border-radius: 3px;
    /*padding: 2px 6px;*/
    margin-right: 2px;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: bold;
}

/* ================= FAVORATED FLAG ================= */

.bottom-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:3px;
}

.small, small {
    font-size: 100%!important;
}

.favorited{
    display:flex;
    align-items:center;
    gap:3px;
    cursor:default;
}

.country-flag{
    width:17px !important;
    height:12px !important;
    background:#fff;
    color: #1c1c1c;
    border-radius:2px;
    font-size: 11px;
    position:absolute;
    top:5px;
    right:4px;
    border:1px solid #dadada;
    z-index:5;
    font-weight: 900;
    margin: 5px;
}

/* ================= NEW MODEL ================= */
.newmodel {
  background-color: #fbec0f;
  color: #1c1c1c;
  padding: 2px;
  border-radius: 5px;
  font-size: 11px;
  position:absolute;
  top:5px;
  right:4px;
  border:1px solid #dadada;
  z-index:5;
  font-weight: 900;
}


.title-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    cursor: default;
}

.title-row h3{
    margin:0;
    flex:1;
    font-size:15px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.viewers{
    flex-shrink:0;
    font-size:13px;
    color:#666;
    white-space:nowrap;
    cursor: default;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  padding: 25px;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  transition: .3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}


.card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.info {
  padding: 15px;
}

.info h3 {
  font-size: 18px;
}

.info p {
  margin-top: 8px;
  color: #777;
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 25px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: .25s;
}
.footer-links a:not(:last-child)::after {
    content: "•";
    margin-left: 18px;
    color: #bbb;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-menu {
    font-size: 13px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

@media (max-width: 600px) {

    footer {
        padding: 20px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links a {
        display: block;
    }

    .footer-menu {
        font-size: 12px;
    }
}

@media(max-width:900px) {
  body {
    padding: 10px;
  }

  .tablet {
    border-radius: 0;
    padding: 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:500px) {
  .gallery {
    grid-template-columns: 1fr;
    /*
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;*/
  }
}


/* ================= CATEGORIES CONTENT ================= */

div#all-categories {
    text-align: center;
}

.tag-menu{

    display:flex;
    flex-wrap:wrap;
    gap:12px;
    padding: 15px;
}

/* Each menu automatically sizes itself */
.tag{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:12px 24px;

    background:white;

    border:1px solid #d8d8d8;

    border-radius:999px;

    text-decoration:none;

    color:#333;

    font-size:15px;

    font-weight:600;

    transition:.25s;

    white-space:nowrap;

}

.tag:hover{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(37,99,235,.25);
    text-decoration: none;

}

.tag.active{

    background:#111827;

    color:white;

    border-color:#111827;

}

@media(max-width:768px){

    header{
        padding:0 20px;
    }

    .desktop-home{
        display:none;
    }

    .mobile-home{
        display:flex;
        align-items:center;
        gap:8px;
        font-weight:600;
    }

    .mobile-home .glyphicon{
        margin:0;
    }

    .nav-toggle{
        display:block;
    }

    .main-nav{
        display:none;
        flex-direction:column;
        padding:20px;
    }

    .main-nav.active{
        display:flex;
    }

    /* Make each nav group stack vertically */
    .nav-group{
        display:flex;
        flex-direction:column;
    }

    /* Move Home above Pink Asia */
    .nav-group:first-child{
        order:2;
    }

    .nav-group:last-child{
        order:1;
        /*margin-bottom:20px;*/
        padding-bottom:20px;
        border-bottom:1px solid rgba(255,255,255,.2);
    }

    .nav-links{
        flex-direction:column;
        gap:12px;
    }

    .tag{
        flex:1 1 calc(50% - 12px);
        justify-content:center;
    }

}

@media(max-width:480px){

    .tag{

        flex:1 1 100%;

    }

}






/********** POP UP MODAL ***********/
/* Overlay */

/* Smooth transition */
#page-content{
    transition: filter .9s ease;
}

/* Blur background */
#page-content.blur{
    filter: blur(14px);
    pointer-events: none;   /* Prevent clicking behind popup */
    user-select: none;
}

.modal-overlay{

    display:none;

    position:fixed;
    left:0;
    top:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.75);

    justify-content:center;
    align-items:center;

    z-index:99999;
}

/* Popup */

.modal-box{

    position:relative;

    width:90%;
    max-width:450px;

    background:#fff;

    border-radius:15px;

    padding:35px;

    text-align:center;

    box-shadow:0 20px 40px rgba(0,0,0,.25);

    animation:popup .35s ease;
}

@keyframes popup{

    from{
        transform:translateY(40px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

.popup-logo{

    width:90px;
    margin-bottom:20px;

}

.modal-box h2{

    font-size:28px;
    margin-bottom:15px;
    color:#333;

}

.modal-box p{
    line-height:1.6;
    margin-bottom:30px;

}

.continue-btn{

    background:red;/*#2b7cff;*/

    color:#fff;

    border:none;

    padding:14px 35px;

    border-radius:50px;

    cursor:pointer;

    font-size:16px;

    transition:.3s;
}

.continue-btn:hover{

    background:#145fd6;

}

.close-popup{

    position:absolute;

    right:15px;
    top:10px;

    border:none;
    background:none;

    font-size:30px;

    cursor:pointer;

    color:#777;

}

.close-popup:hover{

    color:#000;

}

.modal-box h4, .modal-box .agreement-terms{
    margin: 10px 0px 10px 0px;
}

.agreement-terms, .warnings{
    font-size: 12px;
    color:#666;
    line-height: 16px;
}
@media(max-width:600px){

    .modal-box{

        padding:25px;

    }

    .modal-box h2{

        font-size:24px;

    }

}


/*Loader spinner*/
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

