/* Global Styles */

* {
    margin: 0;
    font-family: sans-serif;
}

body, html {
    height: 100%;
    overflow-x: hidden;
}

/* Typography */

h1 {
    font-size: 56px;
    font-weight: 700;
}

.subtitle, .subtitle-bold {
    font-size: 18px;
}

.subtitle-bold {
    font-weight: bold;
}

.announcement-header {
    font-size: 20px;
    font-weight: 500;
}

/* Buttons */

a {
    padding: 16px 66px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    background-color: #E87845;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

a:hover {
    background-color: #FF915F;
}

a:active {
    background-color: #E56D36;
}

/* Main Layout */

.info-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: auto;
}

.text-section {
    height: 100%;
    margin: 0px 70px 0 250px;
    display: flex;
    flex-direction: column;
}

figure > img {
    width: 100%;
}

main {
    flex: 1;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 50px;
}

.announcement-container {
    width: 90%;
}

.announcements {
    width: 0;
    min-width: 100%;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 2px;
    overflow-y: auto;
}

.announcement{
    padding: 10px;
}

.announcement {
    border-bottom: 1px solid rgba(128, 128, 128, 0.5);
    padding: 10px;
}

/* Header Styles */

.info-header {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    width: 100%;
}

.info-header figure, .info-header nav {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    align-content: center;
}

.bg-img {
    background-image: url("../image/bg_info.jpg");
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Language Selector */

.language-selector {
    appearance: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px;
}

/* Modal Backdrop */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    /* Hidden by default */
    z-index: 1000;
}

/* Language Modal */

.language-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: none;
    /* Hidden by default */
    z-index: 1001;
}

.modal-title {
    margin-bottom: 24px;
}

.modal-content {
    display: flex;
    padding-left: 100px;
    padding-right: 100px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Aligns children to the top */
    gap: 8px;
    align-self: stretch;
}

.cross {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
}

.language-option {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 18px;
    color: black;
}

.language-option:hover {
    border-color: black;
    text-decoration-line: underline;
}

.current-language:hover {
    cursor: pointer;
    text-decoration-line: underline;
}

/* Media Queries */

@media (max-width: 1024px) {
    body, html {
        overflow-y: auto;
    }

    main {
        gap: 50px;
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 46px;
    }

    .announcements {
        text-align: start;
    }

    .modal-title {
        font-size: 20px;
    }

    .language-option {
        font-size: 16px;
    }

    .text-section {
        margin-left: 100px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
        text-align: center;
    }

    .modal-title {
        font-size: 18px;
    }

    .text-section {
        margin: 50px;
    }

    .bg-img {
        display: none;
    }

    .info-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    .text-section {
        margin: 20px;
    }
}
