@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
*{
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
}


form{
    padding: 20px;
    width: 800px;
    max-width: 100%;
    gap: 10px;
    box-shadow: 0px 10px 10px rgba(0,0,0,0.4);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    border-radius: 10px;
    margin-bottom: 100px;
}
form > * {
    margin-bottom: 10px;
}
.form-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 300px;
}
input[type='text'] {
    height: 30px;
    padding-left: 10px;
    box-sizing: border-box;
}

textarea{
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}


/*  ============= header ================  */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}


body{
    margin: 0px;
}
a {
    color: black;
    text-decoration: none;
}

.top-nav-list{
    display: flex;
    justify-content: space-around;
    list-style: none;
    max-width: 600px;
    width: 100%;
    gap: 20px;
    /* background-color: red; */
}
.top-header{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    margin-bottom: 40px;
}
.top-header a{
    color: black;
}
.top-header a:hover{
    color: #80f8e4;
    text-decoration: underline;
    cursor: pointer;
}
.top-header .logo{
    /* position: absolute; */
    left: 10px;
    top: 10px;
    width: 50px;
}




@media (max-width: 650px) {
    .top-header a{
        color: black;
        font-size: 14px;
        /* text-decoration: underline; */
    }
    .top-header{
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        height: auto;
        position: relative;
        width: 100vw;
        padding: 0px;
        padding-top: 10px;
        box-sizing: border-box;
        overflow: hidden;
        /* top: 60px; */
    }
    .top-nav-list{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
        gap: 0px;
        /* background-color: blue; */
        box-sizing: border-box;
        width: 100%;
        height: auto;
        overflow: hidden;
        margin: 0px;
        padding: 0px;
        border-top: 1px solid gray;

    }
    .top-nav-list li {
        /* background-color: red; */
        padding: 5px 15px;
        box-sizing: border-box;
    }
    ul .home-page{
        display: none;
    }
}



/*  ============= header ================  */


.big-title{
    color: #008080;
    text-transform: capitalize;
    margin-bottom: 20px;
}
.legend-paragraph{
    background-color: #008080;
    color: white;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

input[type='submit']{
    background-color: #008080;
    padding: 8px;
    width: 200px;
    border: none;
    color: white;
    font-weight: bold;
    box-sizing: border-box;
    border: 1px solid #008080;
}
input[type='submit']:hover{
    background-color: #fafaa6;
    color: #008080;
    cursor: pointer;
    box-sizing: border-box;
}

/* rating component */

.star-rating {
    display:flex;
    flex-direction: row-reverse;
    font-size:1.5em;
    justify-content:space-around;
    padding:0 .2em;
    text-align:center;
    width:5em;
    box-sizing: border-box;
  }
  
  .star-rating input {
    display:none;
  }
  
  .star-rating label {
    color:#ccc;
    cursor:pointer;
  }
  
  .star-rating :checked ~ label {
    color:#f90;
  }
  
  .star-rating label:hover,
  .star-rating label:hover ~ label {
    color:#fc0;
  }
  


  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
  }
  
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    box-sizing: border-box;
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }


  .success-div, .error-div{
    background-color: #008080;
    color: white;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .inner-success-div{
    width: 600px;
    max-width: 90%;
  }
  
  .success-div a{
    color: #fafaa6;
  }



/* Media queries for responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        margin-top: 10px;
    }

    .nav li {
        margin-right: 10px;
    }
}