






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

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

.skills{
  font-weight: bold;
  color: #6B61D8;
}

.message-recipient{
  padding-left: 20px;
  padding-right: 20px;
  border: 1px solid #ccc;
  border-radius: 20px;
  margin-bottom: 10px;
  background-color: #ffffff;
  max-width: 300px;
  display: block;
  margin-top: 20px;
}


/* Base style for all messages */
.message {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  margin: 10px 0;
  text-align: left;
  display: inline-block;
  max-width: 70%;
  /* Remove background-color here to allow variants */
}

.message.sent {
  background-color: #b7b2eb;
  align-self: flex-end;
  margin-left: auto;
}

.message.received {
  background-color: #e4e4e4;
  align-self: flex-start;
  margin-right: auto;
}



.user-avatar{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
} 

.nav-bar p{
    color: white;
    font-size: 16px;
    margin: 0;
    text-align: right;
}

.header-top-login{
    font-size: 10px;
    color: white;
    display: flex;
    justify-content: space-between;
}

.header-nav-wrapper{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #6B61D8;
  color: white;
}

.user-info h4{
  margin:10px auto;
}

.like-button{
  display: flex;
  justify-content: center;
  margin-top: 20px;
  align-items: center;

}

.like-button button{
  background-color: #6B61D8;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-right: 28px;
}

.btn-element-show{
    background-color:#ffffff;
    font-size: 16px;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    text-decoration: none;
    margin: 18px 28px;
}

.name-img-wrapper{
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 10px auto;
}

.name-img-wrapper .user-img{
  margin-right: 20px;
}

.user-list{
  background-color: #ccc;
  box-shadow: #333 0px 0px 10px;
  padding: 20px;
  border-radius: 5px;
  margin: 20px auto;
  max-width: 1000px;
}

.user-list h3{
  margin: 0;
}

.user-list p{
  margin: 5px 0;
}




h2{
  margin-top: 80px;
}

.nav-bar ul{
  display: flex;
  justify-content: center;
}

.nav-bar ul li{
    margin: 0 15px;
}

.header{
    background-color: #6B61D8;
    padding: 50px;
}

.header h1{
    margin: 0;
    font-size: 24px;
    color: white;
    text-align: center;
}

.header-top{
    background-color: #6B61D8;
    padding: 20px;

}

.header-top h1{
    margin: 0;
    font-size: 20px;
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 30px;
}

