/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and basic styling */
body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Full viewport height */
    padding: 1rem;
    align-items: center;
    background: #060606;
    background-image: radial-gradient(ellipse 50% 75% at center, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)), url('icons/CC_Cover_VisuSeul.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure main content grows to push the footer down */
header,
.menu.first {
    flex: 1;
}

.first a {
    font-size: 2rem;
}

.menu.second a {
    font-size: 1.5rem;
    color: #979797;
}

#info-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.headerInside {
    display: flex;
    position: relative;
    width: 100%;
}

#resourceLoader {
    background: #cd381f;
    padding: 1rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    opacity: 50%;
}

#refresh {
    background: #cd381f;
    padding: 1rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

#progressBar {
    width: 100%;
}

/* Auto-resize image styling */
.header-image {
    width: 60%;
    height: auto;
    max-width: 600px;
}

/* Menu styling */
.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

nav a,
nav a:visited {
    color: white;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    width: fit-content;

    --b: 3px;
    /* thickness of the border */
    --c: #cd381f;
    /* color of the border */
    --w: 30px;
    /* width of border */


    border: var(--b) solid #0000;
    /* space for the border */
    --_g: #0000 90deg, var(--c) 0;
    --_p: var(--w) var(--w) border-box no-repeat;
    background:
        conic-gradient(from 90deg at top var(--b) left var(--b), var(--_g)) 0 0 / var(--_p),
        conic-gradient(from -90deg at bottom var(--b) right var(--b), var(--_g)) 100% 100% / var(--_p)
}

.menu a:hover {
    background-color: #cd381f;
}

/* Footer styling */
footer {
    text-align: center;
    margin-top: auto;
    padding: 1rem;
    width: 100%;
    color: #979797;
}

.container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

.container h2 {
    margin-bottom: 1rem;
}

.button-return-container {
    cursor: pointer;
}

[class*="icono"] {
    text-align: left;
    left: -200px;
    color: #cd381f;
    bottom: 12px;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;

    &:after,
    &:before {
        content: "";
        box-sizing: border-box;
    }
}

[class*="icono-arrow"] {
    width: 0;
    height: 0;
    border-color: #cd381f;
    border-width: 12px;
    border-style: solid;
    border-left-width: 12px;
    border-top-width: 12px;
    border-left-color: transparent;
    border-top-color: transparent;
    margin: 10px;
    transform: rotate(135deg);

    &:before {
        right: -10px;
        top: 2px;
        position: absolute;
        height: 11px;
        box-shadow: inset 0 0 0 32px;
        transform: rotate(45deg);
        width: 35px;
        transform-origin: right top;
    }
}

/* Extra Small Devices (e.g., Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        font-size: 2rem;
    }
}

/* Small Devices (e.g., Portrait tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        font-size: 2rem;
    }
}

/* Medium Devices (e.g., Landscape tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        font-size: 1.5rem;
    }
}

/* Large Devices (e.g., Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* Styles for large devices */
    .container {
        font-size: 1rem;
    }
}

/* Extra Large Devices (e.g., Large desktops, 1200px and up) */
@media (min-width: 1200px) {

    /* Styles for extra large devices */
    .container {
        font-size: 1rem;
    }
}

.container header {
    margin-bottom: 1rem;
}

.container section {
    margin-bottom: 1rem;
    text-align: center;
}

.container li {
    margin-bottom: 1rem;
}

ol {
    list-style-position: inside;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 2px solid #cd381f;
    margin: 1em 0;
    padding: 0;
    width: 100%;
}

.credit_img {
    width: 100px;
    margin-bottom: 1rem;
}

.container.credits {
    text-align: center;
}

.container.credits p {
    margin-bottom: 1rem;
}

.headerInside h1 {
    width: 90%;
    display: unset;
    padding-right: 29px;
    margin-bottom: 1rem;
    text-align: center;
}

.container .credit_list {
    padding: 15px;
}

ol li p {
    text-align: center;
    margin-top: 2rem;
}

/* Pop-up styling */
#pwaPopup {
    display: none;
}

#pwaPopup-oldIOS {
    display: none;
    bottom: 60%;
    left: 50%;
    transform: translateX(-50%);
}

#refresh {
    display: none;
}

.popup {
    /* Initially hidden */
    position: fixed;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
    padding: 15px;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.popup button {
    margin-top: 10px;
    padding: 8px 12px;
    background: #cd381f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}