* {
    font-family: sans-serif;
    font-size: 14px;
}

body {
    background: linear-gradient(90deg, #a3fcd7 0%, #afd9fd 100%);
    margin: 0;
    min-height: 100vh;
}

h2{
    font-size: 20px;
}

.judul{
    text-align: center;
    font-size: 18px;
}

.jmlParagraf, .pemilikCerita{
    margin-left: 10px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vh-100 {
    height: 100vh;
    margin: 0;
}

.d-flex {
    display: flex;
}

.card {
    background-color: white;
    padding: 2em 2em;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 30px;
    border-radius: 20px;
    width: 75%;
}

.card h1 {
    text-align: center;
    font-family: sans-serif;
    font-size: 2em;
}

.inputs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

input {
    padding: 10px 10px;
    box-sizing: border-box; 
    border: none; 
    background-color: #ededed; 
    border-radius: 5px;
    transition: 0.5s ease;
    width: 100%;
}

input:hover {
    transition: 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

button#btnLogin {
    background-color: #4cafac;
    border: 0;
    border-radius: 5px;
    padding: 8px 12px;
    transition: 0.5s ease;
    color: white;
    cursor: pointer;
    width: 100%;
}

button#btnLogin:hover {
    transition: 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#cerita-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.cerita-card {
    width: 300px;
    background-color: white;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
    margin-bottom: 30px;
}

.d-flex span {
    margin-left: 10px;
}

.d-flex:has(span) {
    padding: 0 15px;
}

.paging-container {
    display: flex;
    gap: 10px;
    margin: 2em 10px;
    font-size: 18px;
}

.paging-container a {
    text-decoration: none;
    color: #100987;
}

.active {
    font-weight: 800;
}

.container-left,
.container-right {
    width: 100%;
}

.container-left{
    display:none;
}

.btnNext,
.btnNext2 {
    margin-top: 15px;
    margin-bottom: 30px;
    width: 200px;
    background-color: #4cafac;
    border: 0;
    border-radius: 5px;
    transition: 0.5s ease;
    color: white;
    cursor: pointer;
    height: 30px;
}

.btnNext:hover,
.btnNext2:hover {
    transition: 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

#cerita,#ceritaku{
    padding-top: 15px;
}

.header h2 {
    text-align: center;
}

.header p {
    text-align: center;
}

.kategori h4 {
    text-align: center;
}

.kategori select {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}    

.baca{
    margin-left: 10px;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: blue;
}
a:hover {
    transition: 0.5s ease;
}

.container{
    width: 85%;
    margin: 0 auto;
}

.card-new {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
}

.card-new > div {
    width: 100%;
    margin: 15px 0;
}

.inputs {
    width: 100%; 
    box-sizing: border-box; 
    border: none; 
    background-color: #ededed; 
    padding: 10px 10px;
    border-radius: 5px;
    transition: 0.5s ease;
}

.inputs:hover {
    transition: 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

textarea {
    resize: none;
}

.mt-sm {
    margin-top: 7px;
}

#btntambah {
    font-size: 16px;
    background-color: #4CAF50;
    border: 0;
    border-radius: 5px;
    padding: 8px 12px;
    transition: 0.5s ease;
    color: white;
    cursor: pointer;
}

#btnSubmit {
    font-size: 18px;
    background-color: #4CAF50;
    border: 0;
    border-radius: 5px;
    padding: 8px 12px;
    transition: 0.5s ease;
    color: white;
    cursor: pointer;
    width: 100%;
}

#btnSubmit:hover {
    transition: 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.read-container{
    width: 50%;
}

@media screen and (min-width: 576px) and (max-width: 1023px) {
    .header h2 {
        text-align: center;
    }
    
    .header p {
        text-align: center;
    }

    .d-flex{
        display: flex;
        flex-direction: column;
    }

    .container-left,
    .container-right {
        display: flex;
        flex-direction: column;
        padding-right: 0;
        padding-left: 0;
    }

    .container-left {
        order: 1;
    }

    .container-right {
        order: 0;
    }

    .kategori {
        display: none;
    }

    .btnNext,
    .btnNext2 {
        align-self: center;
    }

    .cerita-card {
        width: 40%;
        max-width: 340px;
        min-width: 250px;
        background-color: white;
        border-radius: 7px;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
        margin-bottom: 30px;
    }

    .read-container{
        width: 60%;
    }
}

@media screen and (min-width: 1024px) {
    .header h2 {
        text-align: left;
    }
    
    .header p {
        text-align: left;
    }

    .container-left {
        display:flex;
        flex-direction: column;
        width: 35%;
        padding-right: 15px;
    }

    .container-right {
        display: flex;
        flex-direction: column;
        width: 65%;
        border-left: 2px solid #000; 
        padding-left: 15px;
    }
    .kategori{
        display:none;
    }

    .cerita-card {
        min-width: 300px;
        width: 30%;
        max-width: 600px;
        background-color: white;
        border-radius: 7px;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
        margin-bottom: 30px;
    }

    #ceritaku {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container {
        max-width: 65%;
    }
    .read-container {
        max-width: 70%;
    }
}