/*==========================
body
===========================*/


html {
  min-height: 100%;
}

body {
  /* Combining a subtle gradient with the cloud image and the barely visible starry background */
  background: 
    /* Cloud background image */
    url(../img/starybg.gif),
    url(../img/blueoverlaypxl.jpg),
    url(../img/bgclouds.png),  
    
    /* Starry background image, kept very subtle */
    
    /* Darker gradient for better contrast */
    linear-gradient(rgba(37, 37, 37, 0.999),rgba(46, 46, 46, 0.999));  /* Subtle darker gradient */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Use 'multiply' to reduce saturation and give more focus to bgclouds */
  background-blend-mode:soft-light;  /* Reduces saturation while blending */

  scroll-behavior: smooth;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: auto;
}





a {
    text-decoration: none;
    color: #f0cfff;
}

a:hover {
    text-decoration: none;
    color: #fd8fff;
}

/*==================================
nav
==================================*/

h1{
    text-align: center;
    padding: 15px;
}

nav {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 300px;
    background: #f0d4fc;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: all .5s;
    z-index: 3;
    opacity: 0;
  }
  .open nav {
    left: 0;
    opacity: 1;
  }
  nav .inner {
    padding: 25px;
  }
  nav .inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  nav .inner ul li {
    position: relative;
    margin: 0;
    border-bottom: 1px solid #4D104D;
  }
  nav .inner ul li a {
    display: block;
    color: #4D104D;
    font-weight: bold;
    font-size: 14px;
    padding: 1em;
    text-decoration: none;
    transition-duration: 0.2s;
  }
  nav .inner ul li a:hover {
    background: #a875a8;
    color: #f0d4fc;
    font-weight: bold;
  }
  /*================================
  .toggle_btn
  =================================*/

#navArea {
  position: relative;
}


.toggle_btn {
  display: block;
  /* position: fixed; */
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  transition: all .5s;
  cursor: pointer;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.toggle_btn span {
  display: block;
  position: absolute;
  right: 30px;
  width: 30px;
  height: 2px;
  background-color: white;
  border-radius: 4px;
  transition: all .5s;
}
.toggle_btn_area {
  cursor: pointer;
  padding: 10px 20px; /* Adjust this to expand the clickable area */
  display: flex;
  justify-content: center;
  align-items: center;
}
.toggle_btn span:nth-child(1) {
  top: 34px;
}
.toggle_btn span:nth-child(2) {
  top: 44px;
}
.toggle_btn span:nth-child(3) {
  top: 54px;
}
.open .toggle_btn span {
  background-color: #fff;
}
.open .toggle_btn span:nth-child(1) {
  -webkit-transform: translateY(10px) rotate(-315deg);
  transform: translateY(10px) rotate(-315deg);
}
.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}
.open .toggle_btn span:nth-child(3) {
  -webkit-transform: translateY(-10px) rotate(315deg);
  transform: translateY(-10px) rotate(315deg);
}



/*===================================
#mask
====================================*/
#mask {
  display: none;
  transition: all .5s;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #7e3f9b;
  opacity: .8;
  z-index: 2;
  cursor: pointer;
}

/*=========================================
main
=========================================*/

main {
    flex-grow: 1;
    padding: 50px;
}

.box_area {
    background-color: #f0d4fc;
    border-radius: 15px;
    width: 600px;
    margin: auto;
    padding: 10px;
    box-shadow: 5px 5px 5px 5px #464178(0, 0, 0, 0.8);
}

header {
  height: 100px;
  background-color: #7e3f9b;
  display: flex;
  justify-content: space-between;
}
.oleo-script-bold {
  font-family: "Oleo Script", serif;
  font-weight: 700;
  font-style: normal;
}

.menu_name {
  display: flex;
  justify-content: left;
  align-items: center;
  margin: 30px 15px;

}
.site-title{
  color:white;
  font-size: larger;
}

.menu_name img{
    width: 40px;
}

footer {
  background-color: #7e3f9b;
  height: 100px;
}

.foot_img {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.foot_img img {
  width: 40px;
  height: auto;
  margin: auto 10px;
}

.copyright {
  text-align: center;
  display: flex;
  justify-content: center;
}


/*=============================
form
==============================*/

.log {
    text-align: center;
    padding: 10px;
    margin: 30px 30px 50px;
}


input {
    background-color: white;
    margin: 5px;
    border-radius: 15px;
    padding: 5px;
}
.rss {
    border-radius: 15px;
    width: 90%;
    padding: 5px;
    margin: 10px;
    color: #FAECFC;
    background-color: #9359AE;
    
}

button {
    border-radius: 15px;
    width: 200px;
    padding: 5px;
    margin: 10px;
    color: #FAECFC;
    background-color: #212577;
    border: 2px solid #331B46;
    
}


/*====================================
Registration
======================================*/

.register_html {
  height: 100%;
}

.gender_select {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.gender_select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}
#learning_language_level{
  width:75%;}


