body {
    margin: 0;
    padding: 0;
    /*overflow-x: hidden;*/
    font-family: "Golos Text", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

form {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="text"] {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
}

button {
    padding: 8px 16px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

.submitButton {
    background-color: #FCDDDF;
}



.background {
    background: linear-gradient(to top right, #CBEFB6, #FCDDDF, #E18A8A);
    min-height: 100vh;
}

.header {
    background-color: #FCDDDF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-bottom: #ccc 2px solid;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    height: 100px;
    max-width: 100%;
}

.header .title {
    text-align: left;
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-style: normal;
    color: #660F3B;
}

.header a {
    position: relative;
    padding: 10px;
}

.header .nav-links a:hover {
    color: #660F3B;
    display: inline-block;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.header .nav-links a:hover::after {
    width: 100%;

}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links .left a {
    background-color: #ffffff90;
    border-radius: 20px;
    margin: 5px;
    padding-right: 20px;
    padding-left: 20px;

}

.search-icon {
    max-width: 20px;
    max-height: 20px;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background-color: #660F3B;
    border-radius: 100%;
}

.search-container {
    border-color: #660F3B;
}

.footer {
    background-color: #FCDDDF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-top: #ccc 2px solid;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 10px;
    height: 100px;
    max-width: 100%;
}

.footer a {
    position: relative;
    text-align: right;
    padding: 10px;
}

.footer .nav-links a {
    background-color: #ffffff90;
    border-radius: 20px;
    margin: 5px;
    padding-right: 20px;
    padding-left: 20px;
}

.footer .nav-links a:hover {
    color: #660F3B;
    display: inline-block;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}


.footer .nav-links a:hover::after {
    width: 100%;

}

.main-section {
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 100vh;
}

.top-row {
    display: flex;
    flex-direction: row;
    padding: 10px;
    max-width: 1000px;
    align-self: center;
}

.top-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 3%;
    flex: 1;
    padding: 10px;
    margin: 10px;
}

.top-inner p {
    line-height: 2;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

.top-inner ul {
    line-height: 2;
    padding-left: 20px;
    padding-right: 20px;
}

.app-rows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    align-self: center;
    padding: 10px;
    max-width: 1300px;
}

.top-rated {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 10px;
    gap: 85px;
    margin-bottom: 20px;

}

.top-rated button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #000000;
}

.top-rated button:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.fun-apps {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 10px;
    gap: 85px;
    margin-bottom: 20px;
}

.fun-apps button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #000000;
}

.fun-apps button:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.app-container {
    background-color: #ffffff90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 3%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 20px;
}


.about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    align-self: center;
    padding: 20px;
    margin: 20px;
    max-width: 1000px;

}

.about-section .team-members {
    padding-left: 20px;
    line-height: 2;
}

.about-section h2 {
    font-family: 'pacifico', cursive;
    padding-right: 20px;
    padding-left: 20px;
}

.about-section p {
    line-height: 2;
    padding-right: 20px;
    padding-left: 20px;
}

.request-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    background-color: #ffffff90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin: 20px;
    max-width: 1000px;
}

.request-form h2 {
    padding-right: 20px;
    padding-left: 20px;
}

.request-form p {
    line-height: 2;
    text-align: center;
    padding-right: 20px;
    padding-left: 20px;
}

.request-form form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.main-app-list {
    width: 100;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 5%;
    row-gap: 3em;
}

.app-card h2 {
    margin: 0 0 5px;
}

.search-container {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.4s ease;
    display: inline-flex;
    border: 2px solid #ccc;
    border-radius: 25px;
    padding: 0;
}

.search-container.active {
    max-width: 400px;
    padding: 5px 10px;
}

.search-input {
    border: none;
    outline: none;
    padding: 8px;
    width: 100%;
    border-radius: 25px;
}

.search-submit {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.app_info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    background-color: #ffffff90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1200px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.right-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

/* comment section styles */

.comment-section {
    width: 100%;
    box-sizing: border-box;
}

.comment-section h2 {
    color: #660F3B;
    margin-bottom: 15px;
}

.add-comment {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.add-comment textarea {
    width: 100%;
    height: 80px;
    resize: none;
    padding: 10px;
    font-family: "Golos Text", sans-serif;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-sizing: border-box;
}

.add-comment button {
    width: 130px;
    align-self: flex-end;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #FCDDDF;
    color: #660F3B;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-comment button:hover {
    background-color: #E18A8A;
    color: white;
    transform: scale(1.05);
}

.comment-container {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5 px rgba(0,0,0,0.1);
}

.comment-profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-content p {
    margin: 0;
    line-height: 1.4;
}

.comment-content strong {
    color: #660F3B;
}

/* Responsive design for header */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        text-align: center;
    }
    .nav-links {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    .left {
        justify-content: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .search-container {
        justify-self: center;
    }
}

/* Responsive design for footer */
@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        height: auto;
        text-align: center;
    }
}

/* Responsive design for index.html */
@media screen and (max-width: 768px) {
    /* Top Row Responsive */
    .top-row {
        display: flex;
        flex-direction: column;
        padding: 10px;
        align-self: center;
    }
    .app-rows h2{
        text-align: center;
    }
    .main-app-list {
        text-align: center;
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 0.5em;
    }
    .main-app-list {
        margin: 0;
    }
}

/* Responsive design for request.html */
@media screen and (max-width: 768px) {
    .request-form {
        width: 90%;
        padding: 10px;
    }
    .request-form textarea {
        width: 100%;
    }
    .main-section {
        min-height: auto;
    }
}