* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: 0;
}

body, button, a {
    -webkit-tap-highlight-color: transparent;
  }

body, html {
    overflow: hidden;
    font-family: Arial, sans-serif;
    height: 100%;
    background-color: #1c1c1c;
}



.main-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* semi-transparent black */
    z-index: 1999;
    display: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }



.container {
    display: flex;
    flex-direction: column;
    width: 100%;
}


header, footer {

    background-color: #1c1c1c;
    padding: 1rem;
    flex-shrink: 0;
}


header {
    color: rgba(255, 255, 255, 0.8);
    height: max(min(10vh, 10vw),50px);
    text-align: center;
    font-size: min(3vw,3vh);
  }
  
footer {
    display: flex;
    flex-direction: row;
    height: max(min(10vh, 5vw),30px);
    text-align: left;
    color:#8893dcd8;
    font-size: min(3vw,3vh);
    padding-bottom: 140px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    min-height: 0;
    align-items: center;
}

.card {
    cursor: pointer;
    background-color: #4a5287;
    flex: 1;
    padding: 15px;
    border-radius: 8px;

    border: 3px solid #8893dcd8;
    /*box-shadow: 0 2px 5px rgba(255, 255, 255, 0.353);*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    filter: brightness(1.5);
    transform: scale(1.02);
}
.card img {
    width: min(10vw,10vh);
    height: auto;
    margin-bottom: 10px;
}

.card p {
    font-size: min(7vw, 4.3vh);
    color: rgba(255, 255, 255, 0.8);
}

.circle-btn {
    position: fixed;
    
    width: min(15vw, 15vh);
    height: min(15vw, 15vh);

    border-radius: 50%;
    color: rgb(0, 0, 0);
    /*border: none;*/
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    z-index: 9999;
    
    font-size: min(10vw, 10vh);
    padding: 5px;
}

.top-right {
    top: 10px;
    right: 10px;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
}


.circle-btn {
    transition: transform 0.3s ease, background-color 0.3s ease;    
}


.circle-btn.bottom-right{
    animation: pulse 1s ease-in-out 10;
}

.circle-btn:hover {
    transform: scale(1.1);
}

.dropdown-container {
    position: fixed;
    display: none;
    background-color: rgba(255, 0, 0, 0);
    padding: 10px;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.dropdown-menu {
    background-color: #242b56;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 2px solid #828dd49a;
}

.dropdown-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    cursor: pointer;
}

.dropdown-header {
    background-color: #3f4b99c9;
    color: rgba(255, 255, 255, 0.61);
    padding-top: min(2vw,2vh);
    padding-bottom: min(2vw,2vh);
    cursor: pointer;
    font-size: min(6vh,6vw);
    display: flex;
    filter: brightness(1.5);

    padding-left: min(3vw,3vh);
    padding-right: min(3vw,3vh);
    gap: 20px;

    justify-content: space-between;
/*   text-align: center;*/
 /*   justify-items: center;*/
    align-items: center;
    /*align-self: center;*/
}

.dropdown-item {
    text-align: left;
    padding-top: min(2vw,2vh);
    padding-bottom: min(2vw,2vh);
    cursor: pointer;
    font-size: min(5.5vh,5.5vw);
    padding-left: min(3vw,3vh);
    padding-right: min(3vw,3vh);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: max(min(1vw,1vh,0px),2px);
    
}

.dropdown-item:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.447);
}

.top-right + .dropdown-container {
    top: 10px; 
    right: 10px;
}

.bottom-right + .dropdown-container {
    bottom: 10px;
    right: 10px;
}

@media (max-width: 9000px) {
    header {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    footer {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .card {
        padding: 10px;
        width: 65%;
    }
    
    .card img {
        width: 15vw;
        height: auto;
    }

    .dropdown-container {
        padding: 10px;
    }

    .dropdown-menu {
        width: auto;
    }
}

@media (orientation: landscape) {
    main {
        flex-direction: row; /* Horizontal alignment in landscape */
        justify-content: center; /* Center cards horizontally */
        align-items: stretch; /* Ensure cards stretch vertically */
        padding: 10px;
    }
    
    .card {
        width: 30%; /* Adjust width for 3 cards side by side */
        margin: 0 5px; /* Small gap between cards */
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    main {
        padding: 10px;
        gap: 5px;
    }

    header {
        padding-bottom: 30px;
    }
    
    .card {
        padding: 8px;
    }
    
    .card img {
        width: 10vw;
        height: auto;
    }
    .card p {
        font-size: 20px;
    }
    
    .card.small-height img {
        display: none;
    }
    
    .card.small-height p {
        font-size: 20px;
    }
}



.alert{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    background-color: var(--color-panel-invbk);
    transform: translate(-50%, -50%);
    z-index: 9999;
    color:var(--color-panel-btn-bkg);
    text-align: center;
}

.alert p {
  padding-bottom: 10px;
}

.close-btn {
  cursor: pointer;
}

.popupbtn {
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.popupbtn:hover {
    background-color: rgba(255, 255, 255, 0.447);
    transform: scale(1.1);
}
  

@keyframes dropIn {
    from {
      transform: scale(1.2);
      opacity: 0;
    }
    to {
      transform: scale(1.0);
      opacity: 1;
    }
  }



@keyframes pulse {
    0%, 100% {
      transform: scale(1);
      filter:hue-rotate(-5deg);
    }
    50% {
      transform: scale(1.2);
      filter: hue-rotate(5deg);
    }
  }
  