.gender_select select {
    appearance: none;
    min-width: 100px;
    height: 2.8em;
    padding: .4em calc(.8em + 20px) .4em .8em;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}

.country_select {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 0 170px;
}

.country_select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

.country_select select {
    appearance: none;
    min-width: 100px;
    height: 2.8em;
    padding: .4em calc(.8em + 20px) .4em .8em;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}


.div_form_box{
  display:flex;
  margin: 10px 5px;
}

.div_form_box_label{
  width:100px;
  padding-top:10px;
  text-align:left;
}

.div_form_box_input{
  width:420px;
  text-align: left;
}

.div_form_box_input input{
  width:100%;
}


.learning_select {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}

.learning_select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

.learning_select select {
    appearance: none;
    min-width: 100px;
    max-width: 300px;
    height: 2.8em;
    padding: .4em calc(.8em + 20px) .4em .8em;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}
/*==================================
DASHBOARD
==================================*/
#welcome{
  color:white;
  margin-top: 50px;
}

.dashboard {
  display: flex;
  justify-content: center;
  height: 100vh;
  margin: 40px auto;
}

/* User Card styling */
.userCard {
  width: 400px;
  height: 650px;
  background-color: #a182d1;
  color: white;
  display: flex;
  align-items: top center;
  justify-content: center;
  padding-top: 50px;
  margin-right: 20px;
  border-radius: 50px;
  box-shadow: 5px 5px 5px 5px #464178;
}

.userCard p {
  text-align: left;
  padding-left:60px;
  padding-right:60px;
  display:flex;
}

.profile {
  text-align: center;
}

.profile img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

.profile h2 {
  margin: 10px 0 0 0;
}

.profile p {
  margin: 5px 0;
  color: #ffffff;
}

/* Main content styling */
.main-content {
  /* flex-grow: 1; */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;

}

/* Grid for the top cards (2 items) */
.cards-top {
  display: flex;
  justify-content: space-between;
}

/* Grid for the bottom cards (3 items) */
.cards-bottom {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  justify-content: space-between;
}

/* Styling for card-top and card-bottom */
.card-top,
.card-bottom {
  background: linear-gradient(to bottom, #e945f3, #59c8f0);
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
}

.card-top {
  height: 350px;
  width: 350px;
  box-shadow: 5px 5px 5px 5px #464178(0, 0, 0, 0.8);
}

.card-bottom {
  height: 225px;
  width: 225px;
  box-shadow: 5px 5px 5px 5px #464178(0, 0, 0, 0.8);

}

/* Hover effect for cards */
.card-top:hover,
.card-bottom:hover {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  html, body {
    height: 100%;
    overflow-x: hidden;
  }
  .main-content {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 80%;
  }

  .userCard {
    width: 90%;
    height: 580px;
    margin: 30px;
  }

  .profile img {
    width: 120px;
    height: 120px;
  }

  .card-top {
    margin-top: 30px;
    height: 45%;
    width: 45%;
  }
  
  .card-top img {
    width: 70%;
  }

  
  .card-bottom {
    height: 80px;
    width: 80px;
  }
  
  .card-bottom img {
    width: 40%;
  }

  button {
    width: 120px;
  }

}



/*=====================================
MATCHING
=======================================*/


/*=====================================
Profile edit 
=======================================*/

.upper_main button{
 width: auto;
 font-size: 12px;
 margin: 10px;
 padding: 3px 20px;
}

.upper_btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
}

.upper_main {
  background-color: #7e3f9b;
  width: 100%;
  border-radius: 15px 15px 0 0;
}

.profile_box {
  background-color: #f0d4fc;
  border-radius: 15px;
  width: 800px;
  margin: auto;
  box-shadow: 5px 5px 5px 5px #464178(0, 0, 0, 0.8);
}

.profile_box h4 {
  text-align: left;
  padding: 20px;
}

.bottom_btn {
  text-align: left;
}
.profile_box img {
  width: 50px;
  margin: 20px;
}


.bottom_name-mail {
  display: flex;
  justify-content: space-between;
}

