@include tailwindcss base;

html, body {
    font-family: "Open Sans",Arial,sans-serif;
    margin: 0;
    padding: 0;
    font-weight: 500;
}

header h1 {
    font-size: 55px;
    font-weight: 700;
    color: #303030;
}

body {
}

header {
    width: 100%;
    height: 200px;
    text-align: center;
    background: #FDCB00;
    color: #303030;
    font-size: 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-self: normal;
    justify-self: normal;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.top-area {
    width: 80%;
    height: 50%;
    /*display: flex;
    justify-content: space-between;
    align-items: center;*/
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
}

.lcoi {
    left: 0px;
    font-size: 20px;
    display: flex;
    align-content: center;
}

.lcoi img {
    width: 90%;
    object-fit: contain;
}

.lcoi h2 {
    align-self: center;
    margin-left: -70px;
    padding-top: 20px;
}

.lcoi a {
    color: #303030;
    text-decoration: none;
}

header-text-center {
    flex-grow: 10;
}

.nav {
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}

.nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0px;
    overflow: hidden;
    background-color: white;
}

.nav ul li {
    float:left;
}

.nav ul li a {
    display: block;
    color: #164e9d;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: all .4s ease-in-out;
    font-size: large;
}

.nav ul li a:hover {
    background-color: #164e9d;
    color: white;
}

.nav li + li {
    border-left: 1px solid #164e9d;
}

.nav ul li .dropdown {
    display: block;
    height: 100%;
}

.dropdown .dropbtn {
    display: block;
    color: #164e9d;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: all .4s ease-in-out;
    font-size: large;
    background-color: white;
    border: none;
    cursor: pointer;
    height: auto; 
    line-height: normal;
}

.dropdown:hover .dropbtn {
    background-color: #164e9d;
    color: white;
    font-size: large; 
    cursor:pointer;
}

.dropdown-content {
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 101;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
}

.dropdown-content a {
    color: #164e9d !important; /* Ensure visibility */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f17b21; /* Or your preferred highlight color */
    color: white !important;
}

.dropdown:hover .dropdown-content {
    /*display: block;*/
    opacity: 1;
    max-height: 300px;
}

button:focus {
    outline: none;
}

main {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 1s forwards, colorChange 10000s infinite;


    padding-top: 200px;
}

header {
    opacity: 0;
    animation: fadeIn 1s forwards, colorChange 10000s infinite;
}

footer {
    opacity: 0;
    animation: fadeIn 1s forwards, colorChange 10000s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

main h2 {
    font-weight: 400;
    font-size: 55px;
    color: #0C71C3;
}

main h3 {
    font-weight: 300;
    font-size: 40px;
    color: #0C71C3;
}

#news-grid {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    grid-auto-rows: 150px;
}

.news-item {
    border: #303030 solid 1px;
}

@media (max-width: 768px) {
  header header-text-center {
    display: none;
  }
  header header-logo-right {
    display: none;
  }
  header .lcoi {
    left: auto;
    width:100%;
  }
  header .lcoi .p {
    width:50%;
  }
}

footer {
    width: 100%;
    height: 400px;
    text-align: center;
    background: #2ea3f2;
    color: #FDCB00;
    font-size: 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-self: normal;
    justify-self: normal;
    margin-top: 50px;
}

.footer-info {
    width: 80%;
    height: 100%;
    /*display: flex;
    justify-content: space-between;
    align-items: center;*/
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
}

.footer-info h2, .footer-info h3 {
    color: #FDCB00;
}

.footer-info h2 {
    font-weight: 400;
    font-size: .9em; 
    line-height: 0.5em;
}

.footer-info h3 {
    font-size: 0.7em;
    font-weight: 400;
}

.socials p {
    font-size: 0.7em;
    font-weight: 700;
}

footer .fa-square-facebook {
    color:#FDCB00;
    font-size: 1.25em;
}

footer .fa-square-facebook span {
    display: none;
}

@view-transition {
  navigation: auto;
}

/* Custom Fade and Slide transition */
::view-transition-old(root) {
  animation: 400ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out,
             400ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(root) {
  animation: 400ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in,
             400ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes slide-from-right {
  from { transform: translateX(30px); }
}

@keyframes slide-to-left {
  to { transform: translateX(-30px); }
}