@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);

*, *::before, *::after
{
  * {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
      -ms-box-sizing: border-box;
          box-sizing: border-box;
  }
}
html, body, div, canvas {
  margin: 0;
  padding: 0;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -o-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll; /* has to be scroll, not auto */
  -webkit-overflow-scrolling: touch;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
header a {
  text-decoration: none;
  padding: 0 1em;
}
#USA  { height:1.3em; }
#Japan { 
  width:1.9em; 
  border: 1px solid black;
}
#english-profile:target {/*display: block;*/}
#japanese-profile { display: none; }
#japanese-profile:target { display: block; }
.profile-card {
  /*overflow: auto;*/
  background: #FFFFFF;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  border-radius: 10px;
}
header {
  -webkit-border-top-left-radius: 10px;
  -webkit-border-top-right-radius: 10px;
  -moz-border-radius-topleft: 10px;
  -moz-border-radius-topright: 10px;
  -ms-border-radius-topleft: 10px;
  -ms-border-radius-topright: 10px;
  -o-border-radius-topleft: 10px;
  -o-border-radius-topright: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
header:before {}
header h1 {
  margin: 0;
  padding-bottom: 0;
  color: #443800;
  font-style: italic;
}
header h2 {
  margin: 0;
  color: #000;
}
header img {
  -webkit-border-top-left-radius: 10px;
  -webkit-border-top-right-radius: 10px;
  -moz-border-radius-topleft: 10px;
  -moz-border-radius-topright: 10px;
  -ms-border-radius-topleft: 10px;
  -ms-border-radius-topright: 10px;
  -o-border-radius-topleft: 10px;
  -o-border-radius-topright: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.button {
  text-align: center;
  margin: 1em auto;
  background-color: #DC403B;
  cursor: pointer;
  color: white;
  padding: 15px 10px;
  position: relative;
  box-shadow: 2px 2px 2px #252525;
}

.button a:hover, 
.button a:visited, 
.button a:link, 
.button a:active {
    text-decoration: none;
    color: white;
}
.button-link {}
.button:hover {
  background: #E4342E;
  box-shadow: inset 2px 2px 5px #252525;
}

.profile-bio { background:#ffffff; }
.profile-bio p {
  text-align: left;
  color: #000;
}
.profile-bio ul {
  margin: 0;
  padding: .5em;
  border: none;
}
.profile-bio h3 {
  padding-left: 0px;
  margin-bottom: 0;
  color: #000;
}
.profile-bio li {
  list-style-type: none;
  padding-bottom: .3em;
  margin-top: 0;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
}
.profile-social-links {
  text-align: center;
  margin: 0;
  padding: .25em;
  line-height: 0;
  -moz-border-radius: 0px 0px 10px 10px;
  -webkit-border-radius: 0px 0px 10px 10px;
  -ms-border-radius: 0px 0px 10px 10px;
  -o-border-radius: 0px 0px 10px 10px;
  border-radius: 0px 0px 10px 10px;
  background: #FAFAFA;
}
.profile-social-links li {
  list-style-type: none;
  display: inline-block;
  margin: 1em 0.9em;
  line-height: 0;
  padding: 0;
}
.profile-social-links li a {}
.profile-social-links a:hover img {
  -webkit-filter: grayscale(0%);
  -moz-filter: grayscale(0%);
  -ms-filter: grayscale(0%);
  -o-filter: grayscale(0%);
  filter: grayscale(0%);
  opacity: 1;
}
.profile-social-links li a svg[role=img] {
  max-width: 40%;
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.5;
  line-height: 0;
}
footer {
  width: 100%;
  border-top: 1px solid #E0E0E0;
}
/* English Version */
.profile-card-en {
  text-align: center;
}
header h1 .en {
  font-weight: 400;
  font-size: 2em;
  font-family: 'Open Sans', sans-serif;
}
header h2.en {
  font-style: italic;
  font-size: 1.2em;
  font-weight: 600;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 0.5em;
  font-family: 'Open Sans', sans-serif;
}
.button-en {
  width: 150px;
  font-size: 1.3em;
}
.profile-bio-en p {
  margin-top: 1em;
  font-size: 1.105em;
  font-weight: 400;
  line-height: 1.45em;
  font-family: 'Open Sans', sans-serif;
  padding-left: 1em;
  padding-right: 1em;
}
ul .education-en {
  margin: 0;
  padding: .5em;
  border: none;
}
li .education-en {
  padding-bottom: .3em;
  font-family: 'Open Sans', sans-serif;
}
h3 .education-en {
  font-size: 1.2em;
  font-weight: 600;
  padding-top: .3em;
  padding-bottom: .3em;
  font-family: 'Open Sans', sans-serif;
}
footer.footer-en{
  padding-top: .5em; padding-bottom: .5em;
  font-size: 0.8em;
  font-family: 'Open Sans', sans-serif; 
}
/* Japanese Version */
.profile-card-ja {
  text-align: center;
  /*display: none; */
}
header h1 .ja {
  font-weight: 400;
  font-size: 2em;
  font-family: 'Open Sans', sans-serif;
}
header h2 .ja {
  font-size: 1.1em;
  font-weight: 400;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 0.5em;
  font-family: 'Open Sans', sans-serif;
}
.button-ja {
  width: 150px;
  font-size: 1.3em;
}
.profile-bio-ja p {
  margin-top: 1em;
  font-size: 1.05em;
  font-weight: 400;
  line-height: 1.35em;
  font-family: 'Open Sans', sans-serif;
  padding-left: 1em;
  padding-right: 1em;
}
ul .education-ja {
  margin: 0;
  padding: .5em;
}
li .education-ja {
  padding-bottom: .3em;
  font-family: 'Open Sans', sans-serif;
}
h3 .education-ja {
  font-size: 1.2em;
  font-weight: 600;
  padding-top: .3em;
  padding-bottom: .3em;
  font-family: 'Open Sans', sans-serif;
}
footer .footer-ja{
  padding-top: .5em; padding-bottom: .5em;
  font-size: 0.8em;
  font-family: 'Open Sans', sans-serif; 
}
footer a {
  font-size: .9em;
  color: darkblue;
  text-decoration: underline solid green;
}
footer a:visited { color: black; }
/* small screens */
.off { display: none; visibility: hidden; }
@media screen and (max-width: 484px) {
  .profile-card {
    max-width: 90%;
  }
  canvas {
    display: none;
    visibility: hidden;
  }
  body {
  background: radial-gradient(circle at 30% 90%, #91ffa4, #88fea9, #70fcb7, #4bf8ca, #07f2dd, #00ebee, #00e4f8, #00dffe, #00ddff) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;}
}
/* medium screens */
@media screen and (min-width: 485px) {
  .profile-card {
    min-width: 400px;
    max-width: 70%;
  }
  canvas {
    display: none;
    visibility: hidden;
  }
  body {
  background: radial-gradient(circle at 30% 90%, #91ffa4, #88fea9, #70fcb7, #4bf8ca, #07f2dd, #00ebee, #00e4f8, #00dffe, #00ddff) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
/* Large screens */
@media screen and (min-width: 700px) {
  .profile-card {
    margin: 1em 0;
    max-width: 500px;
    box-shadow: rgba(255, 255, 100, 0.4) 5px 5px, rgba(255, 255, 100, 0.3) 10px 10px, rgba(255, 255, 100, 0.2) 15px 15px, rgba(255, 255, 100, 0.1) 20px 20px, rgba(255, 255, 100, 0.05) 25px 25px;
  }
@media screen and (min-width: 900px) {
  .profile-card {
    margin: 5em 0;
    max-width: 500px;
    box-shadow: rgba(255, 255, 100, 0.4) 5px 5px, rgba(255, 255, 100, 0.3) 10px 10px, rgba(255, 255, 100, 0.2) 15px 15px, rgba(255, 255, 100, 0.1) 20px 20px, rgba(255, 255, 100, 0.05) 25px 25px;
  }
}
