@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #FFF;
    --main-color: #00ff33;
    --footer-text-color: #6b7078;
}

body {
    position: relative;
}

.project-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 10rem 9%;
}

.dartboard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    height: 0;
    overflow: hidden;
}

.dartboard-container.active {
    opacity: 1;
    transform: translateY(0);
    height: auto;
}

.player-container {
    transition: transform 0.5s ease;
}

.player-label {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--text-color);
}

.styled-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1.6rem;
    border: 0.1rem solid var(--bg-color);
    border-radius: 1rem;
    background-color: var(--second-bg-color);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

.styled-input:focus {
    border-color: var(--highlight-color);
}

.player-box {
    position: relative;
    flex: 1 1 45%;
    max-width: 50vw;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: 0.5s;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.dart-icons-container {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
}

.dart-icon {
    width: 3rem;
    height: 3rem;
}


.player-info {
    width: 100%;
}


@keyframes blurIn {
    0% {
        filter: blur(10px);
    }

    100% {
        filter: blur(0px);
    }
}


@keyframes blurInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
        filter: blur(0px);
    }
}

@keyframes moveDown {
    0% {
        transform: translateY(-49px);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.first-throw h3,
.first-throw h4,
.first-throw p,
.first-throw .dart-icons-container,
.first-throw .score-list {
    animation: blurInLeft 0.7s ease forwards;
}


/* Apply individual delays for staggered effect */
.first-throw h3 {
    animation-delay: 0s;
}

.first-throw h4 {
    opacity: 0;
    animation-delay: 0.1s;
}

.first-throw p {
    opacity: 0;
    animation-delay: 0.2s;
}


.first-throw .score-list {
    opacity: 0;
    animation-delay: 0.2s;
}

.player-container .player-box:first-child .score-list li {
    transform: translateY(-49px);
    animation: moveDown 0.7s ease forwards;
}

@keyframes scaleBlurIn {
    0% {
        opacity: 0;
        transform: scale(1.5);
        filter: blur(2px);
    }

    50% {
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.player-container .player-box:first-child .score-container {
    display: inline-block;
    animation: scaleBlurIn 0.7s ease forwards;
    transform-origin: center;
}

.player-box h3 {
    font-size: 2.6rem;
}

.player-box h4 {
    font-size: 2rem;
}

.player-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

.player-box .score-list {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0 0;
    font-size: 1.6rem;
    text-align: center;
    height: 17rem;
    overflow-y: auto;
}


.player-box .score-list li {
    background: var(--bg-color);
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: 1rem;
    border: 0.1rem solid var(--second-bg-color);
}

/* Add a scrollbar style to match the theme */
.player-box .score-list::-webkit-scrollbar {
    width: 0.6rem;
}

.player-box .score-list::-webkit-scrollbar-thumb {
    background-color: var(--bg-color);
    border-radius: 1rem;
}

.player-box .score-list::-webkit-scrollbar-track {
    background: var(--second-bg-color);
}

.remove-player {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    transition: .5s ease;
    opacity: 1;
    pointer-events: auto;
}

.btn {
    flex: 1 1 45%;
    width: fit-content;
    max-height: 5rem;
    min-width: 26vw;
}

.btn i {
    font-size: 3rem;
}

.remove-player:hover {
    transition: .2s ease;
    transform: scale(1.2);
}

.remove-player i {
    font-size: 3rem;
    color: var(--main-color);
}

.player-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.player-container .player-box:hover {
    border-color: var(--main-color);
    transition: 0.5s;
}

.dartboard {
    /* border: .1rem solid var(--main-color);
    box-shadow: 0 0 2rem var(--main-color); */
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.about-images {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    padding: 6rem 6rem;
    background: var(--bg-color);
    border-radius: 3rem;

}

.worley-container {
    display: flex;
    z-index: -1;
    justify-content: center;
    flex-shrink: 0;
}


.about-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 10rem 10vw 10rem;
    background: var(--second-bg-color);
    flex-grow: 1;
    flex-wrap: wrap;
}

.about-images img {
    border-radius: 1.5rem;
    width: 30vw;
}

.footer {
    background-color: var(--bg-color);
}

@media (max-width: 850px) {

    .about-project {
        padding: 10rem 3vw 10rem;
    }

    .about-images {
        flex-direction: column;
    }

    .about-images img {
        width: 70vw;
    }

    .player-container {
        flex-direction: column;
    }

    .player-box {
        flex: 1 1 100%;
        max-width: none;
        min-width: 100%;
    }

    .buttons-container {
        flex-direction: column;
        gap: 4vw;
    }

    .btn {
        width: 100%;
    }

}

@media (max-width: 650px) {

    .buttons-container {
        gap: 4vw;
    }


}


@media (max-width: 600px) {

    .about-project {
        padding: 10rem 0vw 10rem;
    }

    .about-content {
        margin: 0vw 5vw;
    }


    .about-images {
        width: 100%;
    }
}