:root {
    --red: #d33434;
    --dark_green: #2ab52a;
    --light_green: #54e954;
    --yellow: #e9e954;
    --gold: #e9c654;
    --light_blue: #54e9e9;
    --orange: #db510f;
    --content-margin: 20px;
    --hamburger_margin: calc(100vw - 1024px);

    --background-primary: #121212;
    --background-secondary: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #b3b3b3;
    --border-color: #2c2c2c;
    --shadow-color: rgba(0, 0, 0, 0.5);
}
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: auto;
    height: auto;
    z-index: 1000;
}
#loading img {
    width: 200px;
}

#loading_pagination{
    display:none;
}
#loading_pagination img{
    height:100px;
}

.bold{
    font-weight:bold;
}

@font-face {
    font-family: 'FontAwesome';
    src:url('../fonts/fontawesome/fa-solid-900.woff2');
    font-weight: normal;
    font-style: normal;
  }
  .fa,
  .fa-classic,
  .fa-sharp,
  .fas,
  .fa-solid,
  .far,
  .fa-regular,
  .fab,
  .fa-brands {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .fa-star::before {
    content: "\f005"; }
  .fa-caret-up:before {
    content: "\f0d8";
  }
  .fa-caret-down:before {
    content: "\f0d7";
  }
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body{
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

#wrapper,
#footer_content,
#header {
    max-width: 1440px;
    min-width:320px;
    margin: 0 auto;
}

#wrapper,
#footer_content{
    padding: 0px 20px 0px 20px;
}

#header_middle{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width:100%;
    height:100%;
}
#search_container{
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.package_preview_image img{
    width:100%;
    height:auto;
}

#main_header, #sub_header{
    text-align:center;
}

#main_header {
    display: flex;
    justify-content: space-between;
    margin: 20px;
    height: 60px;
    flex-wrap: wrap;
}
#header_right {
    justify-content: flex-end;
}

#logo img{
    max-width:100%;
}

#logged_in_container, #login_register_container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#login_register_container_wrapper, #logged_in_container_wrapper{
    display: inline-flex;
    justify-content: flex-end;
    gap:10px;
}
#login_register_container_wrapper{
    width: 115px;
}
#login,#register{
    display:inline-flex;
}

#end_of_results{
    display:none;
    font-weight:bold;
}

a.link,
.link,
#footer_content a{
    color:var(--gold);
    text-decoration:none;
}
a.link:hover,
.link:hover,
#footer_content a:hover{
    color:var(--yellow);
    cursor:pointer;
}

p{
    margin-bottom:0rem;
}

.package_preview_image{
    min-height:340px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.package_preview_compact{
    background-color: var(--background-secondary);
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.package_preview_compact .package_preview_image{
    min-height:110px;
    border-radius: 8px 8px 0 0;
}
.package_preview_compact .package_preview_info_wrapper {
    padding: 15px;
}
.package_preview_compact .package_name_preview, .package_preview_compact .package_launch_date{
    font-size:22px;
    display:inline-block;
}
.package_name_preview a,
.package_name a
{
    text-decoration:none;
    color:var(--gold);
    transition: color 0.2s ease;
}
.package_name_preview a:hover,
.package_name a:hover
{
    color: var(--yellow);
}
.package_name_preview,
.package_name
{
    font-weight:bold;
}
.package_name_preview, .package_launch_date{
    display:inline-block;
    font-size:calc(1.325rem + .9vw);
}
.package_name_preview{
    padding-right:10px;
}
.attribute_title{
    font-weight:bold;
    color:var(--light_blue);
}
.attribute_type_title,
.package_release_date
{
    font-weight:bold;
    color:var(--light_blue);
}
table tr td.attribute_type_title{
    width:135px;
}
.attribute_type_sub_title{
    font-weight:bold;
    color:var(--dark_green);
    text-align: right;
    padding-right:10px;
}
.attribute_name{
    color:var(--dark_green);
}
.attribute_value{
    color:var(--light_green);
}
.delimiter_pipe{
    color:white;
}
.attributes div{
    margin-left:20px;
}
.main_title{
    font-weight:bold;
    text-align: center;
}

#footer_content ul{
    list-style-type:none;
    padding:0;
    display:inline-flex;
    justify-content:space-between;
    width:350px;
}

#footer_content ul#partners_list_content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px;
    margin: 0 0 5px 0;
    z-index: 1000;
    min-width: 160px;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.25);
    justify-content: flex-start; 
    width: auto; 
    flex-direction: column;
}