.bottom_user-telf {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.bottom_text {
  display: flex;
  flex-wrap: wrap;
}

.bottom_level {
  display: flex;
  justify-content: space-between;
  margin: 10px;
}

.level_box {
  justify-content: space-between;
  margin-right: 10px;
  margin-top: 20px;
}

.text_level {
  text-align: left;
}

.small_btn {
  width: 80px;
}

.btm_txt_box {
  display: flex;
  flex-wrap: wrap;
}

.btm_txt_box input{
  width: 300px;
  padding: 10px;
}

.bottom_main {
  padding: 20px;
}

.bottom_main textarea{
  width: 98%;
  height: 150px;
  background-color: #fff;
  text-align: left;
  scroll-behavior: inherit;
  border-radius: 15px;
  padding: 10px;
}

.bottom_main p {
  text-align: left;
  padding: 10px 10px 0 10px;
}


.submit {
    border-radius: 15px;
    width: 200px;
    padding: 5px;
    margin: 10px;
    color: #FAECFC;
    background-color: #5972ae;
    border: 2px solid #1b3646;
    margin: 40px;
}



/*=====================================
Flashcards
=======================================*/

.flash_html, .flash_body {
  height: 100%;
}


.flash_body {
  display: flex;
  flex-direction: column;
}

.flashcards_main {
  background-color: #f0d4fc;
  border-radius: 15px;
  width: 800px;
  display: flex;
  margin: auto;
  box-shadow: 5px 5px 5px 5px #464178(0, 0, 0, 0.8);
  min-height: 500px;
}


.flash_left {
  background-color: #672685;
  font-weight: bold;
  border-radius: 15px 0 0 15px;
  /* width: 35%; */
}

.left_title {
  border-bottom: 3px solid #000000;
  text-align: left;
  padding: 20px;
}

.left_words {
  text-align: end;
  margin: 10px;
}

.left_words ul, .left_words li {
  list-style-type: none;
}

.left_words p {
  padding: 10px;
}

.flash_right {
  background-color: #f0d4fc;
  font-weight: bold;
  border-radius: 0 15px 15px 0;
  width: 65%;
  padding: 10% 0;
}

.flash_right button {
  display: block;
  width: 300px;
  margin: 30px auto;
  padding: 10px 0;
}
.flashcards_button {
  display: none;
}
.next{
  border-radius: 15px;
  width: 200px;
  padding: 5px;
  margin: 10px;
  color: #FAECFC;
  background-color: #566aac;
  border: 2px solid #180f50;
}


@media (max-width: 767px) {
  .flash_left {
    display: none;
  }
  .asd {
    padding: 0;
    align-items: center;
    
  }

  .flashcards_button {
    display: block;
    justify-content: center;
  }
  .flashcards_main {
    width: 90%;
    display: block;
    
  }
  .flash_right {
    width: 100%;
    align-items: center;
    background-color: transparent;
  }



  /* モーダルを開くボタン */
.modal-open{
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 16px;
  font-weight: bold;
  width: 300px;
  height: 60px;
  color: #fff;
  background: #000;
  border: none;
  cursor: pointer;
  translate: -50% -50%;
}

/* モーダルと背景の指定 */
.modal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/* モーダルの擬似要素の指定 */
.modal:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin-left: -0.2em;
}

/* クラスが追加された時の指定 */
.modal.is-active{
  opacity: 1;
  visibility: visible;
}

/* モーダル内側の指定 */
.modal-container{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 600px;
  width: 90%;
}

/* モーダルを閉じるボタンの指定 */
.modal-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

/* モーダルのコンテンツ部分の指定 */
.modal-content{
  background: #fff;
  text-align: left;
  line-height: 1.8;
  padding: 20px;
}

/* モーダルのコンテンツ部分のテキストの指定 */
.modal-content p{
  margin: 1em 0;
}


}


/*=====================================
辞書
=======================================*/

.jisho_html, .jisho_body {
  height: 100%;
}

.jisho_body {
  display: flex;
  flex-direction: column;
}

.jisho_main {
  background-color: #f0d4fc;
  border-radius: 15px;
  width: 800px;
  display: flex;
  margin: 50px auto auto;
  box-shadow: 5px 5px 5px 5px #464178(0, 0, 0, 0.8);
  min-height: 500px;
}


.jisho_left {
  background-color: #7e3f9b;
  font-weight: bold;
  border-radius: 15px 0 0 15px;
  width: 35%;
}

.left_title_dic {
  border-bottom: 3px solid #000000;
  text-align: left;
  padding: 20px;
}

.left_words_dic {
  text-align: end;
  margin: 10px;
}

.left_words_dic p {
  padding: 10px;
}

.left_words_dic ul, .left_words_dic li {
  list-style-type: none;
}

.jisho_right {
  background-color: #f0d4fc;
  font-weight: bold;
  border-radius: 0 15px 15px 0;
  width: 65%;
  padding: 10% 0;
}

.jisho_right p {
  text-align: left;
  padding: 10px 0 10px 20px;
}

.language_phrase {
  list-style-type: none;
  text-align: left;
  padding: 10px 0 10px 20px;
}

.language_phrase li {
  padding: 10px 0 10px 30px;
}

