/* ------------------------------------------------------------------------ */
/*                        Stylesheet webpage Group 4                        */
/* ------------------------------------------------------------------------ */

/*----------------   Body and Home page features   --------------*/
body {
	font-family: "Roboto", "Arial", sans-serif;
    background-image: url("../image/background.jpg");
	background-repeat: no-repeat;
    background-color: #cccccc;
    background-position: bottom;
    background-attachment: fixed;
	background-size: 100% 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
	width:100%;
    position: relative;
    overflow-x: hidden;
}

.container {
    background-color: rgba(0,0,0,0.2);
    margin-left: 28%;
    margin-right: 28%;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 0.5px;
    padding-top: 0.5px;
    text-align: justify;
    font-size: 15px;
    color: white;
}

.home {
    position: relative; 
    margin-top: 5%;
    text-align: center;
}

.home h1 {
    font-size: 60px;
    background-color: rgba(216,226,247,0.5);
    display: table;
    padding: 5px 20px;
    margin: 0px auto 0px auto; /* keep the table centered */
}

.home h2 {
    font-size: 30px;
    background-color: rgba(216,226,247,0.5);
    display: table;
    padding: 5px 61px;
    margin: 0px auto 0px auto; /* keep the table centered */
}

#linkbutton {
    display: inline-block;
    position: relative;
    z-index: 10; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: rgba(18,30,168,66); /* Set a background color */
    color: white; /* Text color */
    margin-left: 10px;
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 12px 20px; /* Some padding */
    border-radius: 12px; /* Rounded corners */
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 16px;
}

#linkbutton:hover {
    background-color: rgba(219,224,227,1);
    color: black;
}

/**************************************************************/
/*----------------   Content of pages   -----------------------*/

.content {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 30px 30px 30px 30px;
    padding: 40px;
    font-size: 16px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 5%;
    margin-bottom: 2%;
    text-align: justify;
    flex: 1;
}

.content h1 {
    text-align: center;
    font-size: 35px;
}

.content h2 {
    font-size: 25px;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: -30px;
    margin-bottom: -30px;
    width: 50%;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}

th {
    background-color: rgba(63,118,242,95);
    padding: 15px;
    text-align:center;
    color: white;
}

td {
    padding: 15px;
}

tr:nth-child(even) {
    background-color: rgba(186,214,238,93);
}

tr:nth-child(odd) {
    background-color: rgba(113,179,235,92);
}

#nextbutton {
    display: inline-block;
    position: static;
    text-align: center;
    margin: 0% 45% 0% 45%;
    z-index: 10; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: rgba(18,30,168,66); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 12px 20px; /* Some padding */
    border-radius: 12px; /* Rounded corners */
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 16px;
}

#nextbutton:hover {
    background-color: rgba(219,224,227,1);
    color: black;
}

/**************************************************************/
/*----------------   To Top Button   -----------------------*/

#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 13px;
    z-index: 10; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: rgba(18,30,168,66); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 12px; /* Some padding */
    border-radius: 12px; /* Rounded corners */
    font-size: 17px; /* Increase font size */
    font-family: "Roboto", "Arial", sans-serif;
}

#myBtn:hover {
    background-color: rgba(219,224,227,1);
    color: black;
    
}

/**************************************************************/
/*----------------    Navigation Bar   ---------------------*/

ul.topnav {
    list-style-type: none;
    padding: 5px 30px 5px;
    margin: 0;
    margin-left: -7px;
    position: fixed; /* Set the navbar to relative position */
    top: 0; /* Position the navbar at the top of the page */
    width: 98%;
    overflow: auto;
    z-index: 10;   
    background-color: rgba(63,118,242,95);
    box-shadow: 0 2px 4px 2px rgba(0,0,0,.2);
}

ul.topnav li a {
    float: left;
    display: inline-block;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 20px;
}

ul.topnav li a:hover:not(.active) {
    background-color: rgba(219,224,227,1);
    color: black;
    border-radius: 10px 10px 10px 10px;
}

ul.topnav li a.active {
	background-color: rgba(18,30,168,66);
    border-radius: 10px 10px 10px 10px;
}

.topnav-right {
    float: right;
    padding-right: 15px;
}

/**************************************************************/
/*----------------    Footer   ---------------------*/
footer {
    background-color: rgba(63,118,242,95);
    padding-bottom: 10px;
    position: static;
    color: #fff;
    margin-left: -8px;
    margin-bottom: -8px;
    bottom: 0;
    left: 0;
    width: 101%;
    height: auto;
    overflow: auto;
    margin-top: auto;
    box-shadow: 2px 2px 4px 2px rgba(0,0,0,.2);
}

.footer-content p{
    font-size: 17px;
    padding: 10px;
    margin-bottom: 12px;
    text-align: center;
}

#footer-image{
    padding-left: 10px;
    padding-bottom: 2px;
    max-width: 150px;
    height: auto;
    position: absolute;
    bottom: 0;
}

 /**************************************************************/
/*-----------------------   Modal Box   ---------------------*/

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    max-width: 30%;
    background-color: rgba(63,118,242,95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: none;
    font-family: "Roboto", "Arial", sans-serif;
}

.modal-content button {
    margin-top: 0;
    background-color: rgba(18,30,168,66);
    font-size: 15px;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    font-family: "Roboto", "Arial", sans-serif;
}

/**************************************************************/
/*----------------   SDG flip cards   ---------------------*/

/* desktop mode............/// */

.flip-card-list {
    list-style-position: inside;
    text-align: center;
	margin-left: -50px;
}

.flip-card {
    display: inline-block;
    position: relative;
    height: 300px;
    width: 300px;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
    padding-left: 30px;
	padding-right: 30px;
}

.flip-card-inner {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 300px;
    padding: 7px;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    padding: 1px;
    border: 2px solid;
    border-color: white;
    border-radius: 5px 5px 5px 5px;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
	box-shadow: 0px 0px 10px 10px rgba(0,0,0,.2);
}

.flip-card-front {
    background-color: white;
}

.flip-card-back {
	box-shadow: 0px 0px 10px 10px rgba(0,0,0,.2), inset 0 0 0 6px white;
    background-color: rgb(180, 180, 180);
    transform: rotateY(180deg);
	left: -7px;
}

.flip-card-back-text {
    text-align: center;
    color: white;
}

/* mobile mode............/// */
@media (max-width: 700px) {
    .flip-card {
        display: block;
        margin: 0 auto;
    }
    #flip-card_2 {
        margin-top: 50px;
    }
}

/**************************************************************/

/*----------------    Contact flip cards   ---------------------*/

/* desktop mode............/// */
.contact-cards {
    list-style-position: inside;
    text-align: center;
	margin-left: -60px;
}

.card {
    display: inline-block;
	position: relative;
    margin: 10px;
	border-radius: 5px 5px 5px 5px;
	padding: 10px;
	width: 250px;
	height: 250px;
	margin: 30px;
	perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

.card-inner {
    position: relative;
    z-index: 2;
    width: 250px;
    height: 250px;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    padding: 1px;
    border: 10px solid;
    border-color: white;
    border-radius: 5px 5px 5px 5px;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
	box-shadow: 0px 0px 10px 10px rgba(0,0,0,.2);
	background-color: white;
}

.card-back {
    transform: rotateY(180deg);
	left: -22px;
}

.card-text {
	text-align: center;
}

/**************************************************************/
/*---------    Optimize for other screen sizes   ----------*/