#footer_content ul#partners_list_content li {
    width: 100%;
}

#footer_content ul#partners_list_content li::after {
    content: none !important;
}


#footer_content ul#partners_list_content li a {
    display: block;
    padding: 8px 12px;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
}

#footer_content ul#partners_list_content li a:hover {
    color: var(--yellow);
    background-color: #383838;
}


#footer_content ul:not(#partners_list_content) > li:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color:white;
}

.error_message, .error{
    color:var(--red);
}

.image-section, .video-section, .media-section{
    height: auto;
    background-color: var(--background-secondary);
    border-radius: 8px;
}

.image-gallery{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    transition: .2s;
}

.thumbnail-box.gallery-images img,
.thumbnail-box.gallery-images video,
.thumbnail-box.gallery-images img {
    display: block;
    position: relative;
    transition: .5s ease;
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    transition: .2s;
}

h3{
    color:var(--red);
    font-size:24px;
}

.package_preview_info .package_name{
    color:var(--red);
    margin-top:10px;
}

.package_images, .package_description{
    margin-top:20px;
}

.package_description{
    margin-bottom:20px;
}

.package_preview{
    margin-bottom:40px;
    background-color: var(--background-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.package_preview_info {
    padding: 20px;
}

.package_preview_left{
    grid-area:left;
    line-height:1;
}
.package_preview_right{
    grid-area:right;
    padding-left:10px;
}
.in_her_words{
    color:var(--light_blue);
    font-weight:bold;
}

.navigation_container {
    width: 100%;
    background-color: var(--background-secondary);
    display: flex;
    position: relative;
}
.main_navigation{
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
    align-items: center;
}
.nav_item {
    flex: 1;
    text-align: center;
    padding: 7px 0;
    color: #fff;
    cursor: pointer;
    font-weight:bolder;
    border-left: 1px solid white;
}
.nav_item:first-child {
    border-left: none;
}
.nav_item:last-child{
    padding:0px;
}
.nav_item a{
    color: var(--gold);
    text-decoration: none;
}
.nav_item a:hover{
    color:var(--yellow);
}

#sub_header{
    margin-bottom:20px;
}
.sub_navigation {
    display: flex;
    position: absolute;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    margin-top: 38px;
    max-width: 1200px;
}
.sub_list {
    list-style: none;
    display: flex;
    width: 100%;
    flex-direction: column;
}
ul.sub_list {
    padding-inline-start: 0px;
}
#search{
    height:32px;
    margin-top:3px;
    max-width:90%;
}
.sub_item{
    color:var(--gold);
    cursor: pointer;
    background-color: var(--background-secondary);
}
.sub_item:hover{
    background-color: var(--background-secondary);
    color:var(--yellow);
}

.compact_view_setting_container{
    display: flex;
    justify-content: flex-end;
    transform: translateY(-2px);
    padding-bottom:10px;
}

