* {
    box-sizing: border-box; /* Prevents padding/margin from breaking layouts */
}
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ========================== TOPNAV CONTENT ========================== */
.topnav_logo img {
    height: 32px;
}

/* ========================== PAGE MAIN TITLE ========================== */
.page_main_title {
    color: #ee6e73;
    text-shadow: 0 1px 0 darkred, 0 3px 3px rgba(0,0,0,.5);
    font-weight: bold;
}
.page_subtitle {
    color: #ee6e73;
    font-weight: bold;
}

/* ========================== SIDEBAR CONTENT ========================== */
@media only screen and (min-width: 993px) {
    nav a.sidebar-trigger {
        display: block;
    }
}
.sidenav {
    width: 95%;
}
.tabs {
    display: flex;
}
.tile-grid {
    display:flex;
    flex-wrap: wrap;
}
.tile-cell {
    width: 25%;
    height: 80px;
    background-size: cover !important;
    background-position: center !important;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 5px;
    border: 1px solid #fff;
}
.tile-cell span {
    font-weight: 700;
    color: #fff;
    padding: 4px 3px;
    background: rgba(0,0,0,.5);
}
/* ========================== FILE UPLOAD INPUT ========================== */

/* file upload button */
input[type="file"]::file-selector-button {
  border-radius: 4px;
  padding: 0 16px;
  height: 40px;
  cursor: pointer;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-right: 16px;
  transition: background-color 200ms;
}
/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
  background-color: #f3f4f6;
}
/* file upload button active state */
input[type="file"]::file-selector-button:active {
  background-color: #e5e7eb;
}

/* ========================== IMAGE PREVIEW ========================== */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.img-container {
    position: relative;
    display: inline-block;
    margin: 5px;
}
.img-container img {
    width: 100px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* ========================== GAME CARDS ========================== */
.game-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.game-card_cover {
    width: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.game-card_description {
    position: relative;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 80px);
}
.game-card_title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
}
.game-card_date {
    font-size: 1em;
    color: #888;
    margin-bottom: 12px;
}
.game-card_secondary p {
    margin: 4px 0;
    font-size: 0.9em;
    color: #555;
}
.posted-line-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 14px;
    width: 100%;
    background: #0f9d58;
    text-align: center;
}
.posted-line-mark i {
    color: #fff;
    font-size: 13px;
}
.posted-line-mark span {
    color: #fff;
    font-size: 8px;
}


/* ========================== SINGLE PAGES ELEMENTS ========================== */
.basic-info a:hover {
    text-decoration: underline;
}



/* ========================== FIXES AND EXPERIMENTS ========================== */

/* year and month dropdowns in modals fix */
.dropdown-content.select-dropdown {
    position: fixed !important;
    width: 160px !important;
    height: 320px !important;
    left: 50% !important;
    top: 50% !important;
    margin-left: -80px !important;
    margin-top: -160px !important;
}

/* modal fixed header and fixed footer fix */
.modal.modal-fixed-header .modal-content {
    max-height: calc(100% - 75px - 56px); /* Subtract header and footer heights */
    overflow-y: auto;
    position: absolute;
    top: 75px;
    bottom: 56px;
    left: 0;
    right: 0;
}
.modal.modal-fixed-header .modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* addition to framework's class properties (thin white border to visually separate screenshots) */
.materialboxed {
    border: 1px solid #fff;
}

