@keyframes load {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}

body {
    font-family: 'Josefin Sans', sans-serif;
	font-size: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #cccccc;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    animation: load 1s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

.box-container:nth-child(1) {
    animation-delay: 0.2s;
}

.box-container:nth-child(2) {
    animation-delay: 0.4s;
}

.box-container:nth-child(3) {
    animation-delay: 0.6s;
}

.box {
    width: 250px;
    height: 250px;
    text-align: center;
    transition: background-color 0.3s;
    box-sizing: border-box;
    perspective: 1000px;
}

.box:hover .front {
    transform: rotateY(180deg);
}

.box:hover .back {
    transform: rotateY(0deg);
}

.box1 {
    background-color: #004631;
    color: #004631;
}

.box2 {
    background-color: #381e42;
    color: #381e42;
}

.box3 {
    background-color: #0c2340;
    color: #0c2340;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 1s;
}

.front {
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: white;
    text-align: left;
    line-height: 1.5em;
    padding: 0px 20px 0px 20px;
    width: 90%;
}

img {
   width: 100%;
   height: 100%;
   object-fit: contain; 
}


h1 {
    text-align: center;
	font-size: 2em;
}
h2 {
    text-align: left;
	font-size: 1.5em;
	margin:0px;
}
h3 {
   margin-top: 15px;
   font-weight: bold;
}

p {
   margin-top: 10px;
   width: 90%;
   display: flex;
   justify-content: center;
}

a {
   color: inherit;
   text-decoration: none;
}

.box-container a, .box-container .fa-link {
   color: inherit;
   text-decoration: none;
   transform: scale(0.9);
}

.fa-link {
   margin-right :5px; 
}

@media (min-width :600px) {
   .container {
       flex-direction :row; 
       justify-content :space-around; 
       align-items :flex-start; 
   }
}
