@import url('https://fonts.googleapis.com/css2?family=Comic+Relief:wght@400;700&display=swap');
html {
    font-family: 'Comic Relief', cursive;
   
}

body{
    background-color: rgb(50, 50, 50);
    color: rgb(216, 216, 216);
    font-family: 'Comic Relief', cursive;
}
input, textarea, select, button {
    font-family: 'Comic Relief', cursive;
}

h1{
    text-align: center;
}
#reviews {
    width: 60%;
    margin: auto;
    
    border-radius: .25rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
#review_title{
    display:flex;
    flex-direction: row;
    width:100%;
    justify-content: space-evenly;
    align-items: center;
    font-size: 1.25rem;
    overflow: clip;
}
#restaurant_title{
    display: flex;
    flex-direction: row;
    width: 80%;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    border-bottom: 2px solid rgb(133, 133, 133);
    padding-bottom: 0.5rem;
    height: 3rem;
}

#collapse_button{
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: rgb(216, 216, 216);
    transition: all 0.3s ease;
}
#collapse_button:hover{
    color: rgb(136, 154, 184);
    transform: scale(1.1);
    text-shadow: 0 0 2px rgb(133, 133, 133), 0 0 4px rgb(133, 133, 133);
}
#collapse_button:active{
    transform: scale(0.9);
}


h4{
    font-size: 1rem;
    color: rgb(133, 133, 133);
    font-weight: normal;
}


#review_container {
    width: 75%;
    background-color: rgb(44, 44, 44);
    border-radius: .5rem;
    border: 1px solid rgba(133, 133, 133, 0.379);
}

#review_text{
    
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    max-height:30vh;
    margin: 0;
    padding: 0rem;
    padding-bottom: 0.5rem;
}

/* security ------------------------------------ */
#security {
    padding-top: 4rem;
    width: 60%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 7rem;
}

#security input[type="password"] {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
    width: 60%;
}
#security button {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    background-color: rgb(94, 101, 112);
    color: rgb(216, 216, 216);
    cursor: pointer;
    width: 60%;
    border: 1px solid rgb(133, 133, 133);
}

#security form{
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#security

/* editing ------------------------------------ */

.edit_mode{
    display: none;
}

.edit_mode.visible {
    display: block; 
}

#editing_panel{
    width: 60%;
    margin: auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
   
}
#editing_panel h1{
    border-bottom: 2px solid rgb(133, 133, 133);
    padding-bottom: 0.5rem;
    width:80%;
   
}
#editing_panel form{
    display: flex;
    flex-direction: column;
    width: 70%;
    gap: 0.5rem;
}
#editing_panel input[type="text"] {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
}
#editing_panel input[type="submit"] {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    background-color: rgb(95, 112, 94);
    color: rgb(216, 216, 216);
    cursor: pointer;
     border: 1px solid rgb(133, 133, 133);
}

#editing_panel textarea{
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
    resize:vertical;
    height: 3rem;
}

#review_dropdown{
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
}

#location_dropdown{
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
}
#location_dropdown_review{
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
}
#add_review_form{
    display: flex;
    flex-direction: column;
    width: 70%;
    gap: 0.5rem;
}

#add_review_form input[type="text"] {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
}

#add_review_form textarea{
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid rgb(133, 133, 133);
    background-color: rgb(60, 60, 60);
    color: rgb(253, 253, 253);
    resize:vertical;
    height: 3rem;
}

#add_review_form input[type="submit"] {
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    background-color: rgb(95, 112, 94);
    color: rgb(216, 216, 216);
    cursor: pointer;
     border: 1px solid rgb(133, 133, 133);
}
@media (max-width: 1000px) {
    #reviews {
        width: 95%;
        padding: 0.5rem;
    }
    #review_container {
        width: 98%;
        font-size: 0.95rem;
    }
    #review_title,
    #restaurant_title {
        font-size: 1rem;
        flex-direction: row;
        width: 100%;
        gap: 0.3rem;
        height: auto;
        padding-bottom: 0.25rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    #security {
        width: 90%;
    }
    #editing_panel {
        width: 90%;
    }

    h3{
        margin-bottom: 0;
    }
}
