* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #60a5fa, #2563eb);
}

.invalid-feedback {
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + .75rem);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}


.navbar {
    position: relative;
    background: #1e293b;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #60a5fa;
    text-decoration: none;
}

    .logo svg {
        width: 24px;
        height: 24px;
    }

.logo-text {
    color: #60a5fa;
    font-size: 1.5rem;
    font-weight: bold;
}

.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
}

    .logout-btn:hover {
        background: #dc2626;
    }

.container {
    max-width: 28rem;
    margin: 2rem auto;
    padding: 0 1rem;
}


.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.input-row {
    display: flex;
    gap: 0.5rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.btn {
    background: #2563eb;
    color: white;
    text-decoration: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn:hover {
        background: #1d4ed8;
    }

.btn-outline {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

    .btn-outline:hover {
        background: #f8fafc;
    }

.btn-ghost {
    background: transparent;
    color: #1f2937;
    width: 100%;
    text-align: left;
    padding: 0.75rem;
}

    .btn-ghost:hover {
        background: #f8fafc;
    }

.divider {
    text-align: center;
    margin: 1rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-gray {
    color: #6b7280;
}

/*.title {
    height: 20%;
}*/

.logout {
    position: fixed;
    right: 10px;
    top: 5px;
    border: 1px solid black;
    border-radius: 5px;
    background-color: rgba(176, 44, 44, 0.92);
    text-decoration: none;
    color: white;
    padding: 5px;
    font-size: 2vw;
}



#button_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}


.row_buttons {
    display: flex;
    flex-direction: row;
    height: 25%;
    width: 100%;
    justify-content: center;
}

.ctrl_button {
    height: 40px;
    aspect-ratio: 1 / 1;
}

.button_img {
    width: 100%;
    height: 100%;
    border-radius: 15%;
}






#selected-name{
    margin: 5px;
}

#help{
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    z-index: 4;
    background-color: rgba(111, 212, 252, 0.5);
    border: 1px solid black;
    border-radius: 100%;
    align-content: center;
    justify-content: center;
    display: grid;
    font-size: 50px;
    cursor: pointer;
}

#help_popout{
    position: fixed;
    bottom: 60px;
    right: 60px;
    z-index: 4;
    /*background-color: rgba(255, 255, 255, 0.8);*/
    background-color: rgba(111, 212, 252, 0.5);
    visibility: hidden;
}

.move {
  animation: move 0.2s linear 1;
}

@keyframes move {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translate(var(--dx), var(--dy));
  }
}


#bullet {
    position: absolute;
    background-image: url("images/bullet.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    z-index: 1;
}


/*
.animatedbox {
    animation: bulletxAxis 2.5s ease-in;
}


.animated {
    animation: bulletyAxis 2.5s ease-out;
}
    

@keyframes bulletxAxis {
  100% {
    animation-timing-function: ease-in;
    transform: translateX(var(--dx));

  }
}

@keyframes bulletyAxis {
  100% {
    animation-timing-function: ease-out;
    /*transform: rotate(90deg) translateY(-300px);
    transform: translateY(var(--dy)) rotate(90deg);
  }
}

*/


.animated {
    transform: rotate(var(--angle));
    animation: bullet_move 1s ease-in;
}

@keyframes bullet_move {
    100% {
        transform: translate(var(--dx), var(--dy)) rotate(var(--angle));
    }
} 