:root {
    --cortis-color: #38302E;
    --background-color: #f0ebe5;

    --bg: #fdf9f0;
    --paper: #d3c9c4;
    --ink: #030213;
    --accent: #ff7660;

    --border: 3px solid #000;
    --shadow-soft: 6px 6px 0 rgba(0,0,0,0.08);
    --shadow-medium: 8px 8px 0 rgba(0,0,0,0.12);
    --darkBG: #3a3131;
    --dark2BG: #6e6363;
}

@font-face {
    font-family: 'cortisfont';
    src: url('../assets/fonts/cortfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'cortisfont';
    src: url('../assets/fonts/cortfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'cortisfont', Serif;
    background-color: #f0ebe5;
    overflow: clip;
    margin: 0 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
}

.landing {
    display: grid;
    grid-template-columns: repeat(5, 20vw);
    grid-template-rows: repeat(5, 15vh);
    gap: 8px;
    height: 90vh;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    justify-items: center;
    padding: 40px 20px;
}

#cortis-header {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 5vh;
    padding: 10px;
    background: rgb(240, 235, 229);
}

.cortis-header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 24px;
}

.cortis-header-img {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.cortis-header-title {
    user-select: none;

    font-size: 36px;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
    flex: 1;
    transform: rotate(-1deg);

    text-shadow:
            1px 1px 0 #000,
            -1px 1px 0 #000,
            1px -1px 0 #000,
            -1px -1px 0 #000
}

.cortis-header-img.left {
    margin-right: auto;
    height: 5vh;
}

.cortis-header-img.left:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.cortis-header-img.right {
    margin-left: auto;
    height: 5vh;
}

.cortis-header-img.right:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.footer {
    height: 5vh;
    padding-top: 0.2vh;
    background-color: #554b49;
    color: #ddd1bc;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-weight: lighter;
    user-select: none;
}

/*************************************************************/

.logo-wrapper {
    display: inline-block;
    justify-content: center;
}

.logo-container {
    grid-column: 3;
    grid-row: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-container img {
    position: absolute;
    width: 50vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease-in-out;
}

.logo-container img[alt="logo2"] {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.logo-container img[alt="logo1"] {
    animation: logoSwap 2s ease-in-out forwards;
}

.logo-container img[alt="logo2"] {
    animation: logoSwapText 2s ease-in-out forwards;
}

@keyframes logoSwap {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
}

@keyframes logoSwapText {
    30% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/*************************************************************/

.icon-container.albums {
    grid-column-start: 2;
    grid-row-start: 1;
}

.icon-container.game {
    grid-column-start: 1;
    grid-row-start: 4;
}

.icon-container.digicam {
    grid-column-start: 1;
    grid-row-start: 2;
}

.icon-container.joyride {
    grid-column-start: 2;
    grid-row-start: 4;
}

.icon-container.fashion {
    grid-column-start: 2;
    grid-row-start: 5;
}

.icon-container.cortube {
    grid-column-start: 5;
    grid-row-start: 2;
}

.icon-container.awards {
    grid-column-start: 4;
    grid-row-start: 4;
}

.icon-container.study {
    grid-column-start: 3;
    grid-row-start: 5;
}

.icon-container.fanart {
    grid-column-start: 4;
    grid-row-start: 5;
}

.icon-container.members {
    grid-column-start: 4;
    grid-row-start: 1;
}

.icon-container {
    position: relative;
    display: inline-block;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.homeicon {
    display: block;
    height: 25vh;
    transition: transform 0.8s ease;
}

.homeicon:hover {
    transform: scale(0.8);
    opacity: 0.7;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ddd1bc;
    text-shadow:
            0 0 10px rgb(0, 0, 0),
            0 0 20px rgba(0, 0, 0, 0.9),
            0 0 40px rgba(0, 0, 0, 0.7),
            0 0 70px rgba(0, 0, 0, 0.6);
    pointer-events: none;

    opacity: 0;

    font-family: "cortisfont";
    font-style: normal;
    font-size: 3.5rem;

}

.icon-container:hover .overlay-text {
    opacity: 1;
}

img {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}



/*************************************************************/


#info-button {
    position: fixed;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
}

#info-popup {
    display: none;
    position: fixed;
    top: 60px;
    left: 10px;
    width: 30vw;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    user-select: none;
    padding: 15px;
    background: rgb(197, 188, 182);
}

#info-popup-content {
    padding: 10px;
}

#info-popup-content h4 {
    font-size: 2rem;
    margin: 0 0 5px 0;
}

#info-popup-content p {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-family: Cortfont;
}

#contact-button {
    position: fixed;
    top: 10px;
    left: 60px;
    background: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

#contact-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#contact-popup {
    display: none;
    position: fixed;
    top: 60px;
    left: 10px;
    width: 30vw;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 10px;
    margin-left: 3vw;
    padding: 15px;

    background: rgb(197, 188, 182);
}

#contact-popup-content h4 {
    margin: 0 0 0 0;
    font-size: 2.2rem;
    text-align: center;
}

#contact-popup-content label {
    font-size: 1.4rem;
}

#contact-popup-content p {
    font-size: 1rem;
    margin: 10px 0 10px 0;
    color: #554b49;
}

#contact-popup-content input,
#contact-popup-content textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8rem;
}

#contact-form input,
#contact-form textarea {
    width: 95%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #f9f9f9;
    transition: all 0.2s ease;
    outline: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--cortis-color);
    background: #fff;
    box-shadow: 0 0 6px rgb(85, 75, 73, 0.4);
}

#contact-form textarea {
    height: 30px;
    resize: none;
}

#contact-form button {
    padding: 8px 14px;
    background: var(--dark2BG);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    font-family: Cortisfont;
}

#contact-form button:hover {
    background: var(--darkBG);
}