body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-size: 2.5em;
    font-family: 'Courier New', Courier, monospace;
    height: 100dvh;
    
    
}
button{
    font-family: 'Courier New', Courier, monospace;
    background-color: #E0E0E0; /* Light grey for the button face */
  color: #000;
  border: 1px solid #333; /* Dark border to define the shape */
  border-bottom-width: 3px; /* Extra weight on the bottom border */
  border-right-width: 3px; /* Extra weight on the right border */
  padding: 5px 10px;
  cursor: pointer;
  text-transform: uppercase;
}
button:active{
    background-color: #CCC; /* Darken the background */
  border-bottom-width: 1px; /* Remove the heavy bottom border */
  border-right-width: 1px; /* Remove the heavy right border */
  transform: translateY(2px); /* Shift the button down 2px */
}

main.pda {
    color: black;
    height: 80vh;
    width: 100vw;
    position: fixed;
    top: 5vh;
    left: 0;

    border: 5px solid #000;
    border-radius: 50px;
    box-shadow:inset 0 0 10px #777;

    overflow: hidden;
    box-sizing: border-box;
    
}

.statusbar{
    background-color: black;
    color: white;
    z-index: 11;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 0.4em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.statusbar span{
    padding:3px 40px 3px 40px;
}

.view {
    box-shadow:inset 0 0 10px #777;
    position: absolute;
    left: 0;
    top: 0;
    height:100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #A9BCA9;
    transition:transform 0.2s ease-in-out;
    
}

.home-view {
justify-content: space-between;
transform: translateY(0);
z-index: 0;
}

.inventory-view{
    z-index: 1;
    transform: translateY(100%);
    align-items: flex-start;
}

.drops-view{
        z-index: 1;
    transform: translateY(100%);
}

.team-selection-view{
    z-index: 2;
    transform: translateY(100%);
    justify-content: center;
    gap: 20px;
}

#drop-timer {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5vh;

}

.team-selection-header{
    font-size: 0.8em;
    margin-bottom: 20px;
}

.team-selection-view button{
    font-size: 1em;
}

.action {
    margin: 10px;
    padding: 10px;
    min-width: 30vw;
    min-height: 30vw;
    font-size: 0.5em;
}

.scores {
    display: flex;
    flex-direction: row;
    gap: 5vw;
    margin-bottom: 10px;
}

.team-score{
    font-size: 0.8em;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
}

#team2-score{
    text-align: right;
}

.close{
    font-family: sans-serif;
    position: absolute;
    right: 20px;
    top: 30px;
    font-size: 1em;
    height: 15vw;
    width: 15vw;
    background: none;
    border: none;
}
.close:active{
    background: none;
}

h1{
    font-size: 1.5em;
}

#inventory-stats{
    font-size: 0.6em;
    margin-top: 50px;
    margin-left: 10%;
    width: 75%;
}

#inventory-container{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100vw;
    height: calc(100vw + 1px);
    overflow: hidden;
    box-sizing: border-box;
    background-size: 50vw 50vw;
      background-image: linear-gradient(to right, grey 1px, transparent 1px),
                    linear-gradient(to bottom, grey 1px, transparent 1px);
}

.inventory-item{
    font-size: 0.5em;
    background-color: #ccc;
    margin: 5vw;
    width: 40vw;
    height: 40vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    border: 1px gray dashed;
    border-radius: 5px;
}

.inventory-item p{
    margin-bottom:5px;
    margin-top:5px;
}

.inventory-item-challenge{
    width: 80%;
    font-size: 0.8em;
}

.inventory-item-title::after{
    content: '🎁';
    display: block;
}

.inventory-item :not(:first-child){
    display:none
}

.inventory-item-lock-button{
    margin-top: auto;
    margin-bottom: 10px;
    display: none;
}

.drops{
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    padding-bottom: 50px;
    padding-left: 5%;
    padding-right: 5%;
    gap: 5vh;
    width: 90vw;
}

.drop-wrapper{
    border: 2px solid black;
    padding: 2vw;
    font-size: 0.7em;
}


.drop-title{
    font-weight: bold;
}

.drop-age{
    font-size: 0.5em;
    text-align: right;
}

.drop-locations{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.8em;
}

.drop-line{
    background-image: repeating-linear-gradient(to right, black, black 8px, transparent 8px, transparent 14px);
    flex-grow: 1;
    height: 3px;
    margin: 0.5em 0.25em 0.25em 0.25em;
}

.loader {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      position: absolute;
      top: 40%;
      left: 44%;
      animation: rotate 1s linear infinite;
      display: none;
      
    }
    .loader::before {
      content: "";
      box-sizing: border-box;
      position: absolute;
      inset: 0px;
      border-radius: 50%;
      border: 5px solid #FFF;
      animation: prixClipFix 2s linear infinite ;
    }

    @keyframes rotate {
      100%   {transform: rotate(360deg)}
    }

    @keyframes prixClipFix {
        0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
        25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
        50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
        75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
        100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
    }

.drop-challenge{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid black;
    padding: 20px;
    font-size: 0.5em;
}