* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f5f5f5;
    overflow: hidden;
}

body, header{
    overflow: hidden;
}

header {
    position: relative; /* or 'fixed', depending on your design */
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    padding: 10px;
    background-color: white;
    color: white;
    display: flex;
    align-items: center;
    z-index: -10;
}

.menu-icon {
    color: black;
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
}

.header-title {
    font-size: 18px;
    color: black;
}

main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* flex-grow: 1; */
    width: 100%;
    height: 93vh; 
    background-color: #f5f5f5;
    overflow: hidden;
}

button {
    background-color: transparent;
    border: 2px solid black;
    border-radius: 15px;
    transition: background-color 0.3s;
    padding: 0.5em 0.75em;
    /* Padding relative to font size */
    font-size: 1.2rem;
    /* Base font size */
}

/* Medium screen size adjustments (e.g., tablets) */
@media (min-width: 600px) {
    button {
        font-size: 1.3rem;
        /* Increase font size */
        padding: 0.75em 1.5em;
        /* Increase padding */
    }
}

/* Large screen size adjustments (e.g., desktops) */
@media (min-width: 1024px) {
    button {
        font-size: 1.5rem;
        /* Further increase font size */
        padding: 1em 2em;
        /* Further increase padding */
        max-width: 300px;
        /* Set a maximum width */
    }
}

button:hover {
    background-color: black;
    color: white;
}

button:disabled {
    opacity: 20%;
}

.form {
    display: flex;
    min-width: 300px;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form input, .form select {
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#title-image {
    /* width: 100%; */
    max-width: 50%;
    filter: grayscale(.85);
    opacity: 0%;
    margin-top: -50px;
    animation: fade 5s 0s 1 ease-in forwards;
}

@keyframes fade {
    0% {
        opacity: 0%;
        transform: scale(90%);
    }

    50% {
        opacity: 5%;
        transform: scale(92%)
    }

    100% {
        opacity: 100%;
        transform: scale(110%);

    }
}

#game-title {
    position: relative;
    /* -webkit-text-stroke: 3px black; */
    font-family: "Nerko One", cursive;
    /* font-family: "Poppins", sans-serif; */
    font-size: 2rem;
    color: transparent;
}

#game-title::before {
    content: attr(data-fill-text);
    position: absolute;
    width: 0%;
    height: 100%;
    color: black;
    -webkit-text-stroke: 0px transparent;
    overflow: hidden;
    /* transition: width 1.8s cubic-bezier(0.165,0.84,0.44,1); */
    animation: fill-color 1s 0.5s 1 forwards;
}

@keyframes fill-color {
    from {
        width: 0%;
    }

    to {
        /* font-size: 15px; */
        width: 100%;
    }
}

#auth-container, #buttons-container, #title-container {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center align buttons horizontally */
    justify-content: center;
    /* Center align buttons vertically within the container */
    gap: 20px;
    /* Adds space between buttons */
}

#auth-container {
    margin-top: 50px;
}

#buttons-container {
    width: 50%;
    overflow: hidden;
}

#signInButton, #registerButton, .gameButton {
    font-family: "Poppins", sans-serif;
    min-width: 100%;
    border: 2px solid black;
    border-radius: 10px;
    transform: translateX(-200%);
    color: black;
    background-color: transparent;
    cursor: pointer;
    text-align: center;
    animation: slidein 1.5s 1.5s 1 forwards;
    transition: background-color 0.3s;
}

#version-number{
    opacity: 0;
    animation: v-fade 1.5s 3.5s 1 forwards;
}

@keyframes v-fade {
    0% {
        opacity: 0%;
    }
    100% {
      opacity: 100%;
    }
}

#signInButton:hover, #registerButton:hover, .gameButton:hover {
    background-color: black;
    color: white;
}

@keyframes slidein {
    from {
        opacity: 0%;
        transform: translateX(-200%);
    }

    to {
        opacity: 100%;
        transform: translateX(0%);
    }
}

#challenge-container,
#welcome-message {
    display: none;
    font-family: 'Dancing Script', cursive;
    text-align: center;
    margin-top: 100px;

    /* Ensure these elements start hidden */
}

#login-form,
#registration-form{
    overflow-y: auto;
}

#welcome-message {
    margin-top: 200px;
}

#player-details-message {
    display: flex;
    flex-direction: column;
    font-family: 'Nerko One', cursive;
}

#registration-success-popup {
    position: fixed;
    width:40%;
    top: 50%;
    left: 30%;
    transform: translate(0%, -50%);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
}

@media (max-width: 600px) {
    #registration-success-popup {
        position: fixed;
        width:70%;
        top: 50%;
        left: 15%;
        transform: translate(0%, -50%);
    }
}

#registration-success-popup p {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    border-radius: 20px;
    color: white;
    margin-bottom: 20px;
    border: none;
    cursor: pointer;
}

#registration-success-popup button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

#registration-success-popup button:hover {
    background-color: #45a049;
}



#tree-view-container {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#tree-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    border-bottom: 2px solid white;
    z-index: 10;
}

#tree-toggle-container button {
    margin: 7px;
    /* padding: 10px; */
    border: 1px solid white;
    border-radius: 15px;
    cursor: pointer;
}

.tree-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex;
    justify-content: flex-start;
}
