/* main.css */
/* ========= GLOBAL SETUP  ========= */


*,*::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding and margin when adding up size of element box */
}

/* Force form controls to inherit the font settings from their parent/body */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}


html {
    font-size: 62.5%; 
    /* Default font size: 16.
       Resest it to 10px.
       Use % so that if ppl change font size on browser, it scales correctly
    */
    height: 100%;
}

body {
    font-family: "DM Sans", sans-serif; /* Google font */
    font-style: normal;
    /* font-family: "Inconsolata", monospace; Google font */
    color: #fafafa;  /* dark mode */
    background-color: #0a0a0a; /* dark mode*/
    /* background-color: #1f1f21; */
    /* background-color: #070708; */
    /* background-color: #0d1117; */
    /* color: #000; light mode */
    /* background-color: #f6f6f6; cotton light mode */

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


h1, h2, h3, p {
    margin-top: 1.50rem;
    margin-bottom: 1.50rem;
}

h1 {
    font-size: 3.25rem;
    /* line-height: 2rem; */
    /* letter-spacing: -0.025em; */
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.25rem;
    color: #9698a0;
}

p, ol, ul, a { 
    font-size: 1.58rem;
    /* line-height: 1.75rem; */
    font-weight: 400;
}

section li {
    margin: 1.25rem 0 1.25rem 0;
}

h1, h2, h3 {
    font-weight: 500;
}

a {
    text-decoration: none;
    color: #4687ac;
    font-weight: 500;
}

ol, ul {
    padding-left: 24px;
}

img {
    display: block;
}

img {
  width: 100%;
  margin: auto 0;
}

nav ul {
    list-style: none;
    color: #090e13;

}

nav a, footer a {
    text-decoration: none;
    font-size: 1.33rem;
    font-weight: normal;
    color: #4687ac;
}


nav a:hover, nav a:active, .nav-header a:hover, .nav-header a:active {
    color: #4687ac;
    text-decoration: underline;
}


a:hover {
    color: #4687ac;
    text-decoration: underline;
}

a:visited {
    color: #4687ac;
}

.video {aspect-ratio: 16 / 9; width: 100%; } /* YOUTUVE VIDEO -- RESPONSIVE horizontal*/


/* ==== CUSTOM ====  */

.errormsg {
    font-size: 1.5rem;
    color: rgb(163, 94, 94);
    text-align: left;
    margin: 3rem 0 3rem 0;
}

.mb-1 { 
    margin-bottom: 1rem;
}

.mb-2 { 
    margin-bottom: 2rem;
}

.mb-4 { 
    margin-bottom: 4rem;
}

.w500 {
    max-width: 500px;
}

.field-help {
    color: #9698a0;
}

/* ========  Header and Nav  ========  */
.header {
    border-bottom: 1px solid oklch(100% 0 0/.1);
}


.nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem 1.25rem 2.5rem;
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 0 2rem 0 2rem; */
}

@media (max-width: 430px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

}


.logo, .menu-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.menu-items a {
    font-size: 1.33rem;
    color: #cccccc;
}

.logo a {
    font-size: 1.33rem;
    color: #cccccc;
    font-weight: bold;
}

.logo img {
    width: 32px;
}



/* ========  Main Section  ========  */

.main-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    flex: 1;
}

.main-content {
    padding: 0 1.5rem 0 1.5rem;
}

/* ========  Main Container For Front Page / index ========  */

.front-page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    justify-content: flex-start;
    align-items: stretch;
}

/* ========  Main Container For Jounrals ========  */

.main-container {
    display: flex;
    width: 100%;
    flex: 1;
    justify-content: flex-start;
    align-items: stretch;
}

.header-img-container {
    width: 100%;
}

.left-container {
    flex: 1;
    border-right: 1px solid oklch(100% 0 0 / .1);
    border-top: 1px solid oklch(100% 0 0 / .1);
    padding: 0 2rem 0 2rem;
}

