@media (prefers-color-scheme: dark) {
      :root {
        --blur: rgba(24, 33, 41, 0.72);
        --iconInve: 100%;
      }
}

@media (prefers-color-scheme: light) {
    :root {
        --blur: rgba(250, 250, 250, 0.72);
        --iconInve: 0%;
    }
}

nav,
article,
.pcaa-window,
.pcaa-window-card-head,
.pcaa-dialog,
#pcaa-snackbar{
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: var(--blur);
}
nav{
    padding: 1em;
    padding-left: 3em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    height: 2.5em;
    z-index: 999;
}
nav details{
    margin: 0;
}
button,
details,
summary,
input,
select,
textarea,
.pcaa-hoverable{
    border-radius: 0.5em;
}

.container{
    padding-top: 1em;
}

.pcaa-subnav{
    height: 2em;
    z-index: 99;
    position: sticky;
    top: 2.5em;
    padding: 0;
    font-size: 1em;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 0.1em;
    border-top: 2px solid rgba(125, 125, 125, 0.1);
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 3em;
    padding-right: 3em;
}
.pcaa-subnav small{
    margin: 0;
    padding: 0;
    padding-bottom: 0.2em;
    white-space:nowrap;
}
.pcaa-topfixed{
    position: sticky;
    top: 0;
}
.pcaa-bottomfixed{
    position: sticky;
    bottom: 0;
}
hr{
    border: 1px solid rgba(125, 125, 125, 0.1);
}
.pcaa-list hr{
    margin: 0;
    margin-left: 1.5em;
    margin-right: 1.5em;
    border: 1px solid rgba(125, 125, 125, 0.1);
}
.pcaa-list-item{
    margin: 0;
    height: 5em;
    display: flex;
    align-items: center;
    padding: 1em;
    border-radius: 1em;
    transition: all 0.3s ease-in-out;
    overflow: none;
}
.pcaa-list-item:hover{
    background-color: rgba(125, 125, 125, 0.1);
}
.pcaa-list-item-icon{
    position: relative;
    min-width: 3.5em;
    margin: 1em;
    margin-left: 0;
    height: 3.5em;
    width: 3.5em;
}
.pcaa-list-item-icon img{
    position: absolute;
    max-height: 3.5em;
    max-width: 3.5em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    transition: all 0.3s ease-in-out;
    z-index: 89;
}
.pcaa-list-item-icon .img{
    border-radius: 2px;
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.4);
    overflow:hidden;
}
.pcaa-list-item-icon .img:hover{
    max-height: 17.5em;
    max-width: 17.5em;
    transform: translate(-30%, -50%);
    box-shadow: 0px 10px 30px 5px rgba(0,0,0,0.4);
    border-radius: 20px;
    z-index: 999;
}
.pcaa-list-item-title{
    position: sticky;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: center;
    word-break : break-all;
}
.pcaa-list-item-title p{
    margin: 0;
}
.pcaa-list-item-subtitle{
    opacity: 0.5;
    margin: 0;
    font-size: 0.8em;
}
.pcaa-list-item-end{
    margin-left: auto;
}
.pcaa-hoverable{
    padding: 0.3em;
    transition: all 0.3s ease-in-out;
}
.pcaa-hoverable:hover{
    background-color: rgba(125, 125, 125, 0.2);
}
.pcaa-dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9998;
  opacity: 0;
  -webkit-transition: opacity 200ms ease-in-out;
  -moz-transition: opacity 200ms ease-in-out;
  transition: opacity 200ms ease-in-out;
  pointer-events: none;
  background-color: rgba(100, 100, 100, 0.2);
}
.pcaa-dialog:target {
  opacity: 1;
  pointer-events: auto;
}
.pcaa-dialog-card{
  width: 95vw;
  max-width: 800px;
  padding: 50px;
  padding-top: 50px;
  position: relative;
  margin: 10% auto;
  margin-top: 10vh;
  color: var(--text);
  border: 3px solid rgba(136, 132, 132, 0.3);
  border-radius: 1.5em;
  height:75vh;
  overflow: auto;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--blur);

}
.pcaa-dialog-card-head{
  padding-bottom: 20px;
  text-align: center;  
  font-weight: bold;
}
.pcaa-dialog-card-head a{
  margin: 0;
  float: right;
}
.pcaa-dialog p b{
  margin-bottom: 5px;
}

