:root {
    --main-color: #EC2544;
    --school-color: rgb(14,36,87);
    --text-color-light: whitesmoke;
    --text-color-dark: #474747;
    --border-radius: 15px;
  }

* {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.8;
}

#hamburger {
	display: none;
}

p, td {
    color: var(--text-color-dark);
}

@media screen and (max-width: 1140px){
    p, li {
        font-size: 0.9em;
        line-height: 1.6;
    }
}
  
html, body {
    margin:  0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

main {
    width: auto;
    margin: 600px 120px 100px 120px;
}


/* Changes the font when hightlighted */
p::selection, td::selection, h2::selection, li::selection, h5::selection {
    background-color: var(--main-color);
    color: var(--text-color-light);
}


/* Style the font */
h1 {
    margin: 40px 0 60px 0;
    text-transform: uppercase;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 
    font-size: 2.2em;
    font-weight: bolder;
    text-align: center;
    background: linear-gradient(313.46deg, var(--main-color) 0%, var(--school-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 { 
    padding : 50px 0;
    font-size: 1.2em;
    text-transform: uppercase;
}

h4 { 
    margin: 40px 0 0 0;
    font-size: 1em;
    text-transform: uppercase;
}

h5 {
    margin: 0;
    font-size: 1em;
    text-transform: uppercase;
}

footer {
    font-size: 0.7em;
    text-align: center;
    padding: 15px 0;
    background-color: var(--main-color) ;
    color: var(--text-color-light);
    scroll-snap-align: end;
}

#community{
    margin-top: 0px;
}

.cursive {
    color: var(--main-color);
    font-style: italic;
    font-weight: bold;
}

.bold {
    font-weight: bold;
}

footer p {
    margin: 0 0;
}

/* video */
#video-container{
    width: 100vw;
    height: 100vh;
    opacity: 0.4;
    position: absolute;
}
      
iframe {
position: absolute;
top: 50%;
left: 50%;
width: 100vw;
height: 100vh;
transform: translate(-50%, -50%);
}

@media (min-aspect-ratio: 16/9) {
#video-container iframe {
    /* height = 100 * (9 / 16) = 56.25 */
    height: 56.25vw;
}
}
    
@media (max-aspect-ratio: 16/9) {
#video-container iframe {
    /* width = 100 / (9 / 16) = 177.777777 */
    width: 177.78vh;
}
}

/* links */
#nav:link {
    color: var(--school-color);
    text-decoration: none;
}

#nav:visited {
    color: var(--school-color);
}

#nav:hover {
   color: var(--main-color);
    }

#nav:active {
    color: var(--main-color);
}

/* coin flipping */

.coin-box {
    display: flex;
    justify-content: space-around;
    margin: 70px 0;
} 

.coin {
    width: 175px;
    height: 175px;
    
}

.coin-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.coin-inner:hover {
    transform: rotateY(180deg);
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
}

.coin-front {
    font-size: 3.5em;
    color: var(--text-color-light);
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.coin-back {
    color: var(--text-color-light);
    background-color: var(--school-color);
    border-radius: 50%;
    transform: rotateY(180deg);
    vertical-align: middle;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.fa-solid {
    padding : 60px 0;
}

@media screen and (max-width: 1140px){
    .coin {
        width: 120px;
        height: 120px;
    }

    .coin-back {
        transform: rotateY(360deg);
        
    }

    .coin-inner:hover {
        transform: none;
    }

    h3 { 
        padding : 40px 0;
        font-size: 0.6em;
        text-transform: uppercase;
    }
}

@media screen and (max-width: 850px){
    .coin-box{
        display: none;
    }
}

/* Ratio animation */

.ratio {
    border: 15px solid blue; 
    border-top: 15px solid red;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 3s linear infinite;
  }
  
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

@keyframes example {
    from {background-color: var(--school-color);}
    to {background-color: var(--main-color);}
}

/* Style table */

.symbol-table{
    border-collapse: collapse;
    margin: 50px 100px 0px 100px ;
    }

.symbol { 
    border : 1px solid var(--school-color);
    padding: 20px 40px;
    text-align: justify;
}

.profile { 
    border : 1px solid var(--school-color);
    text-align: justify;
}

.profile-table{
    margin-left: auto;
    margin-right: auto;
}
.profile-small {
    width: 150px;
}

.profile-big {
    width: 200px;
    padding: 50px 50px 50px 20px;
}

/* arrow up */

.fa-circle-arrow-up {
    font-size: 2.5em;
    color: var(--school-color);
    position: sticky;
    left: 95%;
    top: 80%;
}

.fa-circle-arrow-up:active {
    transform: translateY(20px);
}

@media screen and (max-width: 685px) {
    .fa-circle-arrow-up {
        display: none;
    }
}

/* nav */

#school-logo {
    width: 90px;
    height: 100%;
}

nav {
    width: 100%;
    background-color: white;
    color: var(--school-color);
    position: absolute;
    z-index: 10;
    scroll-snap-align: start;
}
#no-hamburger .ul-nav{
    display: flex;
    justify-content: space-around;
}