.right-container {
    flex: 2;
    justify-content: flex-start;
    border-top: 1px solid oklch(100% 0 0 / .1);
    padding: 0 2rem 0 2rem;
    
}


.game-header {

    position: relative;
    width: 100%;
    min-width: 0;

    min-height: 192px;
    max-height: 192px;

    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-image:
        linear-gradient(
            to right,
            #0a0a0a 0%,
            transparent 60px,
            transparent calc(100% - 60px),
            #0a0a0a 100%
        ),
        linear-gradient(
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.7)
        ),
        var(--bg-image);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-header-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
   
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.game-header-top h1, .game-header-top p {
    margin: 0;
}


@media (max-width: 1280px) {

    .right-container {
        flex: 2;
    }
}

@media (max-width: 986px) {

    .right-container {
        flex: 1;
    }
}


@media (max-width: 900px) {

    .main-container {
        flex-direction: column-reverse;
    }

    .left-container {
        border-right: none;
        border-top: 1px solid oklch(100% 0 0 / .1); 

        display: flex;
        flex-direction: column;

    }

    .game-notes {
        order: 1;
    }

    .game-review {
        order: 2;
    }

    .game-data {
        order: 3;
    }

    .users-journals {
        order: 4;
    }

    .journal-options {
        order: 5;
    }

}

@media (max-width: 600px) {

    .game-header h1 {
        font-size: 2.75rem;
      
    }

    .game-header {
        min-height: 192px;
        height: 192px;
    }

    .game-header-top {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin: 0 auto;
    }
}



/* ========  Forms  ========  */

.form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    gap: 2rem;
}

.form label {
    font-size: 1.75rem;
    text-align: left;
}

.form input,
.form input[type="text"],
.form input[type="password"],
.password-wrapper {
    width: 100%; /* Ensures they fill the container but scale down on mobile */
}

.form input, .modal-form select, .modal-form textarea, .form select {
    padding: 1.5rem;
    border: 1px solid oklch(100% 0 0/.1);
    border-radius: 0.5rem;
    background: #1a2125;
    color: #fafafa;
    font-size: 1.55rem;
    text-align: left;
    margin: 0;
}

.modal-form textarea {
    width: 100%;
    line-height: 2.33rem;
}

.form input[type="number"] {
    width: 40%;
}

.form input[type="file"] {
    color: #fafafa;
}

.form button, .modal-form button {
    background-color: #356b8a;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .5rem;
    cursor: pointer;
    padding: 1rem 1.5rem 1rem 1.5rem;
    white-space: nowrap;
    gap: 0.5rem;
    border: none;
    color: #cccccc; 
    margin-top: 0.5rem;
    font-size: 1.28rem;
} 

.form button:hover, .modal-form button:hover {
    background-color: rgb(57, 115, 148);
    color: #fafafa; 
}

.modal-form button {
    margin-top: 1.25rem;
}

.register-info p, .register-info a {
    font-size: 1.15rem;
    text-align: left;
}

.grecaptcha-badge {
    visibility: hidden;
}


/* ========  Search Form  ========  */

.search-form {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.search-form button {
    margin: 0;
}

.search-form-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.search-form-results button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border-radius: .5rem;
    cursor: pointer;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    white-space: nowrap;
    gap: 0.5rem;
    background-color: #356b8a;
    border: none;
    color: #fafafa;  
    margin-top: 0.5rem;
    width: 100%;
} 

.search-form-results button:hover {
    background-color: #4386ad;
}

/* Hide the actual radio dot */
.game-search-inner-box input[type="radio"] {
    display: none;
}

/* Style for when the hidden radio is checked */
.game-search-inner-box:has(input:checked) {
    background-color: #4687ac;
}

/* Keep the cursor as a pointer so users know it's clickable */
.game-search-inner-box {
    cursor: pointer;
}

/* ========  Game Log Form  ========  */

.field {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.33rem;
}

.field span {
    font-size: 1.33rem;
}

/* ========  Generic Container For Section  ========  */

.section-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
   
    gap: 2rem;
    
    margin: 2rem auto;
    padding: 2rem;
    flex: 1;
}

