@font-face {
    font-family: "Comic";
    src: url('Trashhand.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

@font-face {
    font-family: "Poppins";
    src: url('coolvetica-rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
  }

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 16px; /* Adjusted for smaller screens */
    color: #010101;
    background-color: #ffffff;
    font-family: "Poppins", sans-serif;
}

h1 {
    font-family: "Comic";
    font-weight: normal;
    font-style: normal;
    font-size: 3rem;
    -webkit-text-stroke: 3px black;
    text-stroke: 3px black;
}

.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.navbar-logo {
    display: flex; /* Ensure flex properties apply to children */
    align-items: center; /* Center items vertically */
    gap: 1rem;
    size: 50px;
}
.introduction {
    font-family: "Comic";

}

p {
    color: #010101;
    padding: 0 16px;
    font-size: 13px; /* Slightly adjusted for readability on small screens */
    line-height: 20px;
}

.selectors-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
    padding: 20px; 
    background-color: #010101; 
    border-radius: 8px; 
    margin-bottom: 20px;
}

select {
    border: 1px solid #ffffff;
}

select:focus {
    background-color: #f3eeea; /* Light grey background when active */
    color: #010101; /* Darker text for better visibility */
    outline: none; /* Removes the default focus outline to use only the styles defined */
}

.select-container {
    width: 100%; /* Full width for better touch targets on small screens */
    padding: px 0; /* Adjust padding */
}

.select-container-head {
    display: none; /* Head selector remains hidden */
}

label {
    font-family: "Poppins";
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 16px;
    text-transform: uppercase;
    color: #ffffff;
}

.randomizeBtn, .resetBtn {
    width: 100%;
    background-color: transparent;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #010101;
    border: 3px solid #010101;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
}

select {
    width: 100%;
    background-color: #010101;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

.downloadBtn {
    width: 100%;
    background-color: #010101;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #fff;
    border: 3px solid #010101;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

.downloadBtn:hover , .randomizeBtn:hover, .resetBtn:hover {
    background-color: #f97871;
    color: #fff;
    border: 3px solid #f97871;
    transition: background-color 0.2s ease-in-out, border 0.2 ease-in-out, 0.2s ease-in-out;
}

#avatarCanvas {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 500px;
    max-height: 500px;
    border-radius: 8px;
    border: 5px solid #010101;
    overflow: hidden;
}

@media (min-width: 768px) {
    .selectors-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns for medium screens like tablets */
        
    }

    .select-container {
        padding: 0 4px; /* Restore padding */
    }

    #avatarCanvas {
        width: 100%; /* Fixed size for larger screens */
        height: auto;
    }

    .navbar-logo img {
        height: 50px; /* Restore original size */
    }

    p {
        font-size: 14px; /* Restore original font size */
        line-height: 21px;
    }
}

