@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;0,900&display=swap');
@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;0,900&family=Roboto&family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap');




*{
    padding: 0px;
    margin: 0px;
    font-family: 'Poppins' ,'Roboto', sans-serif;
    box-sizing: border-box; /* Added for better layout control */
}

body{
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}


.navbar{
    height: 7vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.logo{
    height: 7vh;
    width: 4vw;
}

.siteTitle{
    font-size: 30px;
    width: 90vw;
    font-weight: 666;
}

.navitems{
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.navItem{
    margin: 5px;
    font-size: 20px;
    width:7vw;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    
}

.navItem:hover{
    background-color: white;
    color: black;
}



h1{
    text-align: center;
    padding: 5px 10px;
    margin: 10px;
    border-radius: 5px;
    background-color: white;
    color: black;
    width: 70vw;
}

main{
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin: 10px;
}

.outputContainer{
    width: 75vw;
    min-height: 83vh;
    
    background-color: black;
    border: 2px solid black;
    border-radius: 5px;
}

.inputContainer{
    width: 22vw;
    height: 83vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    border: 2px solid black;
    border-radius: 5px;
    margin: 5px;
}

label{
    text-align: center;
    margin: 10px;
    font-size: 22px;
    background-color:black;
    color: white;
    width: 21vw;
    border-radius: 5px;
    padding: 5px 5px;
    font-weight: 666;
}

input{
    font-size: 22px;
    text-align: center;
    border: 2px solid black;
    height: 7vh;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}


textarea{
    width: 21vw;
    margin: 10px;
    height: 45vh;
    border-radius: 5px;
    font-size: 25px;
    padding: 10px 15px;
    border: 2px solid black;
    text-align: center;
}

button{
    width: 15vw;
    font-size: 22px;
    padding: 3px 5px;
    margin: 10px;
    cursor: pointer;
    border: 2px solid black;
    border-radius: 5px;
}

button:hover{
    font-weight: 666;
    background-color: black;
    color: white;
}

.outputContainer{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    height: 50vh;
    overflow-y: auto;
    border: 2px solid white;

}

h2{
    text-align: center;
    margin: 10px;
    width: 61vw;
    background-color: black;
    font-size: 30px;
    padding: 5px 10px;
    border-radius: 5px;
    border: 2px solid white;
}
.cardsConatiner{
    display: grid;
    align-items: center;
    justify-content: space-evenly;
    grid-template-columns: repeat(2,1fr);
    margin: 10px;
    padding: 5px ;
    
}


.card{
    width: 30vw;
    min-height: 45vh;
    max-height: auto;
    background-color: black;
    margin: 10px;
    border-radius: 5px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cardNav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 30vw;
}

.date{
    background-color: white;
    width: 8vw;
    color: black;
    margin: 10px;
    border-radius: 3px;
    font-size: 18px;
    font-weight: 666;
}

.jokeNumber{
    background-color: white;
    width: 3vw;
    color: black;
    margin: 10px;
    border-radius: 3px;
    font-size: 18px;
    font-weight: 666;
}

.chavatJName{
    width: 25vw;
    font-size: 20px;
}

p{
    text-align: center;
    padding: 5px;
    margin: 5px;
    font-size: 25px;
    overflow-y: auto;
    height: 30vh;
    
}

.grow{
    width: 20vw;
}

.stop{
    width: 10vw;
}

.bigCard{
    display: none;
}


@media (max-width:600px) {
    main{
        flex-direction: column;
        width: 90vw;
    }

    .navbar{
        width: 95vw;
    }

    .logo{
        width: 10vw;
    }

    .siteTitle{
        width: 60vw;
    }

    .navItem{
        width: 15vw;
        
    }

    .h{
        display: none;
    }

    .outputContainer{
        width: 90vw;
        min-height:70vh;
        overflow-y: auto;
    }

    h1{
        width: 90vw;
        font-size: 25px;
    }

    h2{
        width: 80vw;
        font-size: 22px;
    }

    .card{
        width: 80vw;
        margin: 15px;
    }

    .cardNav{
        width: 80vw;
    }

    .date{
        width: 30vw;
    }

    .jokeNumber{
        width: 15vw;
    }

    .chavatJName{
        width: 70vw;
    }

    p{
        width: 95%;
    }

    .inputContainer{
        width: 90vw;
    }

    label , textarea{
        width: 95%;
    }

    button{
        width: 35vw;
    }

    .outputContainer{
        height: 50vh;
    }

    .cardsConatiner{
        display: flex;
        flex-direction: column;
        width: 95%;
    }
}

/** 

CREATE TABLE chavat_jokes (
    id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    joke_name VARCHAR(255) NOT NULL,
    chavat_joke TEXT NOT NULL,
    created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
**/