/* ========  Section Article  ========  */

.section-article {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
    text-align: left;
    padding: 2rem;
    flex: 1;
}

.bg-grey {
    background-color: #333;
}



/* ========  Game Search View ========  */

.game-search-main-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
    padding: 0 1rem 0 1rem;
}


.game-search-inner-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    width: 100%;
    text-align: left;
    border-radius: .5rem;
}

.game-search-inner-box:hover {
    cursor: pointer;
    background-color: #4687ac;
}

.game-capsule {
   height: 64;
   width: 64px; 
   border-radius: 50%;
}

.img-cover {
    border-radius: 1rem;
    max-height: 200px; 
}

.game-name {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}



.search-results-container {
    border-top: 1px solid oklch(100% 0 0/.1);
    margin-top: 1rem;
    padding-top: 1rem;
}

/* ========  Game MetaData  ========  */

.game-metadata {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.metadata-item{
   border: 1px solid oklch(100% 0 0/.1); 
   padding: .5rem 2rem .5rem 2rem;
   margin: 0;
}

.metadata-item h3, .metadata-item p {
    margin: 1rem 0 1rem 0;
}

@media (max-width: 600px) {

    .game-metadata {
        flex-direction: column;
     }

    .metadata-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: .5rem 1rem;
    }

    .metadata-item h3 {
        margin: 0;
    }

    .metadata-item p {
        font-size: 1.2rem;
        margin: 0;
    }
}

/* ========  Content Highlights and Journal  ========  */

.content-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    /* max-width: 500px; */
    background-color: #0f1215;
    border: 1px solid oklch(100% 0 0/.1);
    border-radius: 1rem;
    margin: 2rem auto;
    padding: 2rem;
}

.content-box-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    max-width: 500px;
    flex: 1;
}

.content-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    border-bottom: 1px solid oklch(100% 0 0/.1);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.content-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    border-top: 1px solid oklch(100% 0 0/.1);
    margin-top: 2rem;
    padding-top: 2rem;
    
}


.highlight {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    gap: 2rem;
    text-align: left;

}

.journal-entry {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-bottom: 1px solid oklch(100% 0 0/.1);
    width: 100%;
    gap: 2rem;
    text-align: left;
    padding: 1rem 1rem 1.95rem 1rem;
}

.journal-entry p {
    line-height: 2.33rem;
}

.journal-entry ul {
    list-style-type: none; 
    padding: 0;            
    margin: 0;  
}

.log-text {
    font-size: 1.33rem;
    color: #9698a0;
    margin: 0;
    padding-left: 0.60rem;
}


.highlight-metadata {
  flex: 1;
}

.highlight-text {
  flex: 3;
  padding-right: 1rem;
}

.highlight-text p {
    margin-bottom: 0;
    margin-top: 0;
}



.highlight-metadata {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.25rem;
}

.highlight-date p, .highlight-playtime p {
    font-size: 1.25rem;
    color: #9698a0;
    margin: 0;
}


.preserve-format {
    white-space: pre-wrap;
    word-wrap: break-word;
}


.video-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    background-color: #0f1215;
    border: 1px solid oklch(100% 0 0/.1);
    border-radius: 1rem;
    margin: 2rem auto;
    padding: 2rem;
}

@media (max-width: 800px) {
    .highlight {
        flex-direction: column;
        gap: 0;
        padding-right: 0rem;
    }

    .highlight-metadata {
        justify-content: flex-start;
    }

    .highlight-text p {
        padding-top: 0rem;
        margin-bottom: 0;
    }
    .highlight-date p, .highlight-playtime p {
        font-size: 1.2rem;
        margin-top: 0;
    }
}


.journal {
    text-align: left;
    line-height: 1.95rem;
    border-top: 1px solid oklch(100% 0 0/.1);
    margin-top: 1.0rem;
    padding-right: 5rem;
}

/* ======== Edit Journal Box  ========  */
.edit-journal-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0rem auto;
    padding: 0rem 2rem 2rem 0rem;
}
/* ======== Game Journals  ========  */



