/* This contains list stiles for the main site */

/* Apps */
.generic-apps-container {
    background-color: var(--generic-background);
}
#primary-app-list loading {
    padding-top: 4em;
    padding-bottom: 4em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 10em;
}

#app-search-container {
    padding: 12px;
    display: flex;
    flex-direction: row;
    height: 80px;
}
#app-search-container button {
    cursor: pointer;
    
    background-color: var(--generic-background);
    color: inherit;
    border-style:solid;
    border: 20px --generic-white-border;

    margin-left: 10px;

    transition: all .20s ease-in-out;

    min-width: 50px;
    max-width: 80px;

    flex-grow: 80;
}
#app-search-container button:focus {
    border-color:rgba(255, 255, 255, 0.801);
    background-color: #83a3ce65;
}
#app-search-container button:hover {
    border-color:rgba(55, 121, 243, 0.801);
}
#app-search-container button:active {
    background-color: #05397e65;
}
#app-search-container button:disabled {
    border-color:rgba(167, 167, 167, 0.801);
    background-color: #c2c2c265;
}
#app-search-container input {
    background-color: var(--generic-background);
    color: inherit;
    border-style:solid;
    border: 2px --generic-white-border;

    transition: all .20s ease-in-out;
    padding: 8px;

    flex-grow: 20;
}
#app-search-container input:focus {
    border-color:rgba(255, 255, 255, 0.801);
}
#app-search-container input:hover {
    border-color:rgba(55, 121, 243, 0.801);
}

.app-list {
    font-size: 1em;
    font-weight: 100;

    width: 100%;

    display: table;
    clear: both;
}
.app-item:hover {
    background-color: #e0e0e0;
    color: rgb(0, 9, 134);
    filter: drop-shadow(0px 0px 20px rgb(44, 44, 44));
    transition: all .30s ease-in-out;
    transform: scale(1.035);
}
.app-item img {
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.app-link {
    color: inherit;
}
.app-link:focus-visible div{
    color: rgb(0, 9, 134);
    background-color: #aee5ff;
    box-shadow:inset 0px 0px 0px 5px rgb(0, 86, 199);
    transition: all .30s ease-in-out;
}
.app-link:focus {
    box-shadow:inset 0px 0px 0px 5px rgb(187, 5, 5);
    transition: all .30s ease-in-out;
    background-color: #666;
}
.app-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
}

.app-column {
    padding: 1em;
}

@media screen and (min-width: 688px) {
    .app-column {
      float: left; 
      padding: 15px;
      width: calc(33.33% - 30px);
      height: auto;
    }
}

/* News */
/* Page - News */
#news > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news_date {
    font-size: 1em;
    font-weight: 600;
    margin-top: 5px;
    font-weight: 800;
}
.news_text {
    font-size: 1.2em;
}
.news_title {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 0px;
}
.newsitem {
    font-size: .9em;
    min-height: 120px;
    width: 100%;
    border-style:solid;
    border-width: 2px;
    transition: all .25s ease-in-out;
    border-color: rgba(0, 86, 215, 0.6);
    border-width: .2em;

    background-color: rgba(0, 102, 255, 0.107);
    display: inline-block;
    
    color: inherit;
    cursor: pointer;

    box-sizing: border-box;
    display: inline-block;
}
.newsitem > div {
    padding: 15px !important;
}
.newsitem:hover {
    background-color: rgba(0, 183, 255, 0.342);
    box-shadow: 0px 0px 20px rgb(44, 44, 44);
}
.newsitem:active {
    border-color: rgba(90, 90, 90, 0.753);
    color: white;
    background-color: rgba(77, 145, 172, 0.74);
}
.newsitem:focus-visible {
    border-color: rgba(238, 238, 238, 0.753);
    color: white;
    background-color: rgba(77, 145, 172, 0.74);
}
.newsitem img{
  height: 150px;
  float: left;
  margin: 15px;
  margin-left: 0px;
  
  border-radius: .7em;

  width: 20em;
  object-fit: cover;
}
@media screen and (max-width: 768px) {
    .newsitem img{
        height: auto;
        
        width: calc(100% - 40px);
        margin-left: 20px;            
        
        border-radius: .7em;
      }
}

/* Search */
/* Page - Search */
#search-box {
    height: 3em;
    width: 26em;
    max-width: 75vw;
    display: flex;
}
#search-results {
    background-color: rgba(115, 115, 115, 0.5);
    padding: .5em;
    border-radius: 1em;
    min-height: 26em;

    display: flex;
    flex-direction: column;

    width: 100%;
}
#search-wait {
    background-color: rgba(115, 115, 115, 0.5);
    padding: .5em;
    border-radius: 1em;
    min-height: 26em;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#search-wait div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#search-result {
    display: block;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--generic-background);
    color: inherit;

    transition: all .10s ease-in-out;

    overflow: hidden;
}
#search-result:hover {
    box-shadow: 0px 0px 15px rgb(44, 44, 44);
}
#search-result:active {
    transform: scale(0.98);
    transition: all .10s ease-in-out;
}
#search-result-top {
    background-color: var(--generic-background);

    padding-left: 20px;
    border-radius: 1em;

    display: flex;
    align-items: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    margin-bottom: 15px;
}
#search-result-top img {
    margin: 3px;
}
#search-result-bottom img {
    float: left;
    border-radius: 1em;
    margin-right: 1em;

    @media screen and (max-width: 468px) {
        width: 100%;
        margin-top: 1em;
        float: none;
    }
}
#search-result-bottom h3 {
    margin: 0px;
    padding: 0px;
}