/*
Index.css. Style formatting for front page layout and iframes.
*/

.index-grid {
  display: grid;
  grid-template-areas:
    "home-sidebar home-title home-col-right"
    "home-sidebar home-blog home-col-right"
    "home-sidebar home-blog home-col-right";
  grid-template-columns: 210px 800px 300px;
  gap: 10px;
  width: 1330px;
  margin: 10px auto 5px auto;
}

.index-grid .title-container{
    grid-area: home-title;
    height: 150px;
    border: 5px solid black;
}

.index-grid .sidebar-right {
    grid-area: home-col-right;
}

.index-grid #neppermint_avi {
    grid-area: home-avatar;
    border: 2px solid rgba(55, 00, 88, .8);
}

.index-grid .myframe {
    grid-area: home-blog;
    width: 100%;
    height: 800px;
    border: 0px solid rgba(100, 100, 100, .9);
}

.index-grid .sidebar {
    grid-area: home-sidebar;
}

/* --------------------------------------------------------
 * Homepage: right sidebar styling for all sub-containers
 * --------------------------------------------------------*/
.sidebar-right {
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    order: 1;
    border-radius: 5px;
    font-size: 0.85em;
}

.sidebar-right h3 {
    background: rgba(var(--color-secondary), 0.7);
    color: var(--color-text);
    font-size: 1.2em;
    width: 100%;
    margin: 5px 0px;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.sidebar-right h3 a {
    color: var(--color-text);
    display: inline-block;
    transition: transform 0.15s ease;
}

.sidebar-right h3 a:hover {
    transform: scale(1.2);
}

#track-of-the-day {
    display: block;
}

.sidebar-right img {
    display: block;
    width: 100%;
}

/* my-status container */

.status-container {
    width: 100%;
    background: rgba(0, 0, 0, 1.0);
    border-radius: var(--theme-radius);
    margin-bottom: 10px;
    padding: 0px 5px 10px 5px;
    box-sizing: border-box;
}

#my-status {
    padding: 10px;
    box-sizing: border-box;
}

/* updates container */

.updates-container {
    background-image: url('/src/img/thriller.gif');
    background-repeat: no-repeat;
    background-size: 100% auto;
    align-self: start;
    margin-bottom: 10px;
    padding: 0px 5px 10px 5px;
    border-radius: 5px;
    box-sizing: border-box;
}

#updates-box {
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
    transition: color 1.0s ease;
}

#updates-box:hover {
    color: rgba(230, 230, 230, 0.0);
    transition: color 7.65s ease;
}

#updates-box p {
    margin: 10px;
    text-indent: 0;
}

/* disclaimer container */

#disclaimer {
    padding-left: 10px;
    padding-right: 10px;
    cursor: default;
    user-select: none;
}

/* shared */

.sidebar-right #my-status,
.sidebar-right #updates-box,
.sidebar-right #disclaimer {
    background: rgba(var(--color-main), 0.1);
    border-radius: var(--theme-radius);
}

/* Debugging */
/* .index-grid .sidebar { */
/*     grid-area: home-sidebar; */
/*     background: rgba(255, 0, 0, 0.3); */
/* } */

.status-grid {
    display: grid;
    grid-template-columns: max-content 1fr; /* First column hugs the text, second fills the rest */
    gap: 4px 8px; /* 4px space between rows, 8px between columns */
    margin: 0;
}

.status-grid {
    background: none;
}

.status-grid dt {
    font-style: italic;
}

.status-grid dd {
    margin: 0;
}
