* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a2e;
    color: white;
}

header {
    background-color: #16213e;
    padding: 20px;
    text-align: center;
    position: relative;
}
.header {
   
    margin: 0;
    padding: 0;
    width: 40px; 
    height: auto;
}

.header-icons {
    position: absolute;
    top: 25px; 
    right: 25px; 
    display: flex;
    gap: 30px; 
    margin: 0;
    padding: 0;
}

.header-icons img {
    width: 30px; 
    height: auto; /* Keeps aspect ratio intact */
}


.kong-id-input {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #e94560;
    color: #e94560;
    background-color: transparent;
}

.kong-id-input::placeholder {
    color: #e94560;
}

.kong-id-input:focus {
    outline: none;
    border-color: #c0392b;
}
 

.header-content h1 {
    color: #e94560;
    font-size: 36px;
}



main {
    text-align: center;
    margin: 20px;
}

main h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #e94560;
}

.kong-selection {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.kong {
    display: flex;
    flex-direction: column;
    align-items: center; /* This will center the children elements (like .kong-image) horizontally */
    justify-content: center; /* This will center the children elements (like .kong-image) vertically */
    text-align: center;
    background-color: #0f3460;
    padding: 20px;
    
    border-radius: 8px;
    
    max-width: 425px; /* Limit the maximum size */
    width: 100%; /* Make the width responsive */
    margin: 10px;
}

.kong button {
    background-color: #e94560;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

.kong button:hover {
    background-color: #c0392b;
}

#calculate-team-total-button {
    padding: 15px 30px;
    background-color: #e94560; 
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

#calculate-team-total-button:hover {
    background-color: #c0392b; 
}

.kong-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    width: 350px;
    height: 350px;
    border-radius: 4px;
    margin-bottom: 20px;
    background-image: url('kongCover.avif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.kong-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps aspect ratio of the image */
    margin: auto;
}


.boosts p {
    margin: 10px 0;
}



footer {
    background-color: #16213e;
    padding: 20px;
}

.team-boosts h3 {
    margin-bottom: 10px;
    font-size: 24px;
}


.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: cover;
}


/* Responsive design */
@media (max-width: 768px) {
    .kong-selection {
        flex-direction: column;
        align-items: center;
    }

    .kong {
        width: 80%;
        margin-bottom: 20px;
    }

    .header-icons {
        right: 10px;
        top: 10px;
    }
}


/* Styles for Add and Remove Team Buttons */
#add-team-button, #remove-team-button {
    padding: 15px 30px;
    background-color: #e94560; 
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

#add-team-button:hover, #remove-team-button:hover {
    background-color: #c0392b; 
}

/* Styles for the Teams Chart */
#teams-chart {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ddd;
    text-align: left;
    padding: 8px;
}


#teamsChartCanvas {
    width: 100%;
    max-width: 800px; 
    height: 400px; 
    margin: auto;
}


.contact-link {
    position: absolute;
    top: 20px;
    left: 20px;
}

.contact-link a {
    color: #e94560; 
    text-decoration: none;
    font-size: 18px;
}

.header-links {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px; 
}

.header-links a {
    color: #e94560; 
    text-decoration: none;
    font-size: 18px;
}

.header-links a:hover {
    text-decoration: underline;
}

/* Style for the Description section in the footer */
.description {
    text-align: center;
    padding: 20px;
    background-color: #16213e;
    color: white;
    margin-top: 200px;
}

.description h3 {
    margin-bottom: 20px; 
}



/* Style for the Contact Me section in the footer */
.contact-me {
    text-align: center;
    padding: 20px;
    background-color: #16213e; 
    color: white;
}

.contact-me a {
    color: #e94560; 
    text-decoration: none;
}

.contact-me a:hover {
    text-decoration: underline;
}


.contact-me h3 {
    margin-bottom: 20px; }


/* Adjustments for smaller screens */
@media (max-width: 768px) {
    header {
        /* Increase the height of the header for more space */
        padding: 40px 20px;
    }

    .header-content h1 {
        /* Reduce the font size of the title */
        font-size: 24px;
    }

    .header-links {
        /* Reposition or resize the header links */
        position: absolute;
        top: 10px;
        left: 20px;
        font-size: 14px;
    }

    .header-icons {
        /* Adjust the position of the icons */
        position: absolute;
        top: 10px;
        right: 20px;
        gap: 15px;
    }

    .header-icons img {
        /* Optionally, reduce the size of the icons */
        width: 20px;
    }

    /* Any additional adjustments for other elements */
}