/* Color variables */
:root {
    --main-bg-color: #282828;
    --secondary-bg-color: #3c3836;
    --main-text-color: #ebdbb2;
    --main-hover-color: #afcc53;
    --main-hover-text-color: #faeecf;
    --primary-color: #98bb26;
    --link-color: #458588;
}

html {
    background-color: var(--main-bg-color);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: #ebdbb2;
}

a {
    color: var(--link-color);
}

.wrapper {
    margin-right: auto; /* 1 */
    margin-left:  auto; /* 1 */
  
    max-width: 1024px; /* 2 */
  
    padding-right: 10px; /* 3 */
    padding-left:  10px; /* 3 */
  }

#navbar {
    width: 100%;
    padding-top: 80px;
    grid-area: nav;
}

#header { 
    width: 100%;
    position: absolute;
}

#header > h1 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 5px;
    font-weight: 600;
}

#header > h2 {
    text-align: center;
    margin: 0;
    padding: 2px;
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 200;
}

#footer {
    width: 100%;
    padding-top: 80px;
    grid-area: footer;
}

#detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    /* blur */
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
}

#modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--secondary-bg-color);
    border-radius: 12px;
    width: 80%;
    height: 85%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

#modal-title {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: 600;
}

#modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    /* Use linear gradient to darken the image */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

#modal-body {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 80%;
}

.modal-content {
    height: 80%;
    width: 80%;
    margin: auto;
    padding-top: 5rem;
    padding-left: 3rem;
    padding-right: 3rem;
    overflow-y: scroll;
}

.modal-content > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
    border-radius: 12px;
}

.modal-content > iframe {
    margin-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

#socials {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 30px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 1rem;

}

.social {
    color: var(--main-text-color);
    text-decoration: none;
    margin-right: 20px;
    width: 32px;
    height: 32px;
}

.icon {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 50px;
    height: 32px;
    padding: 0px;
    margin: 0px;
}

.icon:hover {
    opacity: 0.8;
}


.see-more {
    font-size: smaller;
    font-style: italic;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

.see-more:hover {
    opacity: 0.8;
    cursor: pointer;
    text-decoration: underline;
}


.ryuu-navbar {
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    flex-direction: row;
    list-style: none;
}

.ryuu-button {
    background-color: var(--primary-color);
    text-decoration: none;
    border: none;
    color: var(--main-hover-text-color);
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    display: inline-flex;
}

.ryuu-button:hover {
    background-color: var(--main-hover-color);
    color: var(--main-hover-text-color);
}

#content-grid {
    grid-area: content;
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat( auto-fit, minmax(360px, 3fr) );
    grid-template-rows: 1fr;
    gap: 1rem;
}

.card {
    background-color: var(--secondary-bg-color);
    border-radius: 12px;
}

.card-image {
    background-image: url("../resources/TinyDungeon.png");
    min-width: 300px;
    min-height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.text-body {
    position: relative;
}

.text-body > h4 {
    text-align:center;
    margin: 0;
    padding: 5px;
    font-size: 26px;
    font-weight: 600;
}

.text-body > p {
    overflow: hidden;
    margin: 0;
    padding: 2rem;
    font-size: 16px;
    white-space: nowrap;
    max-height: 0px;
    font-weight: 400;
    max-width: 100%;  
    text-overflow: ellipsis;
}


.tag-container {
    display: flex;
    flex-direction: row;
    align-items: start;
    padding: 5px;
}

.tag {
    background-color: var(--primary-color);
    color: var(--main-hover-text-color);
    border-radius: 6px;
    padding: 4px;
    margin: 2px;
    font-size: 10px;
    font-weight: 400;
}

.steam-widget-wrapper {
    margin-right: auto;
    margin-left:  auto;
    max-width: 720px;
    padding-top: 100px;
    padding-right: 10px;
    padding-left:  10px;
}

.steam-widget-wrapper > h2 {
    text-align: center;
    margin-bottom: 0;
    padding: 5px;
    font-weight: 600;
}

.steam-widget {
    min-width: 350px;
    width: 100%;
    min-height: 190px;
}