@font-face {
    font-family: OpenSans;
    src: local("Open Sans"), local("OpenSans"), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/K88pR3goAWT7BTt32Z01mz8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}

body{
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    color: black;
    margin: 0;
    padding: 0;
    font-family: OpenSans;
    width: 100vw;
    height: 100%;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.main{
    overflow: scroll;
    flex: 1 0 auto;
}

.headerbar{
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    flex-shrink: 0;
    top: 0px;
    box-sizing: border-box;
    width: 100vw;
    background-color: white;
    overflow: hidden;
    padding: 20px;
    margin: auto;
    font-size: large;
    font-weight: bolder;
}

/*Spinner CSS code starts*/
  
.spinner {
    vertical-align: baseline;
    animation: rotator 1.4s linear infinite;
}

circle{
    display: inline;
}

#subjectSpinner{
    margin: auto;
    padding: 20px;
    width: 80px;
    height: 80px;
}

#dateSpinner{
    margin: auto;
    margin-left: 5px;
    width: 16px;
    height: 16px;
}

#statusSpinner{
    margin: auto;
    margin-left: 5px;
    width: 16px;
    height: 16px;
}
  
@keyframes rotator {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(270deg);
    }
}
  
.path {
    stroke-dasharray: 187;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation: dash 1.4s ease-in-out infinite, colors 5.6s ease-in-out infinite;
}
  
@keyframes colors {
    0% {
      stroke: #4285F4;
    }
    25% {
      stroke: #DE3E35;
    }
    50% {
      stroke: #F7C223;
    }
    75% {
      stroke: #1B9A59;
    }
    100% {
      stroke: #4285F4;
    }
}
  
@keyframes dash {
    0% {
      stroke-dashoffset: 187;
    }
    50% {
      stroke-dashoffset: 46.75;
      transform: rotate(135deg);
    }
    100% {
      stroke-dashoffset: 187;
      transform: rotate(450deg);
    }
}
  
/*Spinner CSS code ends*/

/*Link properties start*/
.titletext:link{
    color: white;
    text-decoration: none;
}

.titletext:visited{
    color: white;
}
/*Link properties end*/

.siapasiram{
    align-content: center;
    align-items: center;
    padding-top: 20px;
    margin: auto;
    text-align: center;
}

.subject{
    align-content: center;
    align-items: center;
    padding: 20px;
    margin: auto;
    text-align: center;
    font-weight: bolder;
    font-size: 120px;
}

.update{
    align-content: center;
    align-items: center;
    margin: auto;
    text-align: center;
}

.notes{
    padding-top: 50px;
    text-align: center;
    font-size: small;
    padding-bottom: 40px;
}

.footer{
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: white;
    overflow: auto;
    padding: 10px;
    width: 100vw;
    bottom: 0px;
    margin: 0;
    font-size: smaller;
}

@media screen and (min-width: 571px){
    .headerbar{
        font-size: large;
    }
    .footer{
        font-size: smaller;
    }
}

@media screen and (max-width: 570px){
    .headerbar{
        padding: 10px;
        font-size: 12px;
    }
    .footer{
        padding: 5px;
        font-size: 8.5px;
    }
}

@media screen and (max-width: 440px){
    .subject{
        font-size: 72px;
    }
    #subjectSpinner{
        width: 60px;
        height: 60px;
    }
    .siapasiram{
        font-size: small;
    }
    .update{
        font-size: small;
    }
    #dateSpinner{
        width: 9px;
        height: 9px;
    }
    #statusSpinner{
        width: 9px;
        height: 9px;
    }
}

@media screen and (min-height: 441px){
    body{
        position: fixed;
        min-height: -webkit-fill-available;
        min-height: -moz-available;
        min-height:  fill-available;
    }
    .headerbar{
        padding: 10px;
    }
    .subject{
        font-size: 64px;
        padding: 15px;
    }
    #subjectSpinner{
        width: 40px;
        height: 40px;
        padding: 0px;
    }
    .siapasiram{
        font-size: small;
    }
    .update{
        font-size: small;
    }
    #dateSpinner{
        width: 9px;
        height: 9px;
    }
    #statusSpinner{
        width: 9px;
        height: 9px;
    }
    .notes{
        padding-top: 15px;
        padding-bottom: 20px;
    }
    .footer{
        padding: 5px;
    }
}

@media screen and (max-height: 440px){
    body{
        height: 100vh;
    }
    .headerbar{
        font-size: small;
        padding: 10px;
    }
    .subject{
        font-size: 42px;
        padding: 10px;
    }
    #subjectSpinner{
        width: 40px;
        height: 40px;
        padding: 0px;
    }
    .siapasiram{
        font-size: smaller;
    }
    .update{
        font-size: smaller;
    }
    #dateSpinner{
        width: 9px;
        height: 9px;
    }
    #statusSpinner{
        width: 9px;
        height: 9px;
    }
    .notes{
        font-size: smaller;
        padding-top: 10px;
        padding-bottom: 15px;
    }
    .footer{
        font-size: smaller;
        padding: 5px;
    }
}

@media (prefers-color-scheme:dark){
    body{
        background-color: black;
        color: white;
    }
    svg{
        stroke: white;
    }
    .headerbar{
        background-color: #202020;
    }
    .footer{
        background-color: #202020;
    }
}
