/* General page styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-image: url("images/pokebg.jpg");
    background-repeat: repeat-x;
}

/* Heading styles */
h1 {
    color: orange;
}

/* Top navigation bar */
.navbar-top {
    display: flex;
    justify-content: space-around;
    background-color: #333;
    color: white;
    height: 10vh;
    width: 100%; /* Full width of the screen */
    align-items: center;
}

.navbar-top button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* New properties */
    border-radius: 12px; /* Adjust to control corner rounding */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Adds a shadow effect */
    font-weight: bold; /* Makes text bold */
    letter-spacing: 1px; /* Adds spacing between letters */
    background-image: linear-gradient(to right, #4CAF50, #45a049); /* Gradient background */
}


/* Hover effect with radiating colors */
.navbar-top button:hover {
    animation: colorRadiate 1.5s infinite alternate, scaleButton 0.3s ease;
    transform: scale(1.1);
}

/* Left navigation bar */
.navbar-left {
    width: 11%; /* Occupies 25% of the screen width */
    background-color: #f8f8f8;
    padding: 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* Left navigation buttons */
.navbar-left button {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.navbar-left button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

.navbar-left button:active, .navbar-top button:active {
    background-color: darkgreen;
    color: yellow;
}

/* Main content container for left nav and iframe */
.main-content {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Iframe container */
.iframe-container {
    flex-grow: 1; /* Takes up remaining 75% of the width */
    height: 100%;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Keyframes for color radiate animation */
@keyframes colorRadiate {
    0% { background-color: #4CAF50; box-shadow: 0 0 5px #4CAF50; }
    25% { background-color: #45a049; box-shadow: 0 0 10px #45a049; }
    50% { background-color: #FF5722; box-shadow: 0 0 15px #FF5722; }
    75% { background-color: #FF9800; box-shadow: 0 0 20px #FF9800; }
    100% { background-color: #FFC107; box-shadow: 0 0 25px #FFC107; }
}

/* Optional keyframes for scaling effect */
@keyframes scaleButton {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Table styles */
table {
    border: 3px solid black;
    margin: auto;
    text-align: center;
}

th {
    background-color: orange;
    font-size: 36px;
}

/* Link styles */
a {
    color: blue;
    transition: color 2s;
}

a:hover { color: crimson; }
a:active { color: black; }
a:visited { text-decoration-color: green; }
a:focus { color: orange; }

/* Form container styling */
.form-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

input[type="file"], input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
}

/* Circle animation */
.circle_b {
    width: 100px;
    height: 100px;
    border: 5px solid black;
    border-radius: 50%;
    background-color: red;
    transition: background-color 5s, width 5s, height 5s;
}

.circle_b:hover {
    width: 90px;
    height: 90px;
    animation: five_color 5s linear infinite;
}

@keyframes five_color {
    0% { background-color: red; }
    20% { background-color: orange; }
    40% { background-color: green; }
    60% { background-color: yellow; }
    80% { background-color: purple; }
    100% { background-color: red; }
}

/* Utility classes */
.red { color: red; }
.orange { color: orange; }
.yellow { color: yellow; }

/* Header and Footer styles */
.header, .footer {
    border: 1px solid black;
    background-color: rgba(255, 255, 255, 0.5);
}