.search-bar{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar input[type="text"]{
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 30px;
}

h3{
  text-align: center;
}

.btn-element-delete{
    background-color: #6B61D8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.search-bar p{
    margin-right: 10px;
    font-size: 16px;
}

li{
    list-style: none;
}

.btn-login, .btn-signup{
    background-color: #D9D9D9;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.back-btn{
    text-align: center;
    margin-top: 30px;
    margin-top: 80px;
}

.like-action{
  background-color:#6B61D8;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  display: inline-block;
}

.btn-element{
    background-color: #D9D9D9;
    font-size: 16px;
    padding: 20px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    text-decoration: none;
    margin-left: 16px;
    margin: 28px 38px;

}



.field{
  text-align: center;
  padding: 26px;
}

.btn-element:hover{
    background-color: #D9D9D9;
}   


.actions{
  text-align: center;
}

.back{
  padding: 30px;
}

.form-group{
  display: flex;
    margin-bottom: 20px;
    flex-direction: column;
    width: 500px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    margin: 0 auto;
}

.message-form input[type="text"]{
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    margin: auto;
}


.btn-element-search{
    background-color: #6B61D8;
    font-size: 16px;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    margin-left: 16px;
    margin: 18px 28px;
}


.users-count{
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    color: #333;;
}

.match-status{
    color: #6B61D8;
    font-weight: bold;
}

.no-chatrooms{
    text-align: center;
    margin-top: 90px;
}

.senser_{
  text-align: right;
}

#messages{
    width: 800px;
    max-height: 1500px;
    padding: 10px;
    border: 4px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

.button-group{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin: auto;
} 

.message-form{
    align-items: center;
    margin-top: 20px;
    margin: auto;
    text-align: center;
}

.chatroom-item{
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    max-width: 600px;
    text-align: center;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-element-chat{
    background-color: #6B61D8;
    font-size: 16px;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    margin: 5px 26px;
    display: inline-block;
    text-align: left;
} 

.match-item{
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    max-width: 600px;
    text-align: center;
    margin: 20px auto;
} 

.match-item p{
  margin: 18px auto;
}

.chat-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    align-items: center;
    padding-left: 10px;
}

.match-item h3{
    margin: 0;
    font-size: 20px;
    color: #333;
    margin-left: 16px;
    margin-right: 0;
}




.chat-button button{
    background-color:#D9D9D9;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;}

.chat-button a {
    background-color: #6B61D8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-right: 10px;
    margin: auto;

}

.compatibility-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.compatibility-header{
    text-align: center;
}

.name-img-wrapper{
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 10px auto;
}

.icon-bar {
  align-items: center;
  display: flex;
  justify-content: right;
}

.icon-bar img {
    margin-right: 5px;
    margin-left: 28px;
}

.user-avatar{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

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

.btn-element-like{
    background-color: #6B61D8;
    font-size: 16px;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    margin: 5px 26px;
    display: inline-block;
    text-align: center;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"]{
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    margin: auto;

}

.form-control{
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    margin: auto;
}


.form-group label{
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group p{
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.form-group span{
    margin-bottom: 10px;
    font-weight: bold;
}

.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.header h1{
    margin: 0;
    font-size: 15px;
    color: white;
    text-align: center;
    padding: auto 20px;
}

.header-menu{
    list-style: none;
    display: flex;
    gap: 20px;
    color: white;
}

.header-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  text-decoration: none;
  color: white
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 1000;
  display: none; /* 初期状態では非表示 */
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu.show {
  display: block; /* showクラスで表示 */
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

.page-title{
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
}

.login{
  padding: 50px;
  display: flex;
  gap: 36px;
  justify-content: center;


}

.search-bar{
  margin-top: 60px;
}



.field{
  text-align: center;
  padding: 16px;
}

.no-users{
  text-align: center;
}

.no-users h4{
  padding-bottom:  20px;
  padding-top: 40px;
}

.no-users a{
  text-align: center;
}

h2{
  text-align: center;

}



@media screen and (max-width: 768px) {
    .header-nav-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .header-top-login {
        flex-direction: column;
        align-items: center;
    }
    
    .user-info h4 {
        text-align: center;
    }
    
    .message-recipient {
        max-width: 100%;
        margin-top: 10px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }

    .like-button {
        flex-direction: column;
        align-items: center;
    }
    .like-button button {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .btn-element-show, .btn-element-like {
        width: 100%;
        margin: 10px 0;
    }
    .btn-element-search {
        width: 100%;
        margin: 10px 0;
    }
    .message-form input[type="text"] {
        width: 100%;
    }
    .chatroom-item, .match-item {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .search-bar input[type="text"] {
        width: 100%;
        margin-right: 0;
    }
    .search-bar {
        flex-direction: column;
        align-items: center;
    }
    .icon-bar {
        justify-content: center;
        margin-top: 10px;
    }
    .icon-bar img {
        margin: 0 5px;
    }
    .compatibility-content {
        max-width: 100%;
        padding: 10px;
    }
    .compatibility-header {
        text-align: center;
    }
    .navigation {
        flex-direction: column;
        align-items: center;
    }
    .btn-element-like {
        width: 100%;
        margin: 10px 0;
    }

    .search-bar p {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .search-bar input[type="text"] {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .search-bar {
        flex-direction: column;
        align-items: center;
    }

    .form-group {
        width: auto;
        padding: 10px;
    }

    .chat-button {
        flex-direction: column;
        align-items: center;
    }

    .message-form {
        width: 100%;
        margin: 10px 0; 
    }


}