body, html {
    height: 100%;
    margin: 0;
    background: linear-gradient(to right, rgb(110, 0, 110), rgb(180, 0, 180),rgb(255, 0, 255));
}
.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}
.innerContainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    max-width: fit-content;
}
.box {
    width: 100px;
    height: 100px;
    background-color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 10px;
    font-weight: bold;
    border: 3px solid white;
    color: white;
}
.navbar {
    background-color: black;
    color: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content:center;
}
.start{
    margin-right:10px;
    position: absolute;
    top: 22px;
    right:20px;
}
.start button{
    background-color: transparent;
    border: 0px;
    font-size: 1.5rem;
    background: linear-gradient(to right, rgb(110, 0, 110), rgb(180, 0, 180), rgb(255, 0, 255));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.start button:hover{
    cursor: pointer;
    opacity: 0.9;
}
h1 {
    margin: 0px;
    font-size: 2rem;
}
.navbar img {
    width: 50px;
    height: 50px;
    margin-right: 5px;
}
.article {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 10px;
    width: 280px;
    margin: 0px;
    margin-left: 20px;
}
.scorecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    width: 280px;
    background-color: black;
    color: white;
    border-radius: 10px;
    border: 3px solid white;
    margin-right: 20px;
    margin-left: 20px;
}
.scorecard h1{
    justify-self: flex-start;
}
.scorecard h2 {
    display: inline-block;
    margin: 5px;
    text-align: center;
}
#count{
    display: inline-block;
}
.tries{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}
.flip {
    transform: rotateY(180deg);
    transition: transform 0.3s;
}

@media (max-width: 1200px) {
    .box {
        width: 80px;
        height: 80px;
    }
    .scorecard {
        height: 300px;
        width: 180px;
    }
}
@media (max-width: 940px) {
    .box {
        width: 70px;
        height: 70px;
    }
    .scorecard {
        height: 270px;
        width: 160px;
    }
}
@media (max-width: 780px) {
    .box {
        width: 60px;
        height: 60px;
    }
    .scorecard {
        height: 240px;
        width: 140px;
    }
    .scorecard h1{
        font-size: 1.5rem;
    }
}
@media (max-width: 700px) {
    .box {
        width: 50px;
        height: 50px;
    }
    .scorecard {
        height: 210px;
        width: 150px;
    }
}
@media (max-width: 640px) {
    .container {
        display: flex;
        flex-direction: row;
        padding: 10px;
        overflow-x: auto;
    }
    .article {
        flex: 0 0 auto;
        width: 150px;
        margin-right: 10px;
    }
    .scorecard {
        height: 180px;
        width: 130px;
        border: 2px solid white;
    }
    .innerContainer {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        width: calc(100% - 160px);
    }
    .box {
        width: 40px;
        height: 40px;
        border: 2px solid white;
    }
    #startButton,#resetButton{
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    .article {
        width: 120px;
    }
    .scorecard {
        height: 120px;
        width: 80px;
        border: 1px solid white;
    }
    .innerContainer {
        width: calc(100% - 130px);
    }
    .box {
        width: 30px;
        height: 30px;
        border: 1px solid white;
        border-radius: 5px;
    }
    .scorecard h1{
        font-size: 0.8rem;
    }
    .navbar h1{
        font-size: 1.5rem;
    }
    #resetButton{
        font-size: 0.8rem;
        position: absolute;
        top: 5px;
        right: -10px;
        margin-right: 2px;
    }
    #startButton{
        font-size: 0.8rem;
        position: absolute;
        top: 5px;
        right: 35px;
    }
    .navbar img{
        width: 28px;
        height: 28px;
    }
    .navbar{
        margin-bottom: 80px;
    }
}
@media (max-width:380px) {
    .box{
        width: 20px;
        height: 20px;
        border-radius: 5px;
    }
}