.game-journal-link {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    cursor: pointer;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    text-decoration: none; 
    color: #4687ac; 
    text-align: left;
    
}

.game-journal-link:hover {
    background-color: #4687ac;
    color: #fafafa;
    cursor: pointer;
    text-decoration: none;
}



/* ========  Footer  ========  */

footer {
    width: 100%;
    border-top: 1px solid oklch(100% 0 0/.1);
    padding-top: 1.5rem;
}

.game-footer-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem 1rem;
    
}

@media (max-width: 532px) {
    .game-footer-nav {
        flex-direction: column;
        gap: 1;
    }
}

.footer-nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;

}

.footer-nav-links a {
    font-size: 1.33rem;
    color: #9698a0;
}

.footer-nav-links a:hover {
    color: #4687ac;
    text-decoration: none;
}


footer p {
    font-size: 1.20rem;
    color: #9698a0;
}

.nav-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: flex-start;
    padding: 1rem 1.5rem 1rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    flex: 3;
}

.footer-info p {
    margin: 0;
}

.footer-menu-items {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.footer-menu-items p {
    margin: 1rem 0 1rem 0;
}

@media (max-width: 799px) {
    .nav-footer {
        flex-direction: column;
        gap: 1rem;
    }

}

/* ======== Buttons  ========  */

.add-btn h1 {
    color: #fafafa;
}


.add-btn {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    border-radius: .5rem;
    cursor: pointer;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    white-space: nowrap;
    gap: 0.5rem;
    background-color: transparent;
    border: none;
    color: #9698a0; 
    margin-top: 0.5rem;
}


.add-btn:visited {
    color: #9698a0;
}

.add-btn:hover {
    background-color: #356b8a;
    color: #fafafa; 
}


.edit-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    color: #9698a0;
}

.edit-btn {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    white-space: nowrap;
    background-color: transparent;
    padding: 0rem 0.5rem 0.5rem 0.5rem;
    margin-bottom: 0;
    color: #9698a0; 
    font-size: 1.25rem;
 
}

.edit-btn:visited {
    color: #9698a0; 
}

.edit-btn:hover {
    color: #356b8a;
    text-decoration: none;
}

.game-header-edit-box:hover {
    background-color: #356b8a;
    color: #fafafa; 
    cursor: pointer;
}

.game-header-edit-box:hover button h3 {
    color: #fafafa;
}

.game-header-edit-box:hover button {
    color: #fafafa;
}

.game-header-edit-box button {
    padding: 0;
}

.del-journal-btn {
    background-color: transparent;
    border: none;
    font-size: 1.58rem;
    cursor: pointer;
    /* white-space: nowrap; */
    text-align: left;
    color: #4687ac;
}

.del-journal-btn:hover {
    text-decoration: underline;
}


.border-bottom {
    border-bottom: 1px solid oklch(100% 0 0/.1);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}


/* == Steam Search Results View == */

.selection-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem; 
    padding: 0.8rem;
    width: 100%; 
    background-color: oklch(20.5% 0 0);
}

.card-list {
    width: 100%;
    max-height: 400px; /* Limits the height so the button is always visible */
    overflow-y: auto;  /* Adds the scrollbar only to the results */
    margin-bottom: 1rem;
    border-bottom: 1px solid oklch(100% 0 0/.1);
}

/* Hide the actual radio dot */
.card input[type="radio"] {
    display: none;
}

/* Style the area */
.card {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    border-top: 1px solid oklch(100% 0 0/.1);
}

/* Hover effect */
.card:hover {
    background-color: #4687ac;
}

.selection-group label {
    margin: 0;
    padding: 0;
}

/* Style for when the hidden radio is checked */
.card:has(input:checked) {
    border-color: #000103;
    background-color: #4687ac;
}

.card h2 {
    margin: 0;
    text-align: left;
    font-size: 1.33rem;
    color: #fafafa;
    padding-right: 2rem;
}

.steam-capsule {
    width: 150px;
}