.btn.btn_gold {
    background-color: var(--gold);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight:bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn.mini_btn{
    padding: 5px 20px;
    font-size:14px;
}

.btn.btn_gold:hover {
    background-color: var(--yellow);
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 30px 0px;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination ul li a {
    padding: 0.75em;
    font-size: 1.3em;
    line-height: .9em;
    color: var(--gold);
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
}

.pagination ul li {
    display: inline;
    margin: 0 0px;
}

.pagination ul li.active a {
    color: #000;
    background: var(--gold);
    border-radius: 25%;
    -webkit-box-shadow: 0 8px 6px hsla(0, 0%, 20.4%, 0.9);
    box-shadow: 0 8px 6px hsla(0, 0%, 20.4%, 0.9);
}

.fa-chevron-left:before {
    content: ""; }

.fa-chevron-right:before {
    content: ""; }

.fas fa-chevron-left, .fas fa-chevron-right{
    font-size: 1.3em;
    line-height: .9em;
    color: var(--gold);
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    margin-top:4px;
}

#motd{
    color:var(--dark_green);
    text-align: center;
    font-weight: bold;
}

.single_radio_filter_container{
    display:inline-block;
}
.package_preview_name_date{
    margin-top:2px;
}

.info-button {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: var(--orange);
    color: white;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    font-size:11px;
    vertical-align: text-top;
}
h3 .info-button{
    width:18px;
    height:18px;
    font-size:15px;
}
.ui-dialog-titlebar {
    display: none;
}
.ui-dialog {
    position: absolute;
}

.download_links{
    max-height:300px;
    overflow-y: auto;
}

#package_video_container, #video_container{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

#package_video_container .video, #video_container .video {
    width: 450px;
    height:auto;
    align-items: center;
    justify-content: center;
}

#package_video_container{
    max-height: 415px;
    overflow-y: auto;
}

.video_title{
    font-size:18px;
}

.hidden{
    display:none;
}

#video_page_options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

#video_page_options #package_type, #video_page_options #package_name {
    flex-wrap: wrap;
    min-width: 110px;
}

#video_page_options label {
    display: block;
    margin-bottom: 5px;
}

#video_page_options select {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

#video_page_options #package_type{
    width: 110px;
}
#video_page_options #package_name{
    width: 250px;
}
.tr_spacer{
    height:5px;
}
.tr_border_bottom{
    border-bottom: 1px solid var(--red);
}

.download_part_title{
    font-size:18px;
    font-weight:bold;
    padding-top:5px;
    padding-bottom:5px;
}

@media (max-width: 1024px) {
    .package_preview_right{
        font-size:0.9rem;
    }
    .package_preview_image{
        min-height:240px;
    }
    #package_video_container .video, #video_container .video {
        width:480px;
    }
}

@media (max-width: 768px) {
    .package_preview_compact{
        /* Revert to vertical stacking on smaller screens */
        display: flex; 
        flex-direction: column;
    }
    .compact_view_setting_container{
        display:none;
    }

    #header_left,
    #header_right {
        width: 100%;
        margin-bottom: 10px;
    }
    #logged_in_container, #login_register_container{
        width: 100%;
    }
    #main_header{
        height:85px;
    }

    .package_preview_image {
        min-height: 140px;
    }
    #package_video_container .video, #video_container .video {
        width:350px;
    }
}

@media (max-width:700px) {
    .nav_item:first-child, .sub_list:first-child {
        display:none;
    }
    .nav_item:nth-child(2){
        border-left: none;
    }
}

@media (max-width: 480px) {
    .package_preview_right{
        font-size:0.8rem;
    }
    .package_preview_compact .package_name_preview, .package_preview_compact .package_launch_date{
        font-size:1rem;
    }
    .nav_item:nth-child(2){
        width:140px;
    }
    .nav_item:nth-child(3){
        width:60px;
    }
    .nav_item:nth-child(4){
        width:140px;
    }
    #wrapper,
    #footer_content{
        padding:5px;
    }
    .filter_content label{
        font-size:0.8rem;
    }
    .package_name_preview, .package_launch_date{
        display:block;
    }
    .package_launch_date{
        font-size:1rem;
    }
    .pagination ul li a{
        padding: 0.4em;
    }
    #package_video_container{
        max-height: 415px;
        overflow-y: auto;
    }
    #package_video_container .video, #video_container .video {
        width:100%;
    }
}

@media (max-width: 425px) {
    .package_preview_image {
        min-height: 100px;
    }
    .download_links{
        font-size:11px;
    }
}

@media (max-width: 320px){
    .filter_content label{
        font-size:0.7rem;
    }
    #dmca_footer{
        display:none;
    }
    #footer_content ul{
        width:300px;
    }
}
