
@media screen and (max-device-width: 844px){

    .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        background: var(--quaternary-color);
        border: 5px solid var(--secondary-color); 
        border-radius: 10px;
        margin: 4em auto 4em;
        padding: 1em;
        width: 85%;
        height: auto;
        
    }
    
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .pseudo {
        margin-top: 1em;
        margin-left: 0.5em;
        padding: auto;
        font-weight: bold;
        font-size: 18px;
    }
    
    .title {
        text-align: center;
        margin: 1em 0;
        font-size: 1.5em;
        font-weight: bold;
    }
    
    .content {
        text-align: start;
        margin-top: 0.5em;
        padding: auto;
    }
    
    .date {
        position: absolute;
        bottom: 10px;
        left: 10px;
        font-size: 0.9em;
        color: #666;
    }
    
    /*Specific for rating*/
    .star_rating {
        position: absolute;
        top: 0.3em;
        right: 0.8em;
        display: flex;
        justify-content: flex-end;
        direction: rtl;
    }

    .star_rating{
        font-size: 2.5em;
        color: gold;
        cursor: pointer;
    }
    
    .button{ 
        border-radius: 10px;
        background-color: var(--secondary-color);
        margin: auto;
        padding: auto;
        width: 60%;
        height: 4em;
        border: black 3px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit; 
        align-items: center;
    }

    .button:hover, .delete_button:hover, .update_button:hover, .reply_button:hover{
        opacity: 70%;
    }

    .delete_button{
        height: 2em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--secondary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .update_button{
        height: 2em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--tertiary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .reply_button{
        height: 2em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--tertiary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }
}

/* Specific style for ipad */
@media screen and (min-width: 845px) and (max-width: 1919px) {
   
    .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        background: var(--quaternary-color);
        border: 8px solid var(--secondary-color); 
        border-radius: 10px;
        margin-top: 5em;
        margin-left: auto;
        margin-right: auto;
        padding: 1em 2em 1em 2em;
        width: 60%;
        height: 26em;
       
    }
    
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .pseudo {
        margin-top: 1em;
        margin-left: 0.5em;
        padding: auto;
        font-weight: bold;
        font-size: 18px;
    }
    
    .title {
        text-align: center;
        margin: 1em 0;
        font-size: 1.5em;
        font-weight: bold;
    }
    
    .content {
        text-align: start;
        margin-top: 0.5em;
        padding: auto;
    }
    
    .date {
        position: absolute;
        bottom: 10px;
        left: 10px;
        font-size: 0.9em;
        color: #666;
    }
    
    /*Specific for rating*/
    .star_rating {
        position: absolute;
        top: 0.3em;
        right: 0.8em;
        display: flex;
        justify-content: flex-end;
        direction: rtl;
    }

    .star_rating{
        font-size: 2.5em;
        color: gold;
        cursor: pointer;
    }
    
    .button{ 
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit; 
        align-items: center;
        border-radius: 10px;
        background-color: var(--secondary-color);
        margin: 4em auto 6em auto;
        padding: 1em;
        width: 25%;
        height: 4em;
        border: black 3px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
        
    }

    .input_1:hover{
        opacity: 70%;
    }

    .delete_button{
        height: 2.5em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--secondary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .update_button{
        height: 2em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--tertiary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .reply_button{
        height: 2em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--tertiary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .button:hover, .delete_button:hover, .update_button:hover, .reply_button:hover{
        opacity: 70%;
    }
}

/* Specific style for desktop */
@media screen and (min-width: 1920px) {

    .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        background: var(--quaternary-color);
        border: 12px solid var(--secondary-color); 
        border-radius: 10px;
        margin: 5em auto 2em auto;
        padding: 2em 4em 2em 4em;
        width: 30%;
        height: auto;
       
    }
    
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .pseudo {
        margin-top: 1em;
        margin-left: 0.5em;
        padding: auto;
        font-weight: bold;
        font-size: 18px;
    }
    
    .title {
        text-align: center;
        margin: 1em 0;
        font-size: 1.5em;
        font-weight: bold;
    }
    
    .content {
        text-align: start;
        margin-top: 0.5em;
        padding: auto;
    }
    
    .date {
        position: absolute;
        bottom: 10px;
        left: 10px;
        font-size: 0.9em;
        color: #666;
    }
    
    /*Specific for rating*/
    .star_rating {
        position: absolute;
        top: 0.3em;
        right: 0.8em;
        display: flex;
        justify-content: flex-end;
        direction: rtl;
    }

    .star_rating{
        font-size: 2.5em;
        color: gold;
        cursor: pointer;
    }
    
    .button{ 
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit; 
        align-items: center;
        border-radius: 10px;
        background-color: var(--secondary-color);
        margin: 4em auto 6em auto;
        padding: 1em;
        width: 15%;
        height: 4em;
        border: black 3px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
        
    }

    .delete_button{
        height: 3em;
        width: 8em;
        border-radius: 10px;
        margin-top: 1em;
        background-color: var(--secondary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .update_button{
        height: 2em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--tertiary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .reply_button{
        height: 2em;
        width: 8em;
        border-radius: 10px;
        margin-top: 0.5em;
        background-color: var(--tertiary-color);
        border: black 2px solid;
        box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.25);
    }

    .button:hover, .delete_button:hover, .update_button:hover, .reply_button:hover{
        opacity: 70%;
    }

}