:root {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    /*background-color: #ead2a6;*/
    background-color: #99ccff;
    margin: 0;
    padding: 0;    
}
:root a {
    color: #ad3131;  
    text-decoration: none;  
}

p { 
    max-width: 50ch;
}

body {
    margin: 0;
    padding: 0;
}

#header {
    width: 100%;
    margin: 0;
    padding: 0;
    /*background-color: #d4854c;*/
    background-color: #ad3131; 
    background-position: center;    
    background-repeat: no-repeat;
    background-size:cover;
    height: 280px;
    z-index: 8;  
    display: flex;  
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;    
    background-image: url(/images/header-bkg.png);
    box-shadow: 0px 0.05rem 0.1rem rgba(0, 0, 0, 0.6);
}
#header a { 
    color: white;
    text-transform: uppercase;
}

#header-nav, #bottom-nav {    
    margin-left: auto;    
    /*background-color: #5b4134; */
    background-color: black;
    color: #999;
    z-index: 3;
    border-bottom-left-radius: 1rem;
    display: flex;
    flex-shrink: 1;
    border: 2px inset;
}
#header-nav ul, #bottom-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
#header-nav ul li:first-child {
    margin-left: auto;
}
#header-nav li, #bottom-nav li {
    padding: 0.5em 1.2em;
}
#header-nav ul a:hover, #bottom-nav ul a:hover {    
    color: yellow;
}
#header-nav a {
    text-decoration: none;   
}
#header-cybercity {
    width: 136px;
    height: 136px;
    background-image: url("/images/header-cyber-city-oedo-808.png");    
    position: absolute;
    left: 50%;
    top: 170px;
    z-index: 8;
    transform: rotate(30deg);
}
#bottom-nav {
    margin: auto;
    font-size: 0.8rem;    
    background: none;
    border: none; 
    text-align: center;
    justify-content: center;
    background-color: #ad3131;
    max-width: 80%;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;    
}
#bottom-nav ul li:last-child {
    margin-right: auto;
}
#bottom-nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

#content {
    margin: 0;
    padding: 2rem;
    width: 80%;
    max-width: 1500px;
    /*background-color: #f4e8ce;*/
    background-color: whitesmoke;
    margin: auto;
    min-height: 40vh;
    /*box-shadow: 0px 20px 200px rgb(187, 141, 56);    */
    z-index: -1;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    border: 2px solid #ad3131;
    border-top: none;    
}

h1, h2, h3, #site-name {
    font-family: 'Chewy', cursive;
    line-height: 1.1;
    font-weight: 900;
    font-size: 3rem;
    color: #000000;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.2rem;
}
#site-name {
    margin: auto;    
    color: #ffffff;
    font-size: 6rem;  
    text-shadow: 0px 4px 6px rgb(20, 20, 20);      
}
#site-name a {
    text-transform: none;
    text-decoration: none;
}

.avatar-listing {
    display: flex;
    flex-wrap: wrap;    
    
}
.avatar-listing > * {
    flex: 1 1 140px;    
}
.avatar {
    padding: 1em;
    margin: 0.2em;
    border: 1px solid #a78967;    
    border-radius: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; 
    background-color: white;   
}
.avatar a {
    /*color: #5b4134;*/
    text-decoration: none;
}
.avatar-image {
    display: flex;       
    
    margin: auto;
}
.avatar-name {
    text-align: center;    
}

#footer {    
    text-align: center;
    color: #5b4134;
    font-size: 0.8rem;
}
#footer ul {
    list-style: none;
    display: flex;
    justify-content: center;    
}
#footer li {
    padding: 0.5em 1.2em;
}
#footer a {
   color: #5b4134;
   text-decoration: none;
}



/* CATEGORIES MENU */

 /* Navbar container */
 .catmenu {
    overflow: hidden;
    background-color: #333;
    font-weight: normal;
    text-transform: uppercase;
    padding: 0.5em;
    border-radius: 0.5rem;
  }
  
  /* Links inside the navbar */
  .catmenu a {
    float: left;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: normal;    
  }
  
  /* The dropdown container */
  .dropdown {
    float: left;
    overflow: hidden;
    background-color: #ad3131;
    border-radius: 0.5rem;
  }
  
  
  /* Dropdown button */
  .dropdown .dropbtn {
    /*font-size: 16px;*/
    border: none;
    outline: none;
    color: white;
    padding: 0.2em 1em;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
  }
  .cat2 { padding-left: 2rem; }
  .cat3 { padding-left: 4rem; }
  
  
  /* Add a red background color to navbar links on hover */
  .catmenu a:hover, .dropdown:hover .dropbtn {
    background-color: #ad3131;
  }
  
  /* Dropdown content (hidden by default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    float: none;
    color: #ad3131;
    padding: 0.2em 2em;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  /* Add a grey background color to dropdown links on hover */
  .dropdown-content a:hover {
    background-color: #ddd;
  }
  
  /* Show the dropdown menu on hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }

  #search-field {
    display: flex;
    margin: 0.2em;  
    margin-left: auto;      
    padding: 0.3em;
    border-radius: 0.2rem;
    border: none;
    width: 20ch;
    justify-content: baseline;
    align-items: baseline;
    box-shadow: 0px 4px 6px rgb(20, 20, 20);
 }
 input[type=text], input[type=password], .choose-category {
    box-sizing: border-box;
    border: 1px solid #99ccff;
    border-radius: 0.2rem;   
    padding: 0.5em;
  }
  .separator {
      height:  1rem;
  }

 #back-and-next {     
     display: flex;
     flex-grow: 1;
     justify-content: space-evenly;
 }
 #back-and-next a, #display-avatar .big-button {
    color: white;
}

 .big-button, .tab-active, .tab-inactive {
    background-color: #ad3131;
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    margin: 4px 2px;
    cursor: pointer;  
    border-radius: 4px;
    padding: 0.5em 1.5em;
    box-sizing: border-box;
 }
 .green {
     background-color: rgb(4, 150, 4);
 }

 #top-uploaders-index {
     background-color: white;     
     margin: 0;
     padding: 0;
     border: 1px solid white;
     line-height: 1;
 }
 #top-uploaders-index li {
     clear: left;
 }
 #top-uploaders-index img {
     padding: 0.3rem;
 }
 .avcount {
     font-size: 0.8em;
 }
 
 .tab-active, .tab-inactive {
     color: black;
     border-bottom-right-radius: 0;
     border-bottom-left-radius: 0;
     margin: 0;     
 }
 .tab-inactive {
    background-color: rgb(200, 200, 200);
    /*border: 1px solid black;*/
 }
 .tab-active {
    background-color: white;
    border-bottom: 1px solid white;
 } 

 #display-avatar {
     display: flex;     
 }
 #avatar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
 }
 #avatar-info img {
    align-self: center;
}
#avatar-main {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
}
.notice {
    font-size: 0.8em;
    color: 333;
    background-color: white;
    padding: 1em;
    border-radius: 4px;
}