.pcaa-window {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9998;
  opacity: 0;
  -webkit-transition: opacity 200ms ease-in-out;
  -moz-transition: opacity 200ms ease-in-out;
  transition: opacity 200ms ease-in-out;
  pointer-events: none;

}
.pcaa-window:target {
  opacity: 1;
  pointer-events: auto;
}
.pcaa-window-card {
  width: 100vw;
  padding: 1em;
  padding-top: 0;
  position: relative;
  color: var(--text);
  border-radius: 1.5em;
  height:100vh;
  overflow: auto;
}
.pcaa-window-card-head{
  margin-top: 0;
  text-align: center;  
  font-weight: bold;
  z-index: 99;
  padding-top: 10px;
}
.pcaa-window-card-head a{
  margin: 0;
  float: right;
  margin-right: 1em;
  margin-left: -1em;
}
.pcaa-window-card-head h6{
  margin-left: 1.1em;
}
.pcaa-window p b{
  margin-bottom: 5px;
}

.pcaa-icon{
    filter: invert(var(--iconInve));
    transition: all .3s;
    opacity: .5;
}
.pcaa-icon:hover{
    opacity: .8;
}

#pcaa-snackbar{
  visibility: hidden;
  min-width: 250px;
  text-align: center;
  padding: 0.5em;
  position: fixed;
  z-index: 9999;
  right: 2em;
  top: 2em;
  border: 3px solid rgba(125, 125, 125, 0.3);
  border-radius: 0.8em;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
  font-weight: bold;
  padding-left: 1em;
  padding-right: 1em;
}
#pcaa-snackbar a{
    margin-left: 1em;
    font-weight: normal;
}
#pcaa-snackbar.show{
  visibility: visible;
  animation: pcaa-snackbar-fadein 0.5s, pcaa-snackbar-fadeout 0.5s 2.8s;
}
@keyframes pcaa-snackbar-fadein{
  from {
    top: -5em;
    opacity: 0;
  }
  to {
    top: 2em;
    opacity: 1;
  }
}
@keyframes pcaa-snackbar-fadeout {
  from {
    top: 2em;
    opacity: 1;
  }
  to {
    top: -5em;
    opacity: 0;
  }
}

.pcaa-flex-row {
    display: flex;
    height: 100%;
}

.pcaa-flex-row-30 {
    width: 30%;
    padding: 1em;
    height: 100%;
    border: 5px solid rgba(125, 125, 125, 0.2);
    border-radius: 1.5em;
}

.pcaa-flex-row-70 {
    position: relative;
    width: 70%;
    height: 96%;
    padding: 10px;
    margin-right: 1em;
}
.pcaa-flex-row-img{
    position: absolute;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.4);
}

@media screen and (max-width: 576px){
    nav{
        padding-left: 1em;
    }
    .pcaa-subnav{
        padding-left: 1em;
        padding-right: 1em;
    }
    .pcaa-dialog-card {
        padding: 10px;
        border: none;
    }
    .pcaa-dialog-card-head{
        text-align: left; 
    }
    .pcaa-window-card{
        padding: 1em;
        padding-top: 0;
    }
    #pcaa-snackbar{
        width: 90vw;
        margin: 0 auto;
        border-radius: 0.8em;
        right: 1.5em;
    }

    .pcaa-list-item-icon .img:hover{
        border-radius: 2px;
        box-shadow: 0px 5px 15px 0px rgba(0,0,0,0.4);
        transform: translate(-50%, -50%);
        overflow:hidden;
        z-index: 89;
        max-width: 3.5em;
        max-height: 3.5em;
    }
    .pcaa-flex-row {
        flex-direction: column;
    }

      .pcaa-flex-row-30 {
        width: 100%;
        height: auto;
        border: none;
    }

      .pcaa-flex-row-70 {
        width: 100%;
        height: 100vh;
        min-height:300px;
        margin-right: 0;
    }
}

@media (min-width:576px){
    .grid{grid-template-columns:repeat(auto-fit,minmax(0%,1fr))}
    .grid>*{min-width:0}
}