* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Meiryo UI","Hiragino Kaku Gothic ProN";
}

a {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

header {
  height: 50px;
  width: 100%;
  background-color: rgba(143, 188, 143, 0.9);
  position :fixed;
  top: 0;
  z-index: 10;
}

.header-left {
  float: left;
  margin-left: 10px;
}

.header-right {
  float: right;
  margin-right: 10px;
}

header a {
  height: 50px;
  padding: 10px 5px 0 5px;
  color: white;
  display: block;
  transition: all 0.5s;
}

header a:hover {
  background-color: rgba(180, 230, 180, 0.9);
}

.language {
  font-size: 20px;
}

.top-wrapper {
  padding-top: 60px;
  background-image: url(img/topwrapper.png);
  background-size: cover;
  color: white;
  text-align: center;
}

 h1 {
  opacity: 0.9;
  font-size: 52px;
  Margin: 50px 0 10px 0;
  letter-spacing: 8px;
  text-shadow: 2px 2px 2px dimgray;
}

h3 {
  opacity: 0.9;
  font-size: 32px;
  Margin: 10px 0 10px 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 2px dimgray;
}

h2 {
  opacity: 0.9;
  font-size: 35px;
  letter-spacing: 4px;
  text-shadow: 2px 2px 2px dimgray;
}

.titles {
  display: flex;
  justify-content: center;
  position: relative;
}
.japanese {font-family: "Times New Roman"}
.english {font-family: "Times New Roman"}
.Deutsche {font-family: "Times New Roman"}
.français {font-family: "Times New Roman"}
.русский {font-family: "Times New Roman"}
.Português {font-family: "Times New Roman"}

.titles .anime{
  position: absolute;
  animation: title 35s infinite;
  opacity: 0;
}

.titles:after{
  content: 'spacer';
  font-size: 3.5em;
  opacity:0;
  display: block;
}

@keyframes title{
  0%{ opacity: 0;}
  8.3%{ opacity: 0.5;}
  16.7%{ opacity: 1;}
  25%{ opacity: 0.1;}
  33.3%{ opacity: 0;}
  100%{ opacity: 0;}
}

.titles .anime:nth-of-type(1) {
    animation-delay: 0s;
}
.titles .anime:nth-of-type(2) {
    animation-delay: 7s;
}
.titles .anime:nth-of-type(3) {
    animation-delay: 14s;
}
.titles .anime:nth-of-type(4) {
    animation-delay: 21s;
}
.titles .anime:nth-of-type(5) {
    animation-delay: 28s;
}

.lesson {
  float: left;
  width: 25%;
}

.contentBtnWrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  width: 95%;
  display: block;
}

.contentBtn {
  width: 100%;
  border-radius: 20px;
  transition: 0.5s;
}

.contentBtn:hover {
  transform: scale(1.2);
  opacity: 0.6;
}

.contentBtnWrap h2 {
  position: absolute;
  top: 18%;
  left: 7%;
  width: 86%;
  letter-spacing: 2px;
  color: white;
  text-shadow: 2px 2px 2px dimgray

}

.text-contents {
  text-align: left;
  width: 95%;
  display: inline-block;
  height: 70px;
  margin-top: 15px;
  font-size: 20px;
  text-shadow: 1px 1px 2px dimgray
}

.clear {
  clear: left;
}

footer p {
  opacity:0.9;
  font-size: 14px;
}

footer {
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: rgba(143, 188, 143, 0.9);
  color: white;
  text-align: center;
}
