/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F8F8FF;
    color: #2F4F4F;
    font-family: Arial, sans-serif;
}

header {
    background-color: #00BFFF;
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 150px;
}

#logo {
    height: 50px;
    position: absolute;
    left: 10px;
    top: 10px;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.header-content h1 {
    margin: 0;
    color: white;
    font-size: 1.5em;
}

nav {
    background-color: #4682B4;
    color: white;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

nav ul li {
    position: relative;
    padding: 15px 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    display: block;
}

nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #F8F8FF;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
}

nav ul li:hover > ul.dropdown {
    display: block;
}

nav ul li ul.dropdown li {
    padding: 12px 16px;
    background-color: #4682B4;
    color: #2F4F4F;
}

nav ul li ul.dropdown li:hover {
    background-color: #86abcb;
}

footer {
    background-color: #00BFFF;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-clima {
    background-color: #00BFFF;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.clima {
    flex-grow: 1;
    padding-bottom: 40px;
}

.footer-container .clima {
    overflow-x: auto;
}

#climate-history {
    width: 60%;
    margin: 10px auto;
}

#climate-history th {
    padding: 10px;
    color: white;
    text-align: center;
    border: 1px solid #000;
}

#climate-history td {
    padding: 8px;
    text-align: center;
    border: 1px solid #000;
}

#climate-history a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

#climate-history a:hover {
    text-decoration: none;
    color: blue;
}

#weather-records {
    width: 35%;
    margin: 50px auto;
}

#weather-records th {
    padding: 8px;
    background-color: #FFA500;
    color: black;
    border: 1px solid #000;
}

#weather-records td {
    padding: 6px;
    text-align: left;
    border: 1px solid #000;
}

@media (max-width: 768px) {
    body {
        transform: scale(0.5);
        transform-origin: top left;
        width: 200%;
    }

    #climate-history,
    #weather-records {
        width: 100%;
        overflow-x: auto;
        display: table;
    }

    #climate-history th, #climate-history td,
    #weather-records th, #weather-records td {
        padding: 6px;
        font-size: 14px;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#upper-content {
    display: flex;
    justify-content: center;
    align-items: start;
    width: 80%;
    margin-bottom: 20px;
    max-width: 1200px;
}

.marquee{
	font-family: Arial, sans-serif;
	font-size: 16px;
	color: #4682B4;
}

.davis-logo img {
    width: 150%;
    height: auto;
    max-width: 100%;
}

.left-content{
    flex: 2;
    margin: 10px;
    font-size: 16px;
}

.weather-graphs {
    flex: 2;
    margin: 10px;
	font-size: 16px;
}

.left-content table {
	border: 2px solid black;
    flex: 1;
    border-collapse: collapse;
    width: 100%;
}

.left-content th {
    border: 2px solid black;
    text-align: left;
    padding: 8px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
    text-shadow: none;
}

.left-content th {
    width: 40%;
}

.left-content td {
    width: 40%;
}

.left-content table td:first-child {
	border: 2px solid black;
    width: 40%;
}

.left-content .iframe-container {
    width: 106%;
    height: 700px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
	margin-left: -20px;
}

.left-content .iframe-container iframe {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 104%;
    height: 700px;
    border: none;
}

/* antikira and porto rafti diagrams */
.dual-graphs {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 20px auto;
}

.diagram-section {
    flex: 1;
    max-width: 50%;
}

.diagram-section h2 {
    padding-left: 0;
    padding-top: 25px;
}

.diagram-section .iframe-container {
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.diagram-section .iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.weather-graphs h2 {
    margin-left: 3px;
}

.graph-row, .graph-row-small {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    width: 125%;
}

.graph-row img {
    width: 50%;
    height: auto;
    margin-right: 3px;
}

.graph-row-small img {
    width: 32%;
    height: auto;
}

.hi-lows-records {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 90%;
    margin: 20px auto;
    max-width: 1300px;
	padding-left: 50px;
}

.left-table,.middle-table, .right-table {
    border-collapse: collapse;
    width: 60%;
    margin: 0 10px;
}

.table-head{
	border: 2px solid black;
	padding: 8px;
	font-size: 16px;
}

.left-table th, 
.middle-table th,
.right-table th {
    border: 2px solid black;
    padding: 8px; 
    color: #333;
    font-size: 16px;
}

.table-font-left {
	border: 2px solid black;
	font-weight: bold;
	text-align: left;
	padding: 8px;
	color: #red;
	font-size: 18px;
	width: 55%;
}

.table-font-right {
	border: 2px solid black;
	text-align: right;
	padding: 8px;
	color: #333;
	font-size: 18px;
}

.windy{
	display: flex;
    justify-content: space-around;
    align-items: flex-start;
	width: 90%;
    margin: 20px auto;
    max-width: 1300px;
	padding-left: 50px;
}

.live-camera {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 20px auto;
    max-width: 1300px;
    padding-left: 50px;
}


.live-camera .iframe-container {
    width: 950px;      
    height: 700px;     
    overflow: hidden;
    position: relative;
}


.live-camera .iframe-container iframe {
    position: relative;
    top: -120px;              
    width: 950px;
    height: 830px;           
    border: none;
}