﻿body {
    background-color: ghostwhite;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: medium;
    line-height: 1.5;
    color: #333333;
    align-items: center;
    justify-content: center;
}




.button-style {
    display: inline-block;
    padding: 10px 20px;
    font-size: medium;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #994c4c;
    background-color: #fff;
    border: 2px solid #994c4c;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.button-style:hover {
    background-color: #994c4c;
    color: #fff;
}



.button-style-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: medium;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #994c4c;
    background-color: #fff;
    border: 2px solid #994c4c;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.button-style-link:hover {
    background-color: #111;
    border: 2px solid #994c4c;
    border-radius: 5px;
    color: ghostwhite;
}

.button-login-style {
    display: inline-block;
    padding: 5px 10px;
    font-size: small;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #994c4c;
    background-color: transparent;
    border: 1px solid #994c4c;
    border-radius: 2px;
    transition: background-color 0.3s, color 0.3s;
}

.button-login-style:hover {
    background-color: #994c4c;
    color: #fff;
}

.button-goto-login-style {
    display: inline-block;
    padding: 5px 10px;
    font-size: small;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #994c4c;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
    border: none;
}

.button-goto-login-style:hover {
    background-color: #994c4c;
    color: #fff;
}



.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px;
    margin: 0 4px;
    color: black;
    border: 1px solid #dddddd;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
}

.voted-bar1{
    background-color: greenyellow;
}
.progress-bar1{
    background-color: #077bff;
}




@media(min-width: 768px){
  #container-main {
    width: 66%;
  }

  #container-display {
    width: 66%;
  }

  #card-post{
    width: 66%;
  }

  #refresh-btn{
    top: 20%;
    left: 66%;
    width: fit-content;
    cursor: pointer;
    z-index: 1000;
    position: fixed;
    display: none;
    padding: 10px 20px;
    font-size: small;
    font-weight: normal;
    text-align: center;
    color: ghostwhite;
    background-color: transparent;
    border: 2px solid #6F8FAF;

}

#container-top {
    width: 66%;
    border-radius: 5px; 
    position: sticky; 
    top: 8%; 
    z-index: 1000;
  }


  #container-tab {
    width: 66%; 
    border-radius: 5px; 
   
  }


  #container-about {
    background-color: #333333;
    color: ghostwhite;
    border: 2px solid #6F8FAF;
    border-radius: 5px;
    width: 99%;
  }

   
  #card-about{
    width: 99%;
    padding: 1%;
    
  }
  
  #button-style-search {
    display: inline-block;
    padding: 10px;
    font-size: small;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color:  #6F8FAF;
    background-color: #fff;
    border: 2px solid #6F8FAF;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

#button-style-search:hover {
    background-color:  #6F8FAF;
    color: #fff;
}

#button-style-edit {
    display: inline-block;
    padding: 5px;
    font-size: x-small;
    font-weight: normal ;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color:  #6F8FAF;
    background-color: #fff;
    border: 2px solid #6F8FAF;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

#button-style-edit:hover {
    background-color:  #6F8FAF;
    color: #fff;
}

.centered-offcanvas{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: fit-content;
    margin-left: 33%;
    border: 2px solid #994c4c;
    border-radius: 5px;
    z-index: 1050;
  }
  
  .offcanvas{
    background-color: #6F8FAF !important;
    color: ghostwhite !important;
  }
  
}




@media (max-width:768px) {
    
    body {
        width: 100%;
    }

    #container-main {
        width: 99%;
      }

    #container-display {
        width: 99%;
      }
    
      #results-container {
        width: 99%;
        padding: 1%;
      }

      #container-about {
        background-color: #333333;
        color: ghostwhite;
        border: 2px solid #6F8FAF;
        border-radius: 5px;
        width: 99%;
      }

      
      #card-about{
        width: 99%;
        padding: 1%;
      }

      #card-post{
        width: 99%;
        padding: 1%;
      }
      
    
      #refresh-btn{
        bottom: 66%;
        left: 83%;
        width: fit-content;
        cursor: pointer;
        z-index: 1000;
        position: fixed;
        display: none;
        padding: 10px 20px;
        font-size: small;
        font-weight: normal;
        text-align: center;
        color: ghostwhite;
        background-color: transparent;
        border: 2px solid #6F8FAF;
    }

    #container-top {
        width: 99%;
        border-radius: 5px; 
        position: sticky; 
        top: 8%; 
        z-index: 1000;
      }


      #container-tab {
        width: 99%; 
        border-radius: 5px; 
 
      }

      #button-style-search {
        display: inline-block;
        padding: 10px;
        font-size: small;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        color:  #6F8FAF;
        background-color: #fff;
        border: 2px solid #6F8FAF;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
    }
    
    #button-style-search:hover {
        background-color:  #6F8FAF;
        color: #fff;
    }

    #button-style-edit {
        display: inline-block;
        padding: 5px;
        font-size: x-small;
        font-weight: normal ;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        color:  #6F8FAF;
        background-color: #fff;
        border: 2px solid #6F8FAF;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
    }
    
    #button-style-edit:hover {
        background-color:  #6F8FAF;
        color: #fff;
    }

    #button-style-logout {
        display: inline-block;
        padding: 5px;
        font-size: x-small;
        font-weight: normal ;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        color:  #6F8FAF;
        background-color: #fff;
        border: 2px solid #6F8FAF;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
    }
    
    #button-style-logout:hover {
        background-color:  #6F8FAF;
        color: #fff;
    }
    

    .centered-offcanvas{
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: auto;
        width: auto;
        border: 2px solid #994c4c;
        border-radius: 5px;
        z-index: 1050;
      }

      .offcanvas{
        background-color: #6F8FAF !important;
        color: ghostwhite !important;
      }

    
}