@import url("/text/css/mobile.css") screen and (max-width: 1020px);
@import url("/text/css/desktop.css") screen and (min-width: 1020px);

body {
    font-family: 'Poppins', sans-serif;
    background-color: #45f4f4;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* PENYESUAIAN MAIN CONTENT DAN HEADER */
:root {
    --nav-top: 20px;
    --nav-height: 100px;
}
header {
    top: var(--nav-top);
}
main {
    padding-top: calc(var(--nav-height) + var(--nav-top));
}

/* MAIN CONTENT */
main {
    padding-top: 80px;
    margin-left: 30px;
    margin-right: 30px;
}
main h1,
main h2,
main p,
main ol,
main .project,
main .level-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
main *.show {
    opacity: 1;
    transform: translateY(0);
}
main .title {
    text-decoration: underline;
    margin-top: 28px;
}
main p.description {
    line-height: 1.6;
    margin-top: -20px;
}
main ol.description-number li {
    line-height: 1.6;
    margin-bottom: -20px;
    font-weight: bold;
}

/* LATEST NEWS */
.latest-news-item a {
    display: block;
    background: #45f4f4;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        0 0 20px rgba(0, 255, 255, 0.08);
    transition: all 0.3s ease;
     color: inherit;
    text-decoration: none;
}
.latest-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.latest-news-item a h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000000;
}
.latest-news-item a .date {
    font-size: 13px;
    color: #aaa;
    margin-bottom: -20px;
    display: block;
}
.latest-news-item a p {
    margin-top: -20px;
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
}

/* NEWS LIST */
.news-item a {
    display: block;
    background: #45f4f4;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.08);
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
    margin-top: 20px;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.news-item a h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000000;
}
.news-item a .date {
    font-size: 13px;
    color: #aaa;
    margin-bottom: -20px;
}
.news-item a p {
    margin-top: 0px;
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
}
.news-page .date {
    font-size: 13px;
    color: #aaa;
    margin-bottom: -30px;
}
.news-page h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000000;
}
.news-page p {
    margin-top: 0px;
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* BUTTONS */
.buttons {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.buttons:hover {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    border: 2px solid #fff;
    background-color: #000;
    color: #fff;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Creations List */
.creations-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 40px;
    scroll-behavior: smooth;
}
.creation-card {
    min-width: 280px;
    max-width: 280px;
    background: #45f4f4;
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.creation-card:hover {
    transform: translateY(-5px);
}
.creation-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.creation-card .content {
    padding: 15px;
}
.creation-card h3 {
    font-size: 18px;
    color: #000;
    margin-bottom: 5px;
}
.creation-card p {
    font-size: 14px;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* HINT PAGE */
.project {
    margin-bottom: 10px;
}
.project-title {
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
}
.project-title:hover {
    color: #000;
}
.levels {
    margin-left: 20px;
}
.level-item {
    padding: 6px 0;
    cursor: pointer;
    color: #1a5cff;
}
.level-item:hover {
    text-decoration: underline;
}
.project-title {
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background: #2d6cdf;
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.project-title .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.project-title.open .arrow {
    transform: rotate(90deg); 
}
.levels {
    margin-left: 25px;
    margin-top: 5px;
}
.level-item {
    padding: 6px 0;
    cursor: pointer;
    color: #000;
}
.level-item:hover {
    text-decoration: underline;
}
.video-container{
    width:100%;
    max-width:900px;
}
.player-wrapper{
    position:relative;
    width:100%;
    max-width:900px;
    aspect-ratio:16/9;
}
#player{
    width:100%;
    height:100%;
}
#player iframe {
    width:100% !important;
    height:100% !important;
}
.custom-controls{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top:12px;
    padding:12px;
    border-radius:14px;
    background:#0f0f0f;
    border:1px solid rgba(255,255,255,.06);
    box-shadow:
        0 4px 20px rgba(0,0,0,.35);
}
#playPauseBtn{
    width:42px;
    height:42px;
    border:none;
    border-radius:10px;
    background:#fff;
    color:#000;
    cursor:pointer;
}
#playPauseBtn:hover{
    background:#f0f0f0;
    transform:translateY(-1px);
    box-shadow:
        0 4px 12px rgba(255,255,255,.15);
}
#seekbar{
    flex:1;
    height:4px;
    background:#333;
    border-radius:999px;
}
#seekbar::-webkit-slider-thumb{
    appearance:none;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#fff;
    cursor:pointer;
}
.time-display{
    color:#ddd;
    font-size:13px;
}
.video-blocker{
    position:absolute;
    inset:0;
    z-index:100;
    background:transparent;
}

/* POPUP */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.popup.show {
    opacity: 1;
    visibility: visible;
}
.popup-content {
    background: #45f4f4;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}
.popup.show .popup-content {
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
}
.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: #000;
    color: #fff;
    cursor: pointer;
}

/* CurseForge */
.cf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
}
.cf-stat {
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3); 
}
.cf-label {
    display: block;
    font-size: 0.85rem;
    opacity: .8;
    margin-bottom: .5rem;
}
.cf-value {
    display: block;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    word-break: break-word;
}
.cf-extra {
    display: block;
    margin-top: .5rem;
    opacity: .8;
}
.featured {
    grid-column: span 2;    
}
@media (max-width: 768px) {
    .cf-stats {
        grid-template-columns: 1fr;
    }
    .cf-stat {
        width: 100%;
    }
    .featured {
        grid-column: auto;
    }
}

/* Project Network */
.network-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.network-links a {
    padding: 8px 16px;
    border: 2px solid #000;
    background-color: #fff;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.network-links a:hover {
    margin: 0 10px;
    text-decoration: none;
    border: 2px solid #fff;
    background: #000;
    color: #fff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Caution Box */
.caution-box {
  display: flex;
  align-items: center;
  background-color: #fff3cd;
  border-left: 6px solid #ffc107;
  color: #856404;
  padding: 16px;
  border-radius: 4px;
  font-family: sans-serif;
  margin: 15px 0;
}
.caution-box .icon {
  font-size: 24px;
  margin-right: 14px;
}
.caution-box .caution-text {
  font-size: 16px;
  line-height: 1.5;
}