@media screen and (max-width: 600px){
    video-container, iframe {
        display: visible;
    }
}

/* SPPS navigation */

.container {
    display: flex;
    position: relative;
    top: 120px;
    justify-content: center;
}

#s1, #p1, #p2, #s2 {
    font-size: 6em;
    color: var(--main-color);
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 
    position: relative;
    animation-duration: 4s;  
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

#s1 {
    animation-name: letterS1;
}

#p1 {
    animation-name: letterP1;
}

#p2 {
    animation-name: letterP2;
}

#s2 {
    animation-name: letterS2;
}

@keyframes letterS1 {
    from {left: 800px;}
    to {left: 0px; 
        color: var(--school-color); 
        text-shadow: 3px 3px 7px var(--school-color);}
}

@keyframes letterP1 {
    from {top: 600px;}
    to {top: 0px; 
        color: var(--school-color); 
        text-shadow: 3px 3px 7px var(--school-color);}
}

@keyframes letterP2 {
    from {bottom: 200px;}
    to {bottom: 0px; 
        color: var(--school-color);
        text-shadow: 3px 3px 7px var(--school-color);}
}

@keyframes letterS2 {
    from {right: 800px;}
    to {right: 0px; 
        color: var(--school-color); text-shadow: 3px 3px 7px var(--school-color);}
}

@media screen and (max-width: 600px){
    #s1, #p1, #p2, #s2 {
        display: none;
    }
}


/* gender animation */

.fa-person {
    padding: 0px;
    font-size: 5em;
    color: var(--school-color);
    position: relative;
    animation: move 2s ease-in infinite;
  }

@keyframes move {
0% { transform: rotateY(0deg); top: 0; }
50% { transform: rotateY(180deg); top: -40px; }
100% { transform: rotateY(360deg); top: 0px; }
}   

.fa-person-dress {
padding: 0px;
font-size: 5em;
color: var(--main-color);
position: relative;
animation: dance 2s ease-out infinite;
}

@keyframes dance {
    0% { transform: rotateY(0deg); top: 0; }
    50% { transform: rotateY(180deg); top: -40px }
    100% { transform: rotateY(360deg); top: 0; }
  } 
   
/* globe animation */

.fa-earth-americas {
    padding: 0px;
    font-size: 6em;
    color: var(--school-color);
    animation: rotate 7s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

/* ratio animation */

.ratio {
    border: 50px solid var(--school-color);
    border-top: 50px solid var(--main-color);
    border-radius: 50%;
    width: 0;
    height: 0;
    animation: spinning 2s alternate infinite;
}
  
@keyframes spinning {
0% { transform: rotate(120deg); }
100% { transform: rotate(200deg); }
}

/* graduation cap animation */

.fa-graduation-cap {
    padding: 0px;
    font-size: 4em;
    color: var(--school-color);
    position: relative;
    animation: throw 3s linear infinite;
}

@keyframes throw {
    0% { transform: rotateY(0deg); top: 200px;}
    25% { transform: rotateY(100deg); top: 0px; left: 20px; }
    50% { transform: rotateX(180deg); top: -40px; left: 40px; font-size: 5em; }
    74% { transform: rotateX(250deg); top: 0px; left: 20px; }
    100% { transform: rotateX(360deg); top: 200px; }
  }

  @media screen and (max-width: 850px){
    .fa-graduation-cap {
        padding: 0px;
        font-size: 2em;
    }

    @keyframes throw {
        0% { transform: rotateY(0deg); top: 100px;}
        25% { transform: rotateY(100deg); top: 0px; left: 10px; }
        50% { transform: rotateX(180deg); top: -20px; left: 20px; font-size: 3em; }
        74% { transform: rotateX(250deg); top: 0px; left: 10px; }
        100% { transform: rotateX(360deg); top: 100px; }
      }
}

/* style each section */

.section-flex {
    display: flex;
    background-color: var(--text-color-light);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    padding: 30px;
    align-items: center;
}

.section-img {
    border-radius: var(--border-radius);
    max-width: 400px;
    height: auto;
}

.section-text{
    text-align: justify;
    padding: 0 30px;
}

section {
    height: 100vh;
    scroll-snap-align: start;
    padding-top: 40px;
}

#section-symbol {
    height: fit-content; /*since the content is longer than the viewport  it is overflowing. making sure the whole content fits*/
}

