*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
}
header {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2.5%;
    background: rgba(44, 133, 234, 0.477);
    border-radius: 25px;
}
body{
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.logo{
    font-size: 30px;
    font-weight: 700;
    color: white;

}
.navlist{
    display: flex;
}
.navlist a{
    color: white;
    margin-left: 60px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all .60s ease;
}
.navlist a:hover{
    border-bottom: 2px solid white;
}
#menu-icon{
    color: white;
    font-size: 30px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

.pi{
    height: 100%;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(245.59deg, #166bc5 0%, #003d7e 28.53%, #56a8ff 75.52%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
section{
    padding: 0 15%;
}

.pi-input {
    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }
    
}

.pi-game {
    padding: 10px 20px;
    text-align: center;
    position: absolute;
    
}

.pi-text h1 {
    font-size: 90px;
    line-height: 1;
    color: white;
    margin: -160px 0 45px;
}

.pi-digits h3 {
    font-size: 60px;
    line-height: 1;
    color: white;
}

.pi-guessed {
    font-size: 20px;
    color: white;
    font-weight: 500;
}

.pi-digits {
    max-width: 700px;
    margin: 0 auto;
    overflow-wrap: break-word;
}

.container {
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    align-items:center;
    padding:50px;
    margin-left:auto;
    margin-right:auto;
    max-width:500px;
    min-height:200px;
    box-sizing:border-box
}

@media (max-width: 1584px){
    header{
        padding: 10px 3%;
        transition: .2s;
    }
    .programme-text h1 {
        margin-top: 80px;
    }
}

@media (max-width: 1200px) {
    .programme-text h1 {
        margin-top: 120px;
    }
}

@media (max-width: 1107px){
    #menu-icon{
        display: block;
    }
    .navlist{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 245px;
        height: 300px;
        background: #257edd;
        display: flex;
        align-items: center;
        flex-direction: column;
        padding: 30px 20px;
        transition: all .55s ease;
        overflow-y: auto;
        border-radius: 20px;
    }
    .navlist a{
        margin-left: 0;
        display: block;
        margin: 7px 0;
    }
    .navlist.open{
        right: 0;
    }
}
@media (max-width: 940px) {
    .programme-text h1 {
        margin-top: 100px; 
    }
    .boxes-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; 
    }

    .pi {
        margin-bottom: 20px;
    }
}
@media (max-width: 640px) {
    .boxes-container {
        flex-direction: column; 
    }
    .pi {
        width: 105%; 
        margin-bottom: 20px;
    }
    .programme-text h1 {
        font-size: 60px;
    }
}
@media (max-width: 430px) {
    .programme-text h1 {
        font-size: 40px;
    }
}