﻿body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    font-family: Arial, sans-serif;
    font-size: 1em;
    margin: 0;
    min-height: 100vh;
    color: azure;
    background-color: #333;
    background-image: url("bg.png");
    background-repeat: repeat;
}

.closed {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.header_base {
    display: flex;
    position: fixed;
    width: 100%;
    height: 50px;
    justify-content: center;
    min-height: 4em;
    background-color: #333333F0;
    border-bottom: 2px solid orange;
    box-shadow: 0px 0px 24px -8px black;
    backdrop-filter: blur(4px) saturate(0);
}

.header_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 600px;
}

.page_name {
    font-size: 2em;
    font-weight: bold;
    display: contents;
}

.user_info {
    font-size: 1em;
    font-weight: 100;
}

.login_button {
    
    transition: all 0.2s;
}

.header_button {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
    color: inherit;
    margin: 0 10px;
    position: relative;
    padding: 5px 20px;
    white-space: nowrap;
    box-sizing: border-box;
    height: 100%;
    border-bottom: 1px solid transparent;

    border-bottom: 0px solid transparent;
    border-top: 0px solid transparent;

    transition: all 0.2s;
}

.header_button:hover {
    border-bottom: 4px solid orange;
    border-top: 4px solid transparent;
}

@keyframes highlightButton{
    from {
        border-bottom: 4px solid transparent;
    }
    to {
        border-bottom: 4px solid orange;
    }
}

.content_base {
    display: flex;
    width: 600px;
    margin: 84px auto 20px;
    align-items: center;
    flex-direction: column;
}

.game_item {
    height: 240px;
    display: flex;
    /*transition: all 0.15s;*/
    border: 4px solid transparent;
    padding: 8px;
}

.game_item:hover {
    border: 4px solid orange;
}

.blog_item{
    display: flex;
    width: 100%;
    /*transition: all 0.15s;*/
    box-shadow: 0px 0px 16px -8px black;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 8px;
    background-color: #222222;
    flex-direction: column;
}

.card_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0px 20px;
}

.game_name {
    margin: 4px;
    font-size: 1.5rem;
    font-weight: 900;
}

.game_desc {
    margin: 4px;
}

.footer_base {
    background-color: blueviolet;
    min-height: 40px;
}

a{
    cursor:pointer;
}

a:link{
    color: white;
}
a:visited{
    color: white;
}
a:hover{
    color: orange;
}
a:active{
    color: orange;
}

p{
    margin: 8px 0px;
}

hr{
    width: 100%;
    border: 2px solid #333;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 0px;
}

img{
    width: 100%;
}

#debug{
    position: fixed;
}

/* leader board styles */

#leaderboard {
    display: flex;
    width: 600px;
    margin: 5em auto 2em;
    align-items: center;
    box-shadow: 0px 0px 16px -8px black;
    border-radius: 8px;
    padding: 20px 20px;
    background-color: #222222;
    flex-direction: column;
}

table {
    width: 100%;
    border-collapse: collapse;
}

tr {
    background: #444;
    border-top: 5px solid #222222;
    border-bottom: 5px solid #222222;
}

td {
    padding: 8px 0px;
    color: lightgray;
    border: solid #222222;
    border-left: 0px;
    border-right: 0px;
}

.table-header {
    width: 200px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    height: 48px;
}

.table-value {
    text-align: center;
    font-size: 20px;
    font-weight: 200;
}

.table-value {
    width: 200px;
    text-align: center;
}

.rankLabel {
    width: 24px;
    text-align: center;
}

.nameLabel {
    padding: 0px 16px;
    border-left: 4px solid;
    border-right: 4px solid;
}

.valueLabel {
    width: 60px;
    text-align: center;
}

.top3 {
    font-weight: 600;
    /* font-size: 20px; */
    color: orange;
}

/* leaderboeard dropdown */

#criteriaBtn {
    background-color: #ffa500;
    color: black;
    font-size: 32px;
    font-weight: 700;
    border: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  
  #criteriaBtn:hover, #criteriaBtn:focus {
    background-color: #FFA500;
    color: white;
  }
  
  .dropdown {
    height: 64px;
    width: 100%;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 0px 16px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }
  
  .dropdown-content button {
    color: black;
    height: 40px;
    display: block;
    cursor:pointer;
    width: 100%;
    border: none;
    margin: 1px 0px;
  }

  .glow {
    animation: infinite 0.5s alternate 0s;
    animation-name: glowanim;
  }

  @keyframes glowanim {
    from {
        background: orange;
    }
    to {
        background: gray;
    }
  }
  
  .dropdown-content button:hover {background-color: #ddd;}

  .show {display:block;background: gray;}