@font-face {
    font-family: "Berkelium";
    src: url("./../assets/font/berkelium.ttf");
}

:root{
    --red:#e45e57;
    --redBorder:#e43857;
    --blue:#415cd4;
    --blueBorder:#413fd4;
    --green:#89983e;
    --greenBorder:#67983e;
    --yellow:#eec543;
    --yellowBorder:#eea843;
    --orange:#e7803f;
    --orangeBorder:#e75e3f;
    --lightBlue:#56a3bd;
    --lightBlueBorder:#567ebd;
    --purple:#8c3ef4;
    --purpleBorder:#8c1ff4;
    --grey:rgb(189,192,177);
    --greyBorder:#b2b4a4;
    --greyText:#3b4337;

}
html{
    font-family: "Berkelium";
    text-transform: uppercase;
    text-align: center;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #cbcdc2;
    background: repeating-linear-gradient( -45deg, #bdc0b1, #bdc0b1 2px, #cbcdc2 2px, #cbcdc2 13px );
}

#start-screen{
    height: 100vh;
    width: 100vw;
    color: white;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    
}


#tetris-page{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
}

.bg-img{
    width: 70vw;
    position: absolute;
    z-index: -1; 
}

.game-bg{
    width: 50vw;

}

.top-left{
    top:0;
    left:0;
}
.top-right{

    top:0;
    right:0;
}
.bottom-left{
    bottom:0;
    left:0;
}
.bottom-right{
    bottom:0;
    right:0;
}




canvas{
    outline: calc(0.2rem + 0.5vmax) solid var(--greyBorder);
    height: 75vh;
    display: block;
}

aside{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 75vh;
    gap: 1rem;

}
#start-logo{
    width: 25vw;
    margin-bottom: 2rem;
}
#game-logo{
    width: 15vw;
}

.grey-space{
    background-color: var(--grey);
    outline: calc(0.2rem + 0.5vmax) solid var(--greyBorder);
    width: 100%;
    color:var(--greyText);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    gap: 1.5rem;  
}

#next{
    height: 8rem;
}

#points{
    padding: 1rem 0;
}

h4{
    font-size: 2rem;
    margin: 0;
}

h6{
    font-size: 1.2rem;
    margin: 0;
}

.btn{
    font-family: inherit;
    text-transform: inherit;
    border:none;
    color: #f8f8f9;
    font-size: calc(0.5rem + 1vmax);
    width: 100%;
    padding: .7rem 0 0.5rem 0;
}



.btn-pause{
    background-color:var(--purple) ;
    outline: calc(0.2rem + 0.5vmax) solid var(--purpleBorder);
}

.btn-pause:hover{
    background-color:#9a6ac7 ;
    outline: calc(0.2rem + 0.5vmax) solid #704894 ; 
}

.btn-play, .btn-start{
    background-color:var(--red) ;
    outline: calc(0.2rem + 0.5vmax) solid var(--redBorder);
}

.btn-play:hover, .btn-start:hover{
    background-color:#e44b57 ;
    outline: calc(0.2rem + 0.5vmax) solid #e43830; 
}

.btn-start{
    width: 30vw;
}

.btn-settings, .btn-help{
    width: 15vw;
    font-size: calc(0.5rem + 0.5vmax);
}

.btn-help{
    background-color:var(--green) ;
    outline: calc(0.2rem + 0.5vmax) solid var(--greenBorder);
}

.btn-help:hover{
    background-color: #6c983e ;
    outline: calc(0.2rem + 0.5vmax) solid #46913e ; 
}

.btn-settings{
    background-color:var(--orange) ;
    outline: 0.calc(0.2rem + 0.5vmax) solid var(--orangeBorder);
}

.btn-settings:hover{
    background-color: #e7733f ;
    outline: calc(0.2rem + 0.5vmax) solid #e7503f ; 
}


#next{
    display:grid;
    width:80px;
    height: 80px;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(4,1fr);

}

.settings{
    width: 20vw;
    padding: 4rem;
    background-color: var(--orange);
    outline: calc(0.2rem + 0.5vmax) solid var(--orangeBorder) ; 
    border:inherit;
    font-size:2rem;
    color:#f8f8f9 ;
    position: relative;
}

dialog::backdrop{
    background-color: #89983e;
    opacity: 0.4;
}

.setting input {
    color: blue;
}

.fa-solid{
    color:white;
    font-size: 2rem;
    background-color: none;
    border: none;
}

.fa-x{
    color: white;
    top: 15px;
    right: 15px;
    position: absolute;
    font-size: 1.5rem;
}

.game-over{
    width: 20vw;
    padding: 4rem;
    background-color: var(--blue);
    outline: calc(0.2rem + 0.5vmax) solid var(--blueBorder) ; 
    backdrop-filter: blur(100px);
    border:inherit;
    font-size:2rem;
    color:#f8f8f9 ;
    overflow: hidden;
}

.game-over > img{
    width: 60vw;
}

.btn-again{
    background-color:var(--orange) ;
    outline: 6px solid var(--orangeBorder);
    width: 10vw;
    font-size: 0.8rem;
}

.btn-again:hover{
    background-color: #e7733f ;
    outline: 6px solid #e7503f ; 
}

.game-over h4{
    font-size: 1.5rem;
    margin-bottom: 1rem;

}

.button {
    all:unset;
}





