:root {
    --stB: rgb(30, 144, 255);
    --dB: rgb(30,127,255);
    --sft: rgb(132, 182, 248);
    --stW: rgb(250, 250, 250);
    --cW: #fff;
    --stWs: rgb(250,250,250,0.2);
    --stWsB: rgb(250,250,250,0.3);
    --sftB: rgb(45, 45, 45);
    --stByG: rgb(230, 230, 230);
    --stR: rgb(255, 0, 0);
    --dstR: rgb(184, 0, 0);
    --stG: rgb(31, 199, 122);
    --stY: rgb(255, 204, 0);
}

.basS {
    box-shadow: 10px 10px 15px var(--stWs);
}

html {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
}

body {
    width:100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    background-color: var(--stB);
    font-family: Rockwell, Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
}

#overlay {
    display: none;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: 0.5s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

a {
    text-decoration: none;
}

.us {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/*Header*/
header {
    min-height: 15vh;
}

#hLogo {
    font-size: 150%;
    border-radius: 5px;
}

#hLogo:hover {
    color:var(--stW);
    background-color: var(--stB);
}

.nav-item {
    display: none;
}

.navbar {
    background-color: var(--stW)!important;
}

.navbar-light .navbar-toggler-icon {
    background-image: url('../img/menuicon.svg');
    transition: transform 0.3s ease;
}

.navbar-light .navbar-toggler {
    border-color: transparent!important;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler.rotate {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.navbar-toggler.rotate-back {
    transform: rotate(-90deg);
}

.rotate {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.navbar-toggler.rotate-back {
    transform: rotate(-90deg);
}

#headerLoginButton {
    transition: 0.2s;
    background-color: var(--stB);
    color:var(--stW);
    display: none;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-right:50px;
    border-radius: 5px;
    border:none;
}

#accountButton {
    background-color: var(--stB);
    background-image: url(../img/default.svg);
    background-size: cover;
    width:50px;
    height:50px;
    margin-right:50px;
    border: 2px solid var(--stB);
    border-radius: 50%;
    display: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    border-radius: 5px;
    display: block; /* Keep it block but hide with visibility and opacity */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: var(--stW);
    padding: 5px;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    transition: opacity 0.5s ease; /* Only transition opacity */
}

.dropdown-content button {
    border-radius: 5px;
    transition: background-color 0.5s, color 0.5s; /* Specify transitions for background and color */
    color: var(--sftB);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background: none; /* Remove default button background */
    border: none; /* Remove default button border */
    width: 100%; /* Make buttons take full width */
    text-align: left; /* Align text to the left */
    cursor: pointer; /* Change cursor to pointer */
}

.dropdown-content button:hover {
    background-color: var(--sft);
    color: var(--stW);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible; /* Make visible immediately */
    transition-delay: 0s; /* Reset delay for hover */
}

.dropdown:hover .dropdown-content #logoutButton, #logoutButtonSmall {
    display: block;
    cursor: pointer;
}

.dropdown:not(:hover) .dropdown-content {
    opacity: 0;
    visibility: hidden; /* Hide immediately */
    transition-delay: 0s; /* Remove delay for hiding */
}

.dropdown:hover #accountButton {
    transition: margin-right 0.2s ease; /* Smooth transition */
    margin-right: 100px;
}

.dropdown:not(:hover) #accountButton {
    transition: 0.2s; /* Immediate snap back */
    margin-right: 50px;
}

#logoutButton, #logoutButtonSmall {
    color: var(--stR);
}

#logoutButton:hover, #logoutButtonSmall:hover {
    background-color: var(--stR);
    color: var(--stW);
}

/*Big*/
@media (min-width: 992px) {
    .dropdown {
        display: block;
    }

    #accLink, #settingsLink, #logoutButtonSmall {
        display: none;
    }
}
/*small*/
@media (max-width: 991px) {
    #headerLoginButton {
        width:100%;
    }

    .dropdown {
        display: none;
    }

    #accLink, #settingsLink, #logoutButtonSmall {
        transition:0.2s;
        border-radius: 5px;
        padding: .5rem 1rem!important;
        display: block;
        width:100%;
    }

    #accLink:hover, #settingsLink:hover {
        color:var(--stW);
        background-color: var(--sft);
    }
}

@media (max-width: 575.98px) {
    main {
        padding: 2%;
        padding-left:10px!important;
        padding-right:10px!important;
    }
  }

/*Header*/

main {
    min-height: 70vh;
    padding: 2%;
    padding-left:10%;
    padding-right:10%;
}

/*Footer*/
footer {
    background-color: var(--stW);
    padding: 20px 0;
    min-height: 15vh;
    color: var(--sftB)
}

footer a {
    color:var(--sftB)
}

.footer {
    background-color: #343a40;
    color: var(--stW);
    padding: 40px 0;
}
.footer a {
    color: var(--stW);
}
.footer a:hover {
    color: #d1d1d1;
}

.social-icons {
    list-style-type: none;
    padding: 0;
    margin-bottom: 0;
}
.social-icons a {
    padding: 0;
    margin-right:5px;
    transition: 0.25s;
    color: var(--sftB);
    display: block;
    text-align: center;
}
.social-icons a:hover {
    color: #d1d1d1;
}
.social-icons li {
    width:min-content;
    margin-right:5px;
    margin-bottom: 10px;
}

.bi-info-circle-fill {
    color:var(--stB);
}

.feedback-error {
  background: var(--stR);
  color: #fff;
  border-radius: 12px;
  padding: 1em 1.5em;
  margin: 1em 0;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
} 