/*
Author:  Leonard Garcia
All Rights Reserved
Created on February 17, 2025
*/
:root {
    margin: 0;
    padding: 0;
    color: #0000FF;
    font-family: "Helvetica", "Arial", sans-serif;
    line-height: 1.5;
}

body{
    margin: 0;
    color: darkgreen;
    background-color: black;
    overflow-x: hidden; /* To prevent horizontal scroll */
}

::-webkit-scrollbar {
    width: 1.5em;
    height: 1em;
}

::-webkit-scrollbar-track {
  background-color: hsl(120 75% 50%/1);
  border-radius: 100vw;
  margin-block: 0.5em;
}

::-webkit-scrollbar-thumb {
  background: hsl(120 100% 20% / 1);
  border: 0.25em solid hsl(120 100% 20% / 1);
  border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(120 100% 10% / 1);
}

h1{
    color: gold;
    background-color: darkgreen;
    border: 4px;
    border-style: solid;
    border-radius: 2%;
    padding:       .4rem;
    margin-left:   3rem;
}

h2{
    font-family: "Bungee Spice", serif;
    font-size: 25px;
    font-weight: 400;
    font-style: normal;
}

h3{
    color: orangered;
    font-weight: 400;
    font-style: oblique;
}
#center {
    
}
span{
    color: red;
    font-family: Arial, Helvetica, sans-serif; 
}
/* Flex Styles */
 
.container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    width: clamp(260px, 900px, 1200px);
}
.titlebox{
    font-size: 1.5rem;
    color: yellow;
    background-color: black;
    margin-top: 3rem;
    margin-left: 40%;
}
.boxBordered{
    border:4px;
    border-color: gold;
    border-style: solid;
    border-radius: 2%;
    padding: 1.5rem;
    align-self: center;
    margin-top: 3rem;
    width: 70%;
}
.norm{
    color: white;
    font-size: 1rem;
}

#theme{
    align-self: center;
    width: 70%; height: 70%;
    margin-bottom: -5rem;
}

ul{
    color: white;
}

.preface{
    float:left;
    margin-right: 1rem;
}
.examples{
    color: white;
    background-color: dodgerblue;
    font-style: oblique;
}

#grammarian{
    float: left;
    width:50%; height: 50%;
    margin-right: 2rem;
}

#gramIcon {
    display: block;
    cursor: pointer;
    width: fit-content;
    border-radius: 50%;
    padding:       4px;
    border: 5px solid yellow;
    margin-top:  1rem;
    margin-left: 5rem;
    opacity: .8;
}
#gramIcon:hover {
    opacity: 1;
}

#base {
    color: darkgreen;
    margin-left: 5.5rem;
    margin-top:  1rem;
}

#footer {
    position: relative;
    top: 90px;
    background-color:black;
    color:white;
    clear:both;
    margin-left: 15rem;
    padding:7px;
}

/**********************************************************************/
/***************************Smartphone**********************************/
/*********************************************************************/

@media only screen and (max-width: 600px) {
    :root{
        margin: 0; 
    }
    
    body{
        margin:0;
        color: darkgreen;
        background-color: black;
        box-sizing: border-box;
        overflow-x: hidden; /* To prevent horizontal scroll */
        max-width: 400px;
    }
 
    .container{
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: flex-start;
        width: 400px;
        margin: 0;
    }
    .titlebox{
        font-size: 1.3rem;
        color: yellow;
        background-color: black;
        margin-top: 2rem;
        margin-left: 5rem;
        margin-bottom: 1rem;
        width: 270px;
    }
    .boxBordered{
        border:4px;
        border-color: gold;
        border-style: solid;
        border-radius: 2%;
        padding: 1rem;
        margin-left: 2rem;
        width: 66%;
    }
    .norm{
        color: white;
        font-size: .95rem;
    }

    #theme{
        align-self: center;
        width: 92%; height: 92%;
        margin-bottom: -3rem;
    }
    h2{
        font-family: "Bungee Spice", serif;
        font-size: 1rem;
        font-weight: 400;
        font-style: normal;
    }
    
    .video {
        width: 245px;
        aspect-ratio: 16/ 9;
        margin-top: 2rem;
        margin-left: 5px;
        border: 8px;
        border-style: solid;
        border-color:#3399ff;
        border-radius: 5%;
        outline: 10px groove blueviolet;
        outline-offset: -1px;
        background-position: 0 0;
        background: rgb(2,0,36);
        background: linear-gradient(90deg, rgba(14,136,201,0.004639355742296902) 20%, rgba(58,133,135,0.8897934173669468) 31%, rgba(0,212,255,1) 100%);
        background-size: 140% 140%; 
   }
   
    audio{
        width: 95%;
        margin-top: 1rem;
    }
    video{
        width: 95%;
    }

    #footer{
       margin-left: 5rem;
       width: fit-content;
    }
}
