@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans+Arabic:wght@100..800&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: inherit;
}

html{
    background-color: #BED2FF;
}

body{
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: hsl(30, 100%, 50%);
    background-image: url(./assets/dot.svg);
    background-size: 1.5rem;

}

.nokta{
    font-family: "Pacifico", cursive;
     display: inline-block;
}

.nokta::first-letter{
    color: hsl(30, 100%, 50%);;
}

.start-link{
    padding-bottom: 1rem;
    color: hsl(30, 100%, 50%);
    position: relative;
    width: fit-content;
    margin: auto;
}

.start-link:hover,.start-link:active{
    color: black;
}
.start-link::after{
    position: absolute;
    content: "";
    width: 100%;
    border: 1px solid black;
    left: 0;
    bottom: 0.8rem;
}

header{
    background-color: white;
    padding: 0.5rem;
    box-shadow: 2px 2px 5px grey;
}

h1{
    font-weight: 500;
    margin-top: 1rem;
}

.title{
    font-family: "Pacifico", cursive;
    font-weight: 500;
    font-size: 1.3rem;
    width: fit-content;
    margin: auto;
}


main{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin: auto;
    width: 75%;
    max-width: 30rem;

}

#nokta{
    font-family: "Rubik", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: white;
    color: black;
    width: 100%;
    max-width: 35rem;
    margin: auto;
    text-align: center;
    border: 2px solid black;
    position: relative;
    box-shadow: 4px 4px black;
    
}

#skip-btn{
    position: absolute;
    top:-1px;
    left: -2px;
    transform:translateY(-100%);
    padding: 0.2rem;
    border: 2px solid black;
    background: white;
    aspect-ratio: 3/1;
}



#skip-btn:hover{
    background:black;
    color: white;
}


#joke-body{
white-space:pre-wrap;
line-height: 160%;
}

/* .action-btn{
    font-family: "Rubik", sans-serif;
    padding: 0.5rem 1.2rem;
    width: 8rem;
    border: none;
    border-radius: 0.3rem;
} */

.action-btn{
    font-family: "Rubik", sans-serif;
    padding: 0.5rem 1.2rem;
    width: 9rem;
    border: 2px solid black;
    background: white;
    box-shadow: 4px 4px black;
}

.action-btn:active {
  box-shadow: 0px 0px black;
  transform: translate(3px, 3px);
}

.action-btn:hover{
    cursor: pointer;
}

.action-btns{
    justify-content: space-between;
    justify-items: center;
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 20rem;
    margin: auto;
}

/* .like-btn{
    background-color: #59d67d;
} */

.note{
    text-align: center;
    font-size: 0.8rem;
    color: rgb(48, 48, 48);
    margin-top: 0.5rem;
}

.social-icon{
    width: 100%;
}


.share-btns{
    display: flex;
    display: none;
    gap: 1rem;
    align-self: center;
    color: white;
}
.share-btn{

    font-family: "Playpen Sans Arabic", cursive;
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.75rem;
    font-weight: 400;
    width: fit-content;
    margin: auto;
}

.share-btn:hover{
    cursor: pointer;
}


.loading-gif{
    display: none;
    width: 4rem;
    margin: auto;
}

.loaded-joke{
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

#add-joke-form{
    background: hsla(213 100% 67.1% / 0.58);
    border-radius: 1rem;
    padding: 1rem;
    margin: auto;
    font-family: "Rubik", sans-serif;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 35rem;
    gap: 0.5rem;
    box-shadow: 10px 10px 26px 9px rgba(0,0,0,0.3);
-webkit-box-shadow: 10px 10px 26px 9px rgba(0,0,0,0.3);
-moz-box-shadow: 10px 10px 26px 9px rgba(0,0,0,0.3);
}

.add-joke-form label{
    font-weight: 700;
    padding-bottom: 0;
}

textarea{
    border: 0;
    border-radius: 0.5rem;
    width: 100%;
    height: 15rem;
    font-size: 1.2rem;
    padding-top: 0;
}

.form-field-container{
    width: 100%;
    display: flex;
    gap: 1rem;
}

.form-field-container input{
    border: 0;
    padding: 0.3rem;
    border-radius: 0.5rem;
    flex-grow: 1;

}

.form-btn{
    width: 70%;
    padding: 0.3rem;
    border-radius: 0.3rem;
    justify-self: center;
    border: 1px solid black;
    background-color: #20248f;
    color: white;
    font-weight: 600;
}

.stats{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap:0px;
    grid-row-gap: 0px;
    border-bottom:2px solid black;
}

.stat{
 padding: 0.5rem;
 font-size: 0.8rem;
}

.stat-r{
    border-right: 2px solid black;
}

#like-rating{
    color: green;
}

footer{
    background: black;
    padding: 1rem;
    color: white;
}

.rights{
    font-family:'Courier New', Courier, monospace;
    width: fit-content;
    margin: auto;
    text-align: center;
}

.box{
    background: white;
    border: 2px solid black;
    padding: 1rem;
    box-shadow: 4px 4px black;
}


.form-field{
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-field label{
    text-wrap: nowrap;
}