/* General Styles */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: white;
    font-weight: 500;
}
*{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	text-decoration: none;
	list-style: none;
	scroll-behavior: smooth;
}
a{
    color:white

}
a:hover{
	color: #cff3ff;
}

/* Header */
header {
    position: fixed;
	width: 100%;
	top: 0;
	right: 0;
	z-index: 1000;
	display: flex;
    margin-right: 5%;
	align-items: center;
	justify-content: space-between;
	padding: 40px 16%;
	transition: all .50s ease;
    min-height: 100px;
    background-color: black;
    animation: fadeIn 1s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; scale: 0.9;}
    to { opacity: 1; scale:1.2;}
}
nav ul li {
    display: inline;
    margin: 0 15px;
}
img{
    width:27%;
    height: 36%;
    float: right;
    margin-left: 3%;
    margin-right: 3%;
}
#right{
    float:left;
    margin-left: 3%;
    margin-right: 3%;
    width:27%;
    height: 36%;
    margin-top: 3%;
}
/* Main Content */
main {

    background: #232323;
    text-align: center;
}
@media (min-width: 1023px) {
    main {
        background: url(./img/background7.png);
        background-size: cover;
    }
    .introduction h1{
        text-align: center;
        font-size: 30px;
        margin-top: 5%;
    }
    .introduction p{
        text-align: center;
        margin-top: 3%;
        font-size: 20px;
        margin-right: 5%;
        margin-left: 5%;
    }
}


section {
    margin-top: 50px;
    margin-bottom: 20px;
    text-shadow: none;
    color: white;
    text-align: left;

    padding: 110px 10% 90px;
}
p{
    font-size: 15px;
    margin-right: 20%;
}

span{
    color:#13bbff;  
}
#purpose{
    font-size: 25px;
    text-align: left;
    min-height: 780px;
    background-color: black;
    animation: slideIn 1s ease-in-out forwards;
}
@keyframes slideIn {
    from{
        opacity:0;
        translate: -30rem;
    }
    to{
        opacity: 1;
        translate: 0;
    }
}
h5{
    margin-top: 2%;
    margin-bottom: 5%;
}
#heading{
    margin-top: 6%;
    font-size: 50px;
}
/* Footer */
footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}
#detail {
    color: #8edfff;
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
}

/* Hidden box */
#detail::after {
    content: "Japan's internal conflict to decide if they should trade with foreign countries";
    position: absolute;
    top: 50%;
    left: auto;
    right: -230px; /* Default to the left if there's no space on the right */
    transform: translateY(-50%);
    width: 200px;
    padding: 10px;
    background-color:#000000;
    color:#ffffff;
    text-align: center;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    white-space: normal; /* Allow text wrapping */
}

/* Show box on hover */
#detail:hover::after {
    opacity: 1;
    visibility: visible;
}
.introduction{
    text-align: center;
    
}
.introduction h1{
    text-align: center;
    font-size: 30px;
    margin-top: 5%;
}
.introduction p{
    text-align: center;
    margin-top: 3%;
    margin-right: 5%;
    margin-left: 5%;
}
.introduction img{
    float: right;
}
section p{
    font-size: 20px;
}