@media screen and (max-width: 1140px){
    .section-img {
        max-width: 300px;
    }
}

@media screen and (max-width: 940px){
    section {
        height: fit-content;
    }
    
    .section-flex {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* cards */

.card-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.card-box img {
    width: 100px;
}

.cards {
    background-color: var(--text-color-light);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    width: 200px;
    height: 280px;
    text-align: center;
    border-radius: var(--border-radius);
    font-size: 10px;
    padding: 10px;
    transition: transform 1s;
    position: relative;
    margin-bottom: 20px;
}

.cards:hover {
    transform: scale(1.5);
    top: -80px;
    z-index: 10;
}

h2 {
    margin: 0;
    font-size: 1.2em;
}

#logo {
    max-width: 120px;
    height: auto;
}

.exception {
    margin: 0;
}

@media screen and (max-width: 685px){
    .cards {
        font-size: 1em;
        width: 100%;
        height: auto;
    }
    .cards:hover {
        transform: scale(1);
        top: 0px;
    }
}

@media screen and (max-width: 500px){

    main {
        margin: 100px 10px 10px 20px;
    }
    h1{
        font-size: 1.5em;
    }

    .fa-graduation-cap, .fa-earth-americas, .fa-person-dress, .fa-person {
        font-size: 2em;
    }

    .ratio {
        border: 15px solid var(--school-color);
        border-top: 15px solid var(--main-color);
    }

    @keyframes throw {
        0% { transform: rotateY(0deg); top: 100px;}
        25% { transform: rotateY(100deg); top: 0px; left: 10px; }
        50% { transform: rotateX(180deg); top: -20px; left: 20px; font-size: 2em; }
        74% { transform: rotateX(250deg); top: 0px; left: 10px; }
        100% { transform: rotateX(360deg); top: 100px; }
      }

    .profile-big {width: 100px;
        padding: 10px 10px 10px px;
    }

    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    iframe {
        display: none;
    }
}

@media screen and (max-width: 685px) {

    #school-logo, iframe {display: none;}

    main {
        width: auto;
        margin: 0 10px 10px 20px;
    }
	/* Hamburger menu */
	#no-hamburger {
		display: none;
	}

	#hamburger {
		display: block;
		position: absolute;
		top: 50px;
		right: 50px;
		z-index: 10;
		-webkit-user-select: none;
		user-select: none;
	}

    .ul-nav {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    #nav:hover {
        color: var(--text-color-light);
        }

    nav h4 {
        margin: 20px 0;
    }

	#hamburger a {
		text-decoration: none;
		transition: color 0.3s ease;
	}

	#hamburger input {
		display: block;
		width: 40px;
		height: 32px;
		position: absolute;
		top: -7px;
		left: -5px;

		cursor: pointer;

		opacity: 0; /* hide this */
		z-index: 20; /* and place it over the hamburger */

		-webkit-touch-callout: none;
	}

	/* hamburger */
	#hamburger span {
		display: block;
		width: 33px;
		height: 4px;
		margin-bottom: 5px;
		position: relative;
		background: var(--school-color);
		border-radius: 3px;
		z-index: 20;
		transform-origin: 4px 0px;
		transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
			background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
	}

	#hamburger span:first-child {
		transform-origin: 0% 0%;
	}

	#hamburger span:nth-last-child(2) {
		transform-origin: 0% 100%;
	}

	/* Transforms hamburger span into a crossmark */
	#hamburger input:checked ~ .hamburger-line {
		opacity: 1;
		transform: rotate(45deg) translate(-2px, -1px);
		background: var(--school-color);
	}

	/* hide the middle one */
	#hamburger input:checked ~ span:nth-last-child(3) {
		opacity: 0;
		transform: rotate(0deg) scale(0.2, 0.2);
	}

	/* the last one should go the other direction */
	#hamburger input:checked ~ span:nth-last-child(2) {
		transform: rotate(-45deg) translate(0, -1px);
	}

	/* Make this absolute positioned at the top left of the screen */
	#hamburger-menu {
		position: absolute;
		width: 100vw;
		height: fit-content;
		margin: -100px 0 0 0;
		padding: 150px auto 40px auto;
		padding-top: 40px;
		right: -50px;
		background: var(--main-color);
		list-style-type: none;
		-webkit-font-smoothing: antialiased;
		/* to stop flickering of text in safari */

		transform-origin: 0% 0%;
		transform: translate(100%, 0);

		transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
	}

	/* Slide it in from the left */
	#hamburger input:checked ~ ul {
		transform: none;
	}
}