.lang_select {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.lang_select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #672685;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

.lang_select select {
    appearance: none;
    min-width: 50px;
    max-width: 150px;
    height: 2.2em;
    padding: .4em calc(.8em + 20px) .4em .8em;
    border: 1px solid #5c2177;
    border-radius: 15px;
    background-color: #f0d4fc;
    color: #5c2177;
    font-size: 1em;
    cursor: pointer;
}

.add_w {
  font-size: 10px;
  text-align: right;
}

.add_w img {
  width: 20px;
}

.add_w input[type="submit"] {
  background-color: #44105c;
  color: #f0d4fc;
}

.add_op {
  font-size: 10px;
  padding: 5px;
}

.add_op option{
  background-color: #44105c;
  color: #f0d4fc;
}

.left_words_dic a {
  margin: 3px;
}

.left_words_dic img {
  width: 12px;
}

/* button add, del, edit */

.add_del {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


.add_del_but {
  display: flex;
}

.add, .del, .edit {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.add img, .del img, .edit img {
  width: 12px;
}





/*=====================================
Top page
=======================================*/

.top_body {
  height: 100%;
}

#main_top {
  width: 800px;
  margin: auto;
}

#main_top button {
  width: 300px;
  margin: 20px auto;
}

#main_top button a{
  width: 300px;
  margin: 20px auto;
  color: #dfc3e7;
  font-weight: bold;
}

#main_top button:hover {
  display: block;
  width: 300px;
  margin: 20px auto;
  opacity: 0.7;
}

.img_box {
  display: flex;
  gap: 100px;
}

.img_dic {
  position: relative;
  display: inline-block;
  text-align: center;
}

.title_dic {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.text_dic {
  font-size: 20px;
  font-weight: bold;
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #000000;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 5px;
}

.img_dic img {
  width: 300px;
}

.img_box_center {
  display: flex;
  justify-content: center;
}

.img_dic_center {
  position: relative;
  display: inline-block;
  text-align: center;
}

.title_dic_center {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.text_dic_center {
  font-size: 20px;
  font-weight: bold;
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #000000;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0 5px;
}

.img_box_center img {
  width: 300px;
}

.start_button input[type="submit"]{
  margin: 40px auto;
  padding: 10px 40px;
  background-color: #9359AE;
  color: #FAECFC;
  border: 3px solid #4D104D;
}

.start_button input[type="submit"] a{
  margin: 20px auto;
  color: #dfc3e7;
  font-weight: bold;
}

.start_button input[type="submit"]:hover {
  display: block;

  opacity: 0.7;
}

/*スマホ版　レスポンシブ*/
@media (max-width: 767px) {


  .jisho_body {
    width: 100%;
  }

  .jisho_main {
    flex-direction: column;
    width: 100%;
  }

  .jisho_left,
  .jisho_right,
  .language_phrase {
    width: 100%;
    border-radius: 0px;
  }

  #main_top {
    width: 100%;
  }

  .img_box, .img_box_center {
    flex-direction: column;
    gap: 20px;
  }

  .text_dic, .text_dic_center {
    font-size: 25px;
  }

  .img_dic img {
    width: 200px;
  }

  .img_box_center img {
    width: 200px;
    margin: 20px 0;
  }


  a {
      text-decoration: none;
      color: #331B46;
  }
  
  a:hover {
      text-decoration: none;
      color: #dfc3e7;
  }

  .box_area{
      width: 300px;
      height: 100%;
  }
}
  /*====================================
birthday
======================================*/



  /*====================================
gender
======================================*/
  
@media (max-width: 900px) {
/*====================================
Signup
======================================*/
.register_html {
  height: 100%;
}




/*====================================
gender
======================================*/

.gender_select {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.gender_select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

.gender_select select {
    appearance: none;
    min-width: 100px;
    height: 2.8em;
    padding: .4em calc(.8em + 20px) .4em .8em;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}

.country_select {
  display: inline-flex;
  align-items: center;
  position: relative;
  /*margin: 0 170px;*/
}

.country_select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

.country_select select {
    appearance: none;
    min-width: 100px;
    height: 2.8em;
    padding: .4em calc(.8em + 20px) .4em .8em;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
}


.div_form_box{
  display:flex;
  margin: 10px 5px;
}

.div_form_box_label{
  width:120px;
  padding-top:10px;
  text-align:right;
}

.div_form_box_input{
  width:150px;
  text-align: left;
  align-items: left;
}

.div_form_box_input input{
  width:100%;
}


.learning_select {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}

.learning_select::after {
    position: absolute;
    right: 15px;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}
#learning_language_level{
  width:100%;
}
.learning_select select {
    appearance: none;
    min-width: 100px;
    max-width: 125px;
    height: 2.8em;
    padding: .4em calc(.8em + 20px) .4em .8em;
    border: 1px solid #d0d0d0;
    border-radius: 25px;
    background-color: #fff;
    color: #333333;
    font-size: 1em;
    cursor: pointer;
    width: 426px;
}

}