/*
Author:  Leonard Garcia
All Rights Reserved

    Created on : Nov 8, 2024, 8:25:49 AM
    Author     : Leonard Garcia
*/
 body {
    background-color: #121E31;
}
h1 {
  font-size: 4rem;
  font-weight: 900;

  /* Big gradient so movement is visible */
  background-image: linear-gradient(
    90deg,
    #ff0080,
    #00b3ff,
    #00ff6a,
    #ff0080
  );

  background-size: 300% 300%;

  /* NetBeans hates this, but the prefixed version silences it */
  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  animation: slideGradient 6s linear infinite;
}

@keyframes slideGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

#TOEICheader {
    color: turquoise;
    text-shadow: 0px 2px 3px #555;
    font-family: "Alegreya Sans", serif;
    font-size: 30px;
    font-weight: 800;
    font-style: normal;
    position: absolute;
    left: 50px;
    top: 5px;
    padding:5px;
    margin-bottom: 30px;
}
#gramTheme {
    border:         3rem;
    border-color:   #00b3ff;
    border-radius:  10%;
    border-style:   groove;
    margin-top:     30px;
    margin-left:    30px;
    width:          30%;
    height:         200px;
}
.norm {
    background-color: lightseagreen;
    width: fit-content;
    padding: .5rem;
}

nav {    
    display: block;
    text-align: left;                             /*center;*/
    font-family: Helvetica;
    font-style: oblique;
    font-weight: 600;
    position: absolute;
    left: 35px;
    z-index: 1;
}
nav ul {
  margin: 0;
  padding:0;
  list-style: none;
}
.nav a {
  display:block; 
  background: #111; 
  color:#00b3ff;             
  text-decoration: none;
  padding: .8em .8em;                             /*.8em 1.8em;*/
  text-transform: uppercase;
  font-size: 70%; letter-spacing: 1.1px;        /*80%;letter-spacing: 2px;*/
  text-shadow: 0 -1px 0 #000;
  position: relative;
}
.nav{  
  vertical-align: top; 
  display: inline-block;
  box-shadow: 1px -1px -1px 1px #000, -1px 1px -1px 1px #fff, 0 0 6px 3px #fff;
  border-radius:6px;
}
.nav li{
  position: relative;
}
.nav > li { 
  float:left; 
  border-bottom: 4px #aaa solid; 
  margin-right: 3px;                    /*5px*/
} 
.nav > li > a { 
  margin-bottom:1px;
  box-shadow:inset 0 2em .33em -.5em #555; 
}
.nav > li:hover , .nav > li:hover >a{  border-bottom-color:darkgreen;}
.nav li:hover > a { color:yellow; }
.nav > li:first-child  { border-radius: 4px 0 0 4px;} 
.nav > li:first-child>a{border-radius: 4px 0 0 0;}
.nav > li:last-child  { 
      border-radius: 0 0 4px 0; 
      margin-right: 0;
} 
.nav > li:last-child >a{border-radius: 0 4px 0 0; }
.nav li li a { margin-top:1px}

.nav li a:first-child:nth-last-child(2):before { 
    content:""; 
    position: absolute; 
    height:0; 
    width: 0; 
    border: 5px solid transparent; 
    top: 50%;
    right:3px;  
}

/* submenu positioning*/
.nav ul {
  position: absolute;
  white-space: nowrap;
  border-bottom: 5px solid  darkgreen;
  left: -99999em;
}
.nav > li:hover > ul {
  left: auto;
  padding-top: 5px;
  min-width: 100%;
}
.nav > li li ul {  border-left:1px solid #fff;}

.nav > li li:hover > ul { 
 /* margin-left: 1px */
  left: 100%;
  top: -1px;
}
/* arrow hover styling */
.nav > li > a:first-child:nth-last-child(2):before { 
  border-top-color: #aaa; 
}
.nav > li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent; 
  border-bottom-color: darkgreen; 
  margin-top:-5px
}
.nav li li > a:first-child:nth-last-child(2):before {  
  border-left-color: #aaa; 
  margin-top: -5px
}
.nav li li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent; 
  border-right-color: darkgreen;
  right: 10px; 
}

#Backbutton {
    position: relative;
    top:  120px;
    left: 40px;
}

#footer {
    background-color: #121E31;
}

/* FOR SMARTPHONE ***********************SMARTPHONE*********************/
/*********************************************************************
**********************************************************************/
@media only screen and (max-width : 414px) and (min-width: 240px) {
   
  h1 {
    font-family: "Alegreya Sans", serif;
    font-style: normal;
    font-size: 2.4rem;
    font-weight: 900;
    color: turquoise;
    text-shadow: 0px 2px 3px #555;
  }
  /*
  #TOEICheader {
        color: turquoise;
        text-shadow: 0px 2px 3px #555;
        font-family: "Alegreya Sans", serif;
        font-size: 30px;
        font-weight: 800;
        font-style: normal;
        position: absolute;
        left: 85px;
        top: 40px;
        padding:5px;
        margin-bottom: 30px;
    }
    */
    
    #gramTheme {
        margin-top:     -40px;
        margin-left:    30px;
        width:          60%;
        height:         150px;
    }